Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.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.BooleanSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|subSample.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample") translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|subSample.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001484/0.001484, allocations: 186.8 kB / 16.44 MB, free: 5.672 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.925/1.925, allocations: 205.4 MB / 222.6 MB, free: 9.133 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.001102/0.001101, allocations: 88.59 kB / 270.9 MB, free: 8.379 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.1008/0.1008, allocations: 12.6 MB / 331.8 MB, free: 11.41 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005191/0.0005192, allocations: 16 kB / 392 MB, free: 66.9 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08961/0.09015, allocations: 50.37 MB / 442.4 MB, free: 16.48 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4348/0.5251, allocations: 81.85 MB / 0.5119 GB, free: 12.2 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003048/0.5254, allocations: 81.89 kB / 0.512 GB, free: 12.18 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02599/0.5514, allocations: 6.331 MB / 0.5182 GB, free: 9.406 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.893e-06/0.5515, allocations: 0 / 0.5182 GB, free: 9.406 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.696e-05/0.5515, allocations: 4 kB / 0.5182 GB, free: 9.402 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.0007041/0.5522, allocations: 0.499 MB / 0.5187 GB, free: 8.867 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.091e-05/0.5523, allocations: 8.031 kB / 0.5187 GB, free: 8.859 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.992e-05/0.5524, allocations: 23.8 kB / 0.5187 GB, free: 8.836 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004504/0.5528, allocations: 264.5 kB / 0.5189 GB, free: 8.566 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.242e-05/0.5529, allocations: 7.891 kB / 0.519 GB, free: 8.559 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.174e-05/0.5529, allocations: 6.75 kB / 0.519 GB, free: 8.555 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003724/0.5533, allocations: 147.4 kB / 0.5191 GB, free: 8.41 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.024e-05/0.5533, allocations: 7.938 kB / 0.5191 GB, free: 8.402 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.8e-05/0.5533, allocations: 2.812 kB / 0.5191 GB, free: 8.402 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.661e-06/0.5533, allocations: 0 / 0.5191 GB, free: 8.402 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001422/0.5535, allocations: 41.05 kB / 0.5192 GB, free: 8.371 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005701/0.5541, allocations: 361.4 kB / 0.5195 GB, free: 8.004 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000289/0.5544, allocations: 116.8 kB / 0.5196 GB, free: 7.883 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.302e-05/0.5544, allocations: 3.984 kB / 0.5196 GB, free: 7.879 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001967/0.5547, allocations: 82.52 kB / 0.5197 GB, free: 7.797 MB / 330.7 MB Notification: Performance of pre-optimization done (n=9): time 2.675e-06/0.5547, allocations: 0 / 0.5197 GB, free: 7.797 MB / 330.7 MB Notification: Performance of matching and sorting (n=9): time 0.0005218/0.5552, allocations: 144.1 kB / 0.5198 GB, free: 7.676 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.167e-05/0.5553, allocations: 135.2 kB / 0.52 GB, free: 7.516 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003757/0.5557, allocations: 237 kB / 0.5202 GB, free: 7.316 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.611e-05/0.5557, allocations: 33.89 kB / 0.5202 GB, free: 7.277 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.457e-05/0.5558, allocations: 178.1 kB / 0.5204 GB, free: 7.121 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.311e-05/0.5559, allocations: 18.86 kB / 0.5204 GB, free: 7.109 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.975e-06/0.5559, allocations: 4 kB / 0.5204 GB, free: 7.105 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.427e-05/0.556, allocations: 322.3 kB / 0.5207 GB, free: 6.785 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.787e-05/0.5561, allocations: 18.81 kB / 0.5207 GB, free: 6.773 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001215/0.5562, allocations: 72.42 kB / 0.5208 GB, free: 6.691 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000105/0.5563, allocations: 27.44 kB / 0.5208 GB, free: 6.676 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.968e-06/0.5563, allocations: 0 / 0.5208 GB, free: 6.676 MB / 330.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002913/0.5566, allocations: 103.6 kB / 0.5209 GB, free: 6.586 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.009e-05/0.5567, allocations: 4.156 kB / 0.5209 GB, free: 6.582 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.456e-06/0.5567, allocations: 8 kB / 0.5209 GB, free: 6.574 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.779e-05/0.5567, allocations: 0 / 0.5209 GB, free: 6.574 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001267/0.5569, allocations: 19.86 kB / 0.521 GB, free: 6.559 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.655e-06/0.5569, allocations: 3.938 kB / 0.521 GB, free: 6.555 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001505/0.557, allocations: 4 kB / 0.521 GB, free: 6.551 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.221e-05/0.5571, allocations: 4 kB / 0.521 GB, free: 6.547 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 () * Number of clocked 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 0.0001818/0.5572, allocations: 148.5 kB / 0.5211 GB, free: 6.402 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001241/0.5574, allocations: 73.12 kB / 0.5212 GB, free: 6.328 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003432/0.5577, allocations: 113.1 kB / 0.5213 GB, free: 6.238 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.541e-06/0.5578, allocations: 0 / 0.5213 GB, free: 6.238 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.022e-06/0.5578, allocations: 0 / 0.5213 GB, free: 6.238 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.023e-06/0.5578, allocations: 4 kB / 0.5213 GB, free: 6.234 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002559/0.5581, allocations: 239.2 kB / 0.5215 GB, free: 5.98 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.637e-06/0.5581, allocations: 0 / 0.5215 GB, free: 5.98 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.94e-05/0.5582, allocations: 11.94 kB / 0.5215 GB, free: 5.969 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.785e-06/0.5582, allocations: 320 / 0.5215 GB, free: 5.969 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.702e-05/0.5582, allocations: 7.688 kB / 0.5215 GB, free: 5.965 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.06e-06/0.5582, allocations: 8.062 kB / 0.5215 GB, free: 5.957 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/0.5582, allocations: 0 / 0.5215 GB, free: 5.957 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003696/0.5586, allocations: 187.7 kB / 0.5217 GB, free: 5.762 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001474/0.5588, allocations: 116.6 kB / 0.5218 GB, free: 5.637 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.901e-05/0.5588, allocations: 3 kB / 0.5218 GB, free: 5.637 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001128/0.5589, allocations: 4 kB / 0.5218 GB, free: 5.633 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.537e-05/0.559, allocations: 7.984 kB / 0.5219 GB, free: 5.625 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.663e-05/0.559, allocations: 4 kB / 0.5219 GB, free: 5.621 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002948/0.5593, allocations: 196.3 kB / 0.522 GB, free: 5.461 MB / 330.7 MB Notification: Performance of sort global known variables: time 5.01e-07/0.5594, allocations: 0 / 0.522 GB, free: 5.461 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004049/0.5598, allocations: 35.88 kB / 0.5221 GB, free: 5.43 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) * Number of clocked states: 0 () * 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.001169/0.561, allocations: 439.6 kB / 0.5225 GB, free: 5.008 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0003909/0.5614, allocations: 70.16 kB / 0.5226 GB, free: 4.957 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/0.5614, allocations: 0 / 0.5226 GB, free: 4.957 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001112/0.5615, allocations: 27.42 kB / 0.5226 GB, free: 4.938 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005265/0.5621, allocations: 66.59 kB / 0.5227 GB, free: 4.883 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008532/0.5629, allocations: 378 kB / 0.523 GB, free: 4.504 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001996/0.5632, allocations: 0.7316 MB / 0.5237 GB, free: 3.75 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.881e-05/0.5633, allocations: 22.92 kB / 0.5237 GB, free: 3.73 MB / 330.7 MB Notification: Performance of SimCode: time 1.322e-06/0.5633, allocations: 0 / 0.5237 GB, free: 3.73 MB / 330.7 MB Notification: Performance of Templates: time 0.006795/0.5701, allocations: 2.614 MB / 0.5263 GB, free: 1.133 MB / 330.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches