Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.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.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|subSample.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample") translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|subSample.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001408/0.001408, allocations: 182.3 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.632/1.632, allocations: 205.2 MB / 219 MB, free: 9.203 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.0008477/0.0008479, allocations: 93 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.07936/0.07936, allocations: 12.58 MB / 327.7 MB, free: 12.49 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.075e-05/3.078e-05, allocations: 4 kB / 386 MB, free: 69.6 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09723/0.09728, allocations: 50.36 MB / 436.4 MB, free: 19.22 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3268/0.4241, allocations: 81.78 MB / 0.506 GB, free: 11.89 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002608/0.4244, allocations: 82.44 kB / 0.5061 GB, free: 11.89 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01538/0.4398, allocations: 6.454 MB / 0.5124 GB, free: 9.508 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.062e-06/0.4398, allocations: 0 / 0.5124 GB, free: 9.508 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.749e-05/0.4399, allocations: 3.812 kB / 0.5124 GB, free: 9.508 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.000462/0.4403, allocations: 499.8 kB / 0.5129 GB, free: 9.031 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.905e-05/0.4404, allocations: 7.75 kB / 0.5129 GB, free: 9.031 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.812e-05/0.4404, allocations: 27.27 kB / 0.5129 GB, free: 9.016 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003639/0.4408, allocations: 292.2 kB / 0.5132 GB, free: 8.773 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.04e-05/0.4408, allocations: 7.703 kB / 0.5132 GB, free: 8.77 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.162e-05/0.4409, allocations: 15.16 kB / 0.5132 GB, free: 8.762 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002707/0.4412, allocations: 148.4 kB / 0.5133 GB, free: 8.656 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.085e-06/0.4412, allocations: 4 kB / 0.5133 GB, free: 8.652 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.508e-05/0.4412, allocations: 3.312 kB / 0.5133 GB, free: 8.652 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.548e-06/0.4412, allocations: 0 / 0.5133 GB, free: 8.652 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.731e-05/0.4413, allocations: 36.61 kB / 0.5134 GB, free: 8.645 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004648/0.4418, allocations: 403.4 kB / 0.5138 GB, free: 8.309 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000143/0.4419, allocations: 115.7 kB / 0.5139 GB, free: 8.223 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.501e-05/0.442, allocations: 47.77 kB / 0.5139 GB, free: 8.195 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.171e-05/0.442, allocations: 3.516 kB / 0.5139 GB, free: 8.195 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000118/0.4421, allocations: 85.47 kB / 0.514 GB, free: 8.129 MB / 330.7 MB Notification: Performance of pre-optimization done (n=9): time 1.433e-06/0.4422, allocations: 0 / 0.514 GB, free: 8.129 MB / 330.7 MB Notification: Performance of matching and sorting (n=9): time 0.0002296/0.4424, allocations: 124.3 kB / 0.5141 GB, free: 8.074 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.109e-05/0.4424, allocations: 157.4 kB / 0.5143 GB, free: 7.887 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002578/0.4427, allocations: 300.6 kB / 0.5146 GB, free: 7.758 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.573e-05/0.4427, allocations: 25.7 kB / 0.5146 GB, free: 7.727 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.463e-05/0.4428, allocations: 135.6 kB / 0.5147 GB, free: 7.633 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.262e-05/0.4428, allocations: 23.5 kB / 0.5147 GB, free: 7.617 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.929e-06/0.4428, allocations: 3.938 kB / 0.5147 GB, free: 7.613 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 7.911e-05/0.4429, allocations: 333.3 kB / 0.5151 GB, free: 7.289 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.331e-05/0.443, allocations: 25.22 kB / 0.5151 GB, free: 7.289 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.708e-05/0.4431, allocations: 90.28 kB / 0.5152 GB, free: 7.219 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.178e-05/0.4431, allocations: 26.77 kB / 0.5152 GB, free: 7.215 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.794e-06/0.4431, allocations: 0 / 0.5152 GB, free: 7.215 MB / 330.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001588/0.4433, allocations: 129.4 kB / 0.5153 GB, free: 7.152 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.47e-05/0.4433, allocations: 3.875 kB / 0.5153 GB, free: 7.152 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.422e-06/0.4433, allocations: 3.984 kB / 0.5153 GB, free: 7.148 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.346e-05/0.4434, allocations: 3.844 kB / 0.5153 GB, free: 7.148 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001035/0.4435, allocations: 15.53 kB / 0.5153 GB, free: 7.148 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.073e-06/0.4435, allocations: 3.938 kB / 0.5154 GB, free: 7.145 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.208e-05/0.4436, allocations: 10.95 kB / 0.5154 GB, free: 7.141 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.216e-06/0.4436, allocations: 3.812 kB / 0.5154 GB, free: 7.141 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,sample.u,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,subSample.y,subSample.u,sample.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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 6.143e-05/0.4436, allocations: 124.2 kB / 0.5155 GB, free: 7.023 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.2e-05/0.4437, allocations: 68.03 kB / 0.5155 GB, free: 6.973 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00019/0.4439, allocations: 119.4 kB / 0.5157 GB, free: 6.93 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.594e-06/0.4439, allocations: 0 / 0.5157 GB, free: 6.93 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.388e-06/0.4439, allocations: 0 / 0.5157 GB, free: 6.93 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.819e-06/0.4439, allocations: 3.812 kB / 0.5157 GB, free: 6.93 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001745/0.4441, allocations: 257.6 kB / 0.5159 GB, free: 6.699 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.4441, allocations: 0 / 0.5159 GB, free: 6.699 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.951e-05/0.4442, allocations: 19.44 kB / 0.5159 GB, free: 6.691 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.455e-06/0.4442, allocations: 4.062 kB / 0.5159 GB, free: 6.688 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.397e-05/0.4442, allocations: 11.17 kB / 0.5159 GB, free: 6.68 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.4442, allocations: 3.844 kB / 0.5159 GB, free: 6.68 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.4443, allocations: 0 / 0.5159 GB, free: 6.68 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000191/0.4445, allocations: 192.3 kB / 0.5161 GB, free: 6.535 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000101/0.4446, allocations: 130.1 kB / 0.5163 GB, free: 6.418 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.944e-05/0.4446, allocations: 0 / 0.5163 GB, free: 6.418 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.835e-05/0.4447, allocations: 3.812 kB / 0.5163 GB, free: 6.418 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.729e-05/0.4447, allocations: 11.73 kB / 0.5163 GB, free: 6.414 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.015e-05/0.4448, allocations: 3.875 kB / 0.5163 GB, free: 6.414 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001885/0.4449, allocations: 243.3 kB / 0.5165 GB, free: 6.312 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.445, allocations: 0 / 0.5165 GB, free: 6.312 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002744/0.4452, allocations: 53.23 kB / 0.5166 GB, free: 6.301 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: 7 ($whenCondition1,sample.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,subSample.y,sample.y,subSample.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 8 * 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.0008985/0.4461, allocations: 396 kB / 0.5169 GB, free: 5.984 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002097/0.4464, allocations: 80.62 kB / 0.517 GB, free: 5.973 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.514e-06/0.4464, allocations: 3.844 kB / 0.517 GB, free: 5.973 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 6.158e-05/0.4464, allocations: 38.23 kB / 0.5171 GB, free: 5.965 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003318/0.4468, allocations: 56.48 kB / 0.5171 GB, free: 5.949 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000402/0.4472, allocations: 278.1 kB / 0.5174 GB, free: 5.797 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001449/0.4474, allocations: 0.7423 MB / 0.5181 GB, free: 5.074 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 8.247e-05/0.4474, allocations: 32.44 kB / 0.5181 GB, free: 5.059 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.69e-05/0.4475, allocations: 26.95 kB / 0.5182 GB, free: 5.047 MB / 330.7 MB Notification: Performance of SimCode: time 2.31e-07/0.4475, allocations: 0 / 0.5182 GB, free: 5.047 MB / 330.7 MB Notification: Performance of Templates: time 0.005052/0.4526, allocations: 2.739 MB / 0.5208 GB, free: 3.234 MB / 330.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches