Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.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/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/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.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="backSample1.y|sample.y|shiftSample1.y|time",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample") translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="backSample1.y|sample.y|shiftSample1.y|time",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008984/0.0008984, allocations: 181.6 kB / 17.46 MB, free: 4.359 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.308/1.308, allocations: 205.4 MB / 223.6 MB, free: 9.02 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.0007734/0.0007734, allocations: 94.3 kB / 272 MB, free: 8.254 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo): time 0.07875/0.07875, allocations: 12.2 MB / 332.4 MB, free: 11.65 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005069/0.000507, allocations: 12 kB / 392.7 MB, free: 67.07 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08363/0.08415, allocations: 50.28 MB / 443 MB, free: 16.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3312/0.4154, allocations: 81.95 MB / 0.5127 GB, free: 12.34 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002156/0.4157, allocations: 84.61 kB / 0.5127 GB, free: 12.32 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01475/0.4305, allocations: 6.468 MB / 0.5191 GB, free: 9.711 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.254e-06/0.4305, allocations: 0 / 0.5191 GB, free: 9.711 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.843e-05/0.4305, allocations: 8 kB / 0.5191 GB, free: 9.703 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0005349/0.4311, allocations: 0.5028 MB / 0.5196 GB, free: 9.16 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.315e-05/0.4311, allocations: 8.031 kB / 0.5196 GB, free: 9.152 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.208e-05/0.4312, allocations: 24.66 kB / 0.5196 GB, free: 9.129 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003318/0.4315, allocations: 282.5 kB / 0.5199 GB, free: 8.84 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.597e-05/0.4315, allocations: 4.188 kB / 0.5199 GB, free: 8.84 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.011e-05/0.4316, allocations: 8.375 kB / 0.5199 GB, free: 8.832 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003007/0.4319, allocations: 178.9 kB / 0.52 GB, free: 8.66 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.062e-05/0.4319, allocations: 192 / 0.52 GB, free: 8.66 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.58e-05/0.4319, allocations: 7.938 kB / 0.52 GB, free: 8.652 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.029e-06/0.4319, allocations: 0 / 0.52 GB, free: 8.652 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.869e-05/0.432, allocations: 55.11 kB / 0.5201 GB, free: 8.613 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004336/0.4325, allocations: 381 kB / 0.5205 GB, free: 8.227 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001895/0.4327, allocations: 142.1 kB / 0.5206 GB, free: 8.074 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.353e-05/0.4327, allocations: 56.8 kB / 0.5206 GB, free: 8.016 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.577e-05/0.4328, allocations: 3.312 kB / 0.5206 GB, free: 8.016 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001193/0.4329, allocations: 73.64 kB / 0.5207 GB, free: 7.941 MB / 330.7 MB Notification: Performance of pre-optimization done (n=11): time 1.273e-06/0.4329, allocations: 8 kB / 0.5207 GB, free: 7.934 MB / 330.7 MB Notification: Performance of matching and sorting (n=11): time 0.0003257/0.4332, allocations: 157.1 kB / 0.5209 GB, free: 7.805 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.587e-05/0.4333, allocations: 162.1 kB / 0.521 GB, free: 7.613 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002235/0.4335, allocations: 277.1 kB / 0.5213 GB, free: 7.379 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.485e-05/0.4336, allocations: 25.7 kB / 0.5213 GB, free: 7.348 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.671e-05/0.4336, allocations: 121.7 kB / 0.5214 GB, free: 7.246 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.16e-05/0.4337, allocations: 26.42 kB / 0.5215 GB, free: 7.227 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.781e-06/0.4337, allocations: 2.375 kB / 0.5215 GB, free: 7.227 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.183e-05/0.4338, allocations: 336.9 kB / 0.5218 GB, free: 6.898 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.559e-05/0.4338, allocations: 23.11 kB / 0.5218 GB, free: 6.883 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.348e-05/0.4339, allocations: 91.27 kB / 0.5219 GB, free: 6.777 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001116/0.434, allocations: 88.69 kB / 0.522 GB, free: 6.688 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.774e-06/0.434, allocations: 4.031 kB / 0.522 GB, free: 6.684 MB / 330.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.000186/0.4342, allocations: 128.4 kB / 0.5221 GB, free: 6.574 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.516e-05/0.4343, allocations: 8 kB / 0.5221 GB, free: 6.566 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.919e-06/0.4343, allocations: 64 / 0.5221 GB, free: 6.566 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.478e-05/0.4343, allocations: 8 kB / 0.5221 GB, free: 6.559 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.866e-05/0.4344, allocations: 18.61 kB / 0.5221 GB, free: 6.543 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.134e-06/0.4344, allocations: 7.922 kB / 0.5221 GB, free: 6.535 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.747e-05/0.4344, allocations: 12.19 kB / 0.5222 GB, free: 6.523 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.207e-06/0.4345, allocations: 6.75 kB / 0.5222 GB, free: 6.52 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,sample.u,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,backSample1.y,backSample1.u,shiftSample1.y,shiftSample1.u,sample.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * 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.799e-05/0.4346, allocations: 145.2 kB / 0.5223 GB, free: 6.379 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.58e-05/0.4346, allocations: 76.28 kB / 0.5224 GB, free: 6.305 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001931/0.4348, allocations: 119.6 kB / 0.5225 GB, free: 6.203 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.196e-06/0.4348, allocations: 4 kB / 0.5225 GB, free: 6.199 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.4349, allocations: 4.094 kB / 0.5225 GB, free: 6.195 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.258e-06/0.4349, allocations: 0 / 0.5225 GB, free: 6.195 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001473/0.435, allocations: 237.2 kB / 0.5227 GB, free: 5.941 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.884e-06/0.435, allocations: 4 kB / 0.5227 GB, free: 5.938 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.88e-05/0.4351, allocations: 4 kB / 0.5227 GB, free: 5.934 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.877e-06/0.4351, allocations: 7.984 kB / 0.5227 GB, free: 5.926 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.044e-05/0.4351, allocations: 0 / 0.5227 GB, free: 5.926 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.823e-06/0.4351, allocations: 0 / 0.5227 GB, free: 5.926 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.4351, allocations: 4 kB / 0.5227 GB, free: 5.922 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000208/0.4353, allocations: 192.9 kB / 0.5229 GB, free: 5.738 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.293e-05/0.4354, allocations: 122.1 kB / 0.523 GB, free: 5.609 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.948e-05/0.4354, allocations: 4 kB / 0.523 GB, free: 5.605 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.251e-05/0.4355, allocations: 7.625 kB / 0.5231 GB, free: 5.602 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4e-05/0.4355, allocations: 7.984 kB / 0.5231 GB, free: 5.594 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.008e-05/0.4356, allocations: 8 kB / 0.5231 GB, free: 5.586 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.000146/0.4357, allocations: 196.7 kB / 0.5233 GB, free: 5.426 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4357, allocations: 0 / 0.5233 GB, free: 5.426 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002488/0.436, allocations: 39.73 kB / 0.5233 GB, free: 5.391 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,sample.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,backSample1.y,shiftSample1.y,backSample1.u,sample.y,shiftSample1.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 (12): * Single equations (assignments): 10 * 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.0009412/0.4369, allocations: 439.2 kB / 0.5237 GB, free: 4.969 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002467/0.4372, allocations: 78.59 kB / 0.5238 GB, free: 4.91 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.4372, allocations: 0 / 0.5238 GB, free: 4.91 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 7.241e-05/0.4373, allocations: 39.23 kB / 0.5238 GB, free: 4.883 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004547/0.4377, allocations: 75.42 kB / 0.5239 GB, free: 4.824 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000548/0.4383, allocations: 403.7 kB / 0.5243 GB, free: 4.422 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001712/0.4385, allocations: 0.7392 MB / 0.525 GB, free: 3.66 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.529e-05/0.4385, allocations: 15.44 kB / 0.525 GB, free: 3.645 MB / 330.7 MB Notification: Performance of SimCode: time 2.2e-07/0.4385, allocations: 4 kB / 0.525 GB, free: 3.641 MB / 330.7 MB Notification: Performance of Templates: time 0.004086/0.4426, allocations: 2.796 MB / 0.5278 GB, free: 0.8672 MB / 330.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches