Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked") translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008703/0.0008703, allocations: 103 kB / 16.07 MB, free: 32 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001135/0.001135, allocations: 183.9 kB / 16.96 MB, free: 6.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.232/1.232, allocations: 205.4 MB / 223.1 MB, free: 5.754 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.06296/0.06296, allocations: 12.6 MB / 284 MB, free: 8.816 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica_Synchronous requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0006633/0.0006633, allocations: 28 kB / 345.2 MB, free: 20.92 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08118/0.08185, allocations: 50.39 MB / 395.6 MB, free: 2.449 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked): time 0.001557/0.08344, allocations: 1.204 MB / 396.8 MB, free: 1.23 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003184/0.08378, allocations: 131.6 kB / 396.9 MB, free: 1.102 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.594e-05/0.08388, allocations: 0 / 396.9 MB, free: 1.102 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 2.991e-05/0.08392, allocations: 3.938 kB / 396.9 MB, free: 1.098 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001085/0.08404, allocations: 11.98 kB / 396.9 MB, free: 1.086 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002352/0.08428, allocations: 27.92 kB / 396.9 MB, free: 1.059 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 7.502e-05/0.08436, allocations: 31.91 kB / 397 MB, free: 1.027 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.461e-05/0.08446, allocations: 12 kB / 397 MB, free: 1.016 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.281e-05/0.08449, allocations: 7.922 kB / 397 MB, free: 1.008 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.419e-05/0.08453, allocations: 15.88 kB / 397 MB, free: 0.9922 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.513e-05/0.08455, allocations: 4 kB / 397 MB, free: 0.9883 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.356e-06/0.08456, allocations: 0 / 397 MB, free: 0.9883 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.995e-05/0.0846, allocations: 7.984 kB / 397 MB, free: 0.9805 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 3.774e-05/0.08465, allocations: 49.52 kB / 397.1 MB, free: 0.9258 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 6.996e-05/0.08473, allocations: 35.81 kB / 397.1 MB, free: 0.8906 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.066e-06/0.08473, allocations: 0 / 397.1 MB, free: 0.8906 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.08474, allocations: 0 / 397.1 MB, free: 0.8906 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.446e-06/0.08475, allocations: 0 / 397.1 MB, free: 0.8906 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0003712/0.08512, allocations: 355.6 kB / 397.4 MB, free: 0.4922 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.225e-05/0.08516, allocations: 8.031 kB / 397.4 MB, free: 496 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.008e-05/0.0852, allocations: 12.83 kB / 397.5 MB, free: 484 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001581/0.08536, allocations: 184.1 kB / 397.6 MB, free: 260 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.017e-05/0.08538, allocations: 12.38 kB / 397.7 MB, free: 248 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.888e-06/0.0854, allocations: 384 / 397.7 MB, free: 248 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002175/0.08562, allocations: 89.61 kB / 397.7 MB, free: 140 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.452e-06/0.08564, allocations: 192 / 397.7 MB, free: 140 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.084e-05/0.08565, allocations: 7.938 kB / 397.7 MB, free: 132 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.797e-06/0.08566, allocations: 4 kB / 397.8 MB, free: 128 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.536e-05/0.08575, allocations: 19.97 kB / 397.8 MB, free: 108 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002898/0.08604, allocations: 257.8 kB / 398 MB, free: 15.8 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.738e-05/0.08613, allocations: 49.14 kB / 398.1 MB, free: 15.73 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.809e-05/0.08619, allocations: 25.72 kB / 398.1 MB, free: 15.7 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.756e-05/0.08621, allocations: 3.938 kB / 398.1 MB, free: 15.7 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.641e-05/0.08625, allocations: 30.56 kB / 398.1 MB, free: 15.66 MB / 302.1 MB Notification: Performance of pre-optimization done (n=2): time 1.102e-06/0.08625, allocations: 0 / 398.1 MB, free: 15.66 MB / 302.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002499/0.08651, allocations: 77.52 kB / 398.2 MB, free: 15.58 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.621e-05/0.08657, allocations: 77.11 kB / 398.3 MB, free: 15.48 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001106/0.08668, allocations: 142 kB / 398.4 MB, free: 15.33 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.021e-05/0.0867, allocations: 25.7 kB / 398.4 MB, free: 15.3 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.288e-05/0.08675, allocations: 84.39 kB / 398.5 MB, free: 15.21 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.709e-05/0.08677, allocations: 11.92 kB / 398.5 MB, free: 15.2 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.072e-05/0.0868, allocations: 13.72 kB / 398.6 MB, free: 15.18 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001005/0.08691, allocations: 314.8 kB / 398.9 MB, free: 14.87 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.766e-05/0.08695, allocations: 11.98 kB / 398.9 MB, free: 14.86 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.366e-05/0.08699, allocations: 13.72 kB / 398.9 MB, free: 14.84 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.388e-05/0.08707, allocations: 41.7 kB / 398.9 MB, free: 14.79 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.08708, allocations: 0 / 398.9 MB, free: 14.79 MB / 302.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001172/0.0872, allocations: 65.47 kB / 399 MB, free: 14.72 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.601e-05/0.08723, allocations: 7.984 kB / 399 MB, free: 14.71 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.74e-06/0.08724, allocations: 4.062 kB / 399 MB, free: 14.71 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.137e-05/0.08726, allocations: 0 / 399 MB, free: 14.71 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.669e-05/0.08733, allocations: 8 kB / 399 MB, free: 14.7 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.938e-06/0.08734, allocations: 0 / 399 MB, free: 14.7 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.034e-05/0.08738, allocations: 7.938 kB / 399 MB, free: 14.69 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.963e-06/0.08739, allocations: 0 / 399 MB, free: 14.69 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 2 (step.y,sample.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.202e-05/0.08748, allocations: 121.8 kB / 399.1 MB, free: 14.56 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.217e-05/0.08754, allocations: 33.7 kB / 399.2 MB, free: 14.52 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.677e-05/0.08757, allocations: 7.906 kB / 399.2 MB, free: 14.52 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.036e-06/0.08758, allocations: 4 kB / 399.2 MB, free: 14.51 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.589e-06/0.08759, allocations: 3.984 kB / 399.2 MB, free: 14.51 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.615e-06/0.0876, allocations: 0 / 399.2 MB, free: 14.51 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001573/0.08776, allocations: 173.5 kB / 399.4 MB, free: 14.29 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.08777, allocations: 0 / 399.4 MB, free: 14.29 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.15e-05/0.08781, allocations: 15.92 kB / 399.4 MB, free: 14.27 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.08782, allocations: 0 / 399.4 MB, free: 14.27 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.512e-06/0.08783, allocations: 0 / 399.4 MB, free: 14.27 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.252e-06/0.08784, allocations: 3.938 kB / 399.4 MB, free: 14.27 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.08785, allocations: 4 kB / 399.4 MB, free: 14.27 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001511/0.088, allocations: 160.3 kB / 399.5 MB, free: 14.09 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.403e-05/0.08807, allocations: 89 kB / 399.6 MB, free: 13.98 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.282e-05/0.08808, allocations: 0 / 399.6 MB, free: 13.98 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.323e-05/0.08815, allocations: 8.031 kB / 399.6 MB, free: 13.98 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.611e-05/0.08818, allocations: 3.984 kB / 399.6 MB, free: 13.97 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.166e-06/0.08819, allocations: 0 / 399.6 MB, free: 13.97 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.124e-05/0.08826, allocations: 103.3 kB / 399.7 MB, free: 13.87 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.08827, allocations: 0 / 399.7 MB, free: 13.87 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002065/0.08848, allocations: 4 kB / 399.7 MB, free: 13.87 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 2 (step.y,sample.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 7.837e-05/0.08856, allocations: 99.19 kB / 399.8 MB, free: 13.76 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001139/0.08868, allocations: 23.98 kB / 399.9 MB, free: 13.74 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.08869, allocations: 0 / 399.9 MB, free: 13.74 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 3.51e-05/0.08873, allocations: 11.98 kB / 399.9 MB, free: 13.73 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003071/0.08904, allocations: 31.8 kB / 399.9 MB, free: 13.7 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002574/0.08931, allocations: 153.8 kB / 400.1 MB, free: 13.51 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002273/0.08955, allocations: 0.6848 MB / 400.7 MB, free: 12.8 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 1.768e-05/0.08957, allocations: 256 / 400.7 MB, free: 12.8 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.207e-05/0.0896, allocations: 15.42 kB / 400.8 MB, free: 12.79 MB / 302.1 MB Notification: Performance of SimCode: time 4.2e-07/0.08961, allocations: 0 / 400.8 MB, free: 12.79 MB / 302.1 MB Notification: Performance of Templates: time 0.002114/0.09173, allocations: 392.3 kB / 401.1 MB, free: 12.41 MB / 302.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.makefile Environment - environmentSimulation: (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.pipe 2>&1) Environment - environmentSimulation: diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches