Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SuperSample.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.SuperSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|superSample.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SuperSample") translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.SuperSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|superSample.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SuperSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009464/0.0009464, 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.628/1.628, 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.0008685/0.0008684, allocations: 82.61 kB / 267.1 MB, free: 9.273 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.07303/0.07303, allocations: 12.59 MB / 327.8 MB, free: 12.48 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.162e-05/3.165e-05, allocations: 4 kB / 386 MB, free: 69.62 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1042/0.1043, allocations: 50.37 MB / 436.4 MB, free: 19.23 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.327/0.4313, allocations: 81.79 MB / 0.506 GB, free: 11.88 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002378/0.4316, allocations: 87.66 kB / 0.5061 GB, free: 11.87 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01522/0.4468, allocations: 6.451 MB / 0.5124 GB, free: 9.496 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.202e-06/0.4469, allocations: 0 / 0.5124 GB, free: 9.496 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.976e-05/0.4469, allocations: 7.219 kB / 0.5124 GB, free: 9.496 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.0004594/0.4474, allocations: 493.7 kB / 0.5129 GB, free: 9.02 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.67e-05/0.4474, allocations: 11.53 kB / 0.5129 GB, free: 9.02 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.37e-05/0.4475, allocations: 30.56 kB / 0.5129 GB, free: 9.004 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003648/0.4478, allocations: 284.9 kB / 0.5132 GB, free: 8.758 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.914e-05/0.4479, allocations: 11.8 kB / 0.5132 GB, free: 8.75 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2e-05/0.4479, allocations: 7.188 kB / 0.5132 GB, free: 8.75 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002642/0.4482, allocations: 156.6 kB / 0.5134 GB, free: 8.641 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.277e-06/0.4482, allocations: 4 kB / 0.5134 GB, free: 8.637 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.616e-05/0.4482, allocations: 7.094 kB / 0.5134 GB, free: 8.637 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.571e-06/0.4482, allocations: 0 / 0.5134 GB, free: 8.637 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.731e-05/0.4483, allocations: 36.92 kB / 0.5134 GB, free: 8.629 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004732/0.4488, allocations: 398.8 kB / 0.5138 GB, free: 8.297 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001389/0.449, allocations: 110.8 kB / 0.5139 GB, free: 8.215 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.566e-05/0.449, allocations: 47.16 kB / 0.5139 GB, free: 8.188 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.779e-05/0.449, allocations: 0 / 0.5139 GB, free: 8.188 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001268/0.4492, allocations: 84.89 kB / 0.514 GB, free: 8.125 MB / 330.7 MB Notification: Performance of pre-optimization done (n=9): time 1.353e-06/0.4492, allocations: 0 / 0.514 GB, free: 8.125 MB / 330.7 MB Notification: Performance of matching and sorting (n=9): time 0.0002298/0.4494, allocations: 120.8 kB / 0.5141 GB, free: 8.066 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.645e-05/0.4495, allocations: 161.1 kB / 0.5143 GB, free: 7.879 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002462/0.4497, allocations: 300.2 kB / 0.5146 GB, free: 7.75 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.536e-05/0.4498, allocations: 29.58 kB / 0.5146 GB, free: 7.719 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.479e-05/0.4498, allocations: 128 kB / 0.5147 GB, free: 7.629 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.114e-05/0.4498, allocations: 30.33 kB / 0.5147 GB, free: 7.609 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.959e-06/0.4499, allocations: 0 / 0.5147 GB, free: 7.609 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.267e-05/0.4499, allocations: 333.5 kB / 0.5151 GB, free: 7.289 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.974e-05/0.45, allocations: 29.2 kB / 0.5151 GB, free: 7.281 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.442e-05/0.45, allocations: 93.97 kB / 0.5152 GB, free: 7.211 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.115e-05/0.4501, allocations: 22.77 kB / 0.5152 GB, free: 7.207 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.4501, allocations: 3.844 kB / 0.5152 GB, free: 7.207 MB / 330.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001502/0.4503, allocations: 129 kB / 0.5153 GB, free: 7.145 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.539e-05/0.4503, allocations: 3.875 kB / 0.5153 GB, free: 7.145 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.48e-06/0.4503, allocations: 0 / 0.5153 GB, free: 7.145 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.448e-05/0.4503, allocations: 3.812 kB / 0.5153 GB, free: 7.145 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001029/0.4504, allocations: 19.55 kB / 0.5154 GB, free: 7.141 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.674e-06/0.4504, allocations: 3.938 kB / 0.5154 GB, free: 7.137 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.552e-05/0.4505, allocations: 11.78 kB / 0.5154 GB, free: 7.133 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.217e-05/0.4505, allocations: 11.36 kB / 0.5154 GB, free: 7.129 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,superSample.y,superSample.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.32e-05/0.4506, allocations: 120.6 kB / 0.5155 GB, free: 7.012 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.567e-05/0.4507, allocations: 63.92 kB / 0.5156 GB, free: 6.965 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001899/0.4509, allocations: 120 kB / 0.5157 GB, free: 6.914 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.585e-06/0.4509, allocations: 3.969 kB / 0.5157 GB, free: 6.914 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/0.4509, allocations: 0 / 0.5157 GB, free: 6.914 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.148e-06/0.4509, allocations: 0 / 0.5157 GB, free: 6.914 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001571/0.4511, allocations: 256.8 kB / 0.5159 GB, free: 6.688 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.894e-06/0.4511, allocations: 3.984 kB / 0.5159 GB, free: 6.684 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.371e-05/0.4512, allocations: 15.47 kB / 0.5159 GB, free: 6.68 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.877e-06/0.4512, allocations: 11.97 kB / 0.5159 GB, free: 6.672 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.039e-05/0.4512, allocations: 0 / 0.5159 GB, free: 6.672 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.512e-06/0.4512, allocations: 0 / 0.5159 GB, free: 6.672 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.816e-06/0.4512, allocations: 7.859 kB / 0.516 GB, free: 6.668 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001812/0.4514, allocations: 191.8 kB / 0.5161 GB, free: 6.527 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.251e-05/0.4515, allocations: 124.1 kB / 0.5163 GB, free: 6.41 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.377e-05/0.4515, allocations: 11.61 kB / 0.5163 GB, free: 6.406 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.682e-05/0.4516, allocations: 0 / 0.5163 GB, free: 6.406 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.742e-05/0.4517, allocations: 14.8 kB / 0.5163 GB, free: 6.402 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.769e-06/0.4517, allocations: 3.844 kB / 0.5163 GB, free: 6.402 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001762/0.4519, allocations: 233.2 kB / 0.5165 GB, free: 6.305 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4519, allocations: 3.875 kB / 0.5165 GB, free: 6.305 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002735/0.4521, allocations: 54.31 kB / 0.5166 GB, free: 6.289 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,superSample.y,sample.y,superSample.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.000868/0.453, allocations: 395.9 kB / 0.5169 GB, free: 5.973 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001878/0.4532, allocations: 86.28 kB / 0.517 GB, free: 5.961 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.4532, allocations: 0 / 0.517 GB, free: 5.961 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 5.426e-05/0.4533, allocations: 26.69 kB / 0.517 GB, free: 5.961 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000324/0.4536, allocations: 62.83 kB / 0.5171 GB, free: 5.941 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004268/0.4541, allocations: 275.8 kB / 0.5174 GB, free: 5.793 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001782/0.4542, allocations: 0.7477 MB / 0.5181 GB, free: 5.066 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 8.167e-05/0.4543, allocations: 33.06 kB / 0.5181 GB, free: 5.047 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.853e-05/0.4544, allocations: 18.94 kB / 0.5182 GB, free: 5.039 MB / 330.7 MB Notification: Performance of SimCode: time 4.01e-07/0.4544, allocations: 3.875 kB / 0.5182 GB, free: 5.039 MB / 330.7 MB Notification: Performance of Templates: time 0.005232/0.4596, allocations: 2.737 MB / 0.5208 GB, free: 3.246 MB / 330.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SuperSample.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SuperSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SuperSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SuperSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SuperSample.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SuperSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SuperSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SuperSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.SuperSample.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SuperSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches