Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.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.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|shiftSample1.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample") translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|shiftSample1.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001466/0.001466, allocations: 185.1 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.912/1.912, allocations: 205.4 MB / 222.6 MB, free: 9.121 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.001145/0.001145, allocations: 92.3 kB / 270.9 MB, free: 8.371 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.09982/0.09982, allocations: 12.59 MB / 331.8 MB, free: 11.39 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007405/0.0007406, allocations: 12 kB / 392 MB, free: 66.9 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08682/0.08761, allocations: 50.37 MB / 442.3 MB, free: 16.48 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4274/0.5151, allocations: 81.84 MB / 0.5119 GB, free: 12.27 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002634/0.5154, allocations: 86.44 kB / 0.512 GB, free: 12.25 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02153/0.5369, allocations: 5.8 MB / 0.5176 GB, free: 9.832 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.184e-06/0.537, allocations: 0 / 0.5176 GB, free: 9.832 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.039e-05/0.537, allocations: 4 kB / 0.5176 GB, free: 9.828 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.0006241/0.5377, allocations: 0.5035 MB / 0.5181 GB, free: 9.289 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.654e-05/0.5377, allocations: 8.031 kB / 0.5181 GB, free: 9.281 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.122e-05/0.5378, allocations: 19.81 kB / 0.5182 GB, free: 9.262 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004184/0.5382, allocations: 266.2 kB / 0.5184 GB, free: 8.984 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.156e-05/0.5382, allocations: 7.203 kB / 0.5184 GB, free: 8.98 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.126e-05/0.5383, allocations: 6.812 kB / 0.5184 GB, free: 8.977 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003459/0.5386, allocations: 143.6 kB / 0.5186 GB, free: 8.836 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.689e-06/0.5387, allocations: 11.88 kB / 0.5186 GB, free: 8.824 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.727e-05/0.5387, allocations: 3.984 kB / 0.5186 GB, free: 8.82 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.43e-06/0.5387, allocations: 0 / 0.5186 GB, free: 8.82 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001368/0.5388, allocations: 38.03 kB / 0.5186 GB, free: 8.793 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005067/0.5394, allocations: 371.5 kB / 0.519 GB, free: 8.422 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002682/0.5396, allocations: 108.7 kB / 0.5191 GB, free: 8.305 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.319e-05/0.5397, allocations: 3.562 kB / 0.5191 GB, free: 8.305 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000165/0.5399, allocations: 73.58 kB / 0.5192 GB, free: 8.23 MB / 330.7 MB Notification: Performance of pre-optimization done (n=9): time 1.813e-06/0.5399, allocations: 0 / 0.5192 GB, free: 8.23 MB / 330.7 MB Notification: Performance of matching and sorting (n=9): time 0.0004391/0.5403, allocations: 150.4 kB / 0.5193 GB, free: 8.102 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.013e-05/0.5404, allocations: 136.1 kB / 0.5194 GB, free: 7.941 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003148/0.5407, allocations: 234.8 kB / 0.5196 GB, free: 7.746 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.738e-05/0.5407, allocations: 29.95 kB / 0.5197 GB, free: 7.711 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.412e-05/0.5408, allocations: 181.2 kB / 0.5198 GB, free: 7.551 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.667e-05/0.5409, allocations: 15.23 kB / 0.5199 GB, free: 7.539 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.095e-06/0.5409, allocations: 4 kB / 0.5199 GB, free: 7.535 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.615e-05/0.5409, allocations: 318.6 kB / 0.5202 GB, free: 7.219 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.672e-05/0.541, allocations: 27.42 kB / 0.5202 GB, free: 7.199 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000115/0.5412, allocations: 74.23 kB / 0.5203 GB, free: 7.117 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.709e-05/0.5413, allocations: 35.23 kB / 0.5203 GB, free: 7.09 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.5413, allocations: 0 / 0.5203 GB, free: 7.09 MB / 330.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002562/0.5415, allocations: 106.3 kB / 0.5204 GB, free: 7 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.515e-05/0.5416, allocations: 4 kB / 0.5204 GB, free: 6.996 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.452e-06/0.5416, allocations: 8.156 kB / 0.5204 GB, free: 6.988 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.307e-05/0.5416, allocations: 0 / 0.5204 GB, free: 6.988 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001093/0.5417, allocations: 15.31 kB / 0.5204 GB, free: 6.977 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.386e-06/0.5418, allocations: 3.984 kB / 0.5204 GB, free: 6.973 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001061/0.5419, allocations: 4 kB / 0.5204 GB, free: 6.969 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.131e-05/0.5419, allocations: 4 kB / 0.5204 GB, free: 6.965 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,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 (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.0001242/0.542, allocations: 150.8 kB / 0.5206 GB, free: 6.82 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.35e-05/0.5421, allocations: 64.81 kB / 0.5206 GB, free: 6.754 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002948/0.5424, allocations: 123.6 kB / 0.5208 GB, free: 6.656 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.258e-06/0.5425, allocations: 0 / 0.5208 GB, free: 6.656 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/0.5425, allocations: 0 / 0.5208 GB, free: 6.656 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.39e-06/0.5425, allocations: 4 kB / 0.5208 GB, free: 6.652 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001865/0.5427, allocations: 235.2 kB / 0.521 GB, free: 6.398 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.5427, allocations: 0 / 0.521 GB, free: 6.398 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.803e-05/0.5427, allocations: 8 kB / 0.521 GB, free: 6.391 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.277e-06/0.5428, allocations: 0 / 0.521 GB, free: 6.391 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.482e-05/0.5428, allocations: 10.92 kB / 0.521 GB, free: 6.383 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.515e-06/0.5428, allocations: 4.062 kB / 0.521 GB, free: 6.379 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/0.5428, allocations: 3.938 kB / 0.521 GB, free: 6.375 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003158/0.5431, allocations: 183.1 kB / 0.5212 GB, free: 6.184 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001051/0.5432, allocations: 119.7 kB / 0.5213 GB, free: 6.059 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.139e-05/0.5433, allocations: 0 / 0.5213 GB, free: 6.059 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001013/0.5434, allocations: 8.047 kB / 0.5213 GB, free: 6.051 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.267e-05/0.5435, allocations: 11.44 kB / 0.5213 GB, free: 6.043 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.379e-05/0.5435, allocations: 7.984 kB / 0.5213 GB, free: 6.035 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002328/0.5437, allocations: 191 kB / 0.5215 GB, free: 5.879 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.5437, allocations: 3.938 kB / 0.5215 GB, free: 5.875 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003324/0.5441, allocations: 35.61 kB / 0.5216 GB, free: 5.844 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,shiftSample1.y,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 (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.001055/0.5451, allocations: 429.1 kB / 0.522 GB, free: 5.43 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002728/0.5454, allocations: 69.22 kB / 0.522 GB, free: 5.379 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.048e-06/0.5455, allocations: 0 / 0.522 GB, free: 5.379 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001019/0.5456, allocations: 30.73 kB / 0.5221 GB, free: 5.355 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004354/0.546, allocations: 68.83 kB / 0.5221 GB, free: 5.301 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006314/0.5467, allocations: 394.4 kB / 0.5225 GB, free: 4.906 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001863/0.5469, allocations: 0.7315 MB / 0.5232 GB, free: 4.152 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.809e-05/0.5469, allocations: 15.44 kB / 0.5232 GB, free: 4.137 MB / 330.7 MB Notification: Performance of SimCode: time 6.51e-07/0.5469, allocations: 0 / 0.5232 GB, free: 4.137 MB / 330.7 MB Notification: Performance of Templates: time 0.005679/0.5526, allocations: 2.623 MB / 0.5258 GB, free: 1.531 MB / 330.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches