Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|sum.y|upSample1.y|upSample2.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample") translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|sum.y|upSample1.y|upSample2.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009635/0.0009635, allocations: 182.4 kB / 13.23 MB, free: 2.086 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.437/1.437, allocations: 205.2 MB / 219 MB, free: 9.195 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008853/0.0008853, allocations: 87.8 kB / 267.1 MB, free: 9.27 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.07953/0.07953, allocations: 12.59 MB / 327.8 MB, free: 12.47 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.271e-05/3.273e-05, allocations: 7.984 kB / 386 MB, free: 69.6 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09717/0.09722, allocations: 50.37 MB / 436.4 MB, free: 19.21 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.386/0.4833, allocations: 82.28 MB / 0.5065 GB, free: 11.75 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002597/0.4836, allocations: 86.86 kB / 0.5066 GB, free: 11.74 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02125/0.5049, allocations: 8.649 MB / 0.515 GB, free: 8.645 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.323e-06/0.5049, allocations: 3.938 kB / 0.515 GB, free: 8.641 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.101e-05/0.505, allocations: 3.781 kB / 0.515 GB, free: 8.641 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0006675/0.5056, allocations: 0.5246 MB / 0.5155 GB, free: 8.148 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.051e-05/0.5057, allocations: 11.5 kB / 0.5156 GB, free: 8.148 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.123e-05/0.5058, allocations: 31.12 kB / 0.5156 GB, free: 8.133 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004644/0.5063, allocations: 307.3 kB / 0.5159 GB, free: 7.875 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.495e-05/0.5063, allocations: 22.52 kB / 0.5159 GB, free: 7.867 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.704e-05/0.5063, allocations: 11.44 kB / 0.5159 GB, free: 7.867 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005081/0.5068, allocations: 311.8 kB / 0.5162 GB, free: 7.727 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.163e-05/0.5069, allocations: 3.984 kB / 0.5162 GB, free: 7.723 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.005e-05/0.5069, allocations: 15.17 kB / 0.5162 GB, free: 7.715 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.212e-06/0.5069, allocations: 3.844 kB / 0.5162 GB, free: 7.715 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001182/0.507, allocations: 67.14 kB / 0.5163 GB, free: 7.707 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004896/0.5075, allocations: 433.7 kB / 0.5167 GB, free: 7.352 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002576/0.5078, allocations: 196.4 kB / 0.5169 GB, free: 7.258 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000107/0.5079, allocations: 82.53 kB / 0.517 GB, free: 7.23 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.151e-05/0.5079, allocations: 14.3 kB / 0.517 GB, free: 7.227 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000134/0.5081, allocations: 76.77 kB / 0.5171 GB, free: 7.168 MB / 330.7 MB Notification: Performance of pre-optimization done (n=22): time 1.663e-06/0.5081, allocations: 4 kB / 0.5171 GB, free: 7.164 MB / 330.7 MB Notification: Performance of matching and sorting (n=22): time 0.0003362/0.5084, allocations: 188 kB / 0.5172 GB, free: 7.102 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.669e-05/0.5085, allocations: 173.3 kB / 0.5174 GB, free: 6.91 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002732/0.5088, allocations: 310.8 kB / 0.5177 GB, free: 6.781 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.98e-05/0.5088, allocations: 33.42 kB / 0.5177 GB, free: 6.75 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.361e-05/0.5089, allocations: 127 kB / 0.5179 GB, free: 6.664 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.588e-05/0.5089, allocations: 30.92 kB / 0.5179 GB, free: 6.648 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.075e-06/0.5089, allocations: 7.125 kB / 0.5179 GB, free: 6.648 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.459e-05/0.509, allocations: 350 kB / 0.5182 GB, free: 6.316 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.817e-05/0.5091, allocations: 35.25 kB / 0.5183 GB, free: 6.312 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001193/0.5092, allocations: 184.4 kB / 0.5184 GB, free: 6.133 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.838e-05/0.5093, allocations: 65.19 kB / 0.5185 GB, free: 6.117 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.5093, allocations: 7.969 kB / 0.5185 GB, free: 6.113 MB / 330.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0002657/0.5096, allocations: 226.3 kB / 0.5187 GB, free: 6.027 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.522e-05/0.5096, allocations: 12.22 kB / 0.5187 GB, free: 6.023 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.943e-06/0.5096, allocations: 7.922 kB / 0.5187 GB, free: 6.02 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.881e-05/0.5096, allocations: 11.66 kB / 0.5187 GB, free: 6.016 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001468/0.5098, allocations: 38.77 kB / 0.5188 GB, free: 6.004 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.057e-05/0.5098, allocations: 7.75 kB / 0.5188 GB, free: 6.004 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001125/0.5099, allocations: 11.28 kB / 0.5188 GB, free: 6.004 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.826e-05/0.51, allocations: 15.58 kB / 0.5188 GB, free: 6 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 26 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,sample.u,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,sum.y,sum.u[2],sum.u[1],upSample2.u_super,upSample2.b_super,$CLKPRE.upSample2.b_super,upSample2.y,upSample1.u_super,upSample1.b_super,$CLKPRE.upSample1.b_super,upSample1.y,upSample2.b,$CLKPRE.upSample2.b,upSample2.dummy,upSample2.u,upSample1.b,$CLKPRE.upSample1.b,upSample1.dummy,upSample1.u,sample.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.339e-05/0.5101, allocations: 142.8 kB / 0.519 GB, free: 5.875 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001569/0.5102, allocations: 140.1 kB / 0.5191 GB, free: 5.75 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001966/0.5104, allocations: 141.9 kB / 0.5192 GB, free: 5.637 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.745e-06/0.5104, allocations: 0 / 0.5192 GB, free: 5.637 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.029e-06/0.5104, allocations: 4 kB / 0.5192 GB, free: 5.633 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.148e-06/0.5105, allocations: 0 / 0.5192 GB, free: 5.633 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000161/0.5106, allocations: 279.3 kB / 0.5195 GB, free: 5.348 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.5106, allocations: 0 / 0.5195 GB, free: 5.348 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001198/0.5108, allocations: 35.53 kB / 0.5195 GB, free: 5.316 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.837e-06/0.5108, allocations: 3.984 kB / 0.5195 GB, free: 5.312 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.732e-05/0.5108, allocations: 11.8 kB / 0.5195 GB, free: 5.305 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.744e-06/0.5108, allocations: 0 / 0.5195 GB, free: 5.305 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.355e-06/0.5108, allocations: 8 kB / 0.5196 GB, free: 5.297 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002611/0.5111, allocations: 256.2 kB / 0.5198 GB, free: 5.051 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001032/0.5112, allocations: 132.3 kB / 0.5199 GB, free: 4.914 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.734e-05/0.5112, allocations: 7.875 kB / 0.5199 GB, free: 4.91 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.662e-05/0.5113, allocations: 15.61 kB / 0.5199 GB, free: 4.898 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.442e-05/0.5114, allocations: 11.86 kB / 0.52 GB, free: 4.891 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.563e-05/0.5114, allocations: 8 kB / 0.52 GB, free: 4.883 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001927/0.5116, allocations: 253.1 kB / 0.5202 GB, free: 4.68 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.5116, allocations: 0 / 0.5202 GB, free: 4.68 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003065/0.5119, allocations: 71.44 kB / 0.5203 GB, free: 4.621 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 20 ($whenCondition1,sample.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,upSample1.y,upSample1.b_super,upSample1.u_super,upSample2.y,upSample2.b_super,upSample2.u_super,sum.u[1],sum.u[2],sum.y,sample.y,upSample1.u,upSample1.dummy,upSample1.b,upSample2.u,upSample2.dummy,upSample2.b) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (23): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008233/0.5128, allocations: 404.2 kB / 0.5207 GB, free: 4.25 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002659/0.513, allocations: 158.2 kB / 0.5208 GB, free: 4.129 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.165e-06/0.513, allocations: 0 / 0.5208 GB, free: 4.129 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 5.615e-05/0.5131, allocations: 31.86 kB / 0.5208 GB, free: 4.105 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003968/0.5135, allocations: 106.2 kB / 0.5209 GB, free: 4.027 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005538/0.5141, allocations: 361.9 kB / 0.5213 GB, free: 3.691 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001933/0.5143, allocations: 0.7756 MB / 0.522 GB, free: 2.898 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 9.397e-05/0.5144, allocations: 46.56 kB / 0.5221 GB, free: 2.852 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.261e-05/0.5144, allocations: 27.25 kB / 0.5221 GB, free: 2.828 MB / 330.7 MB Notification: Performance of SimCode: time 2.4e-07/0.5145, allocations: 4.219 kB / 0.5221 GB, free: 2.824 MB / 330.7 MB Notification: Performance of Templates: time 0.006351/0.5208, allocations: 3.339 MB / 0.5254 GB, free: 15.51 MB / 346.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches