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.001594/0.001598, allocations: 186.4 kB / 13.7 MB, free: 1.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.105/2.105, allocations: 205.2 MB / 219.4 MB, free: 14.28 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.001121/0.001121, allocations: 86.58 kB / 267.5 MB, free: 14.12 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.1026/0.1026, allocations: 12.61 MB / 328.2 MB, free: 11.16 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.022e-05/4.048e-05, allocations: 4 kB / 386 MB, free: 1.305 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3235/0.3236, allocations: 50.36 MB / 436.3 MB, free: 14.16 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1499/0.4736, allocations: 81.75 MB / 0.506 GB, free: 12.3 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003387/0.474, allocations: 83.95 kB / 0.506 GB, free: 12.21 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02651/0.5005, allocations: 5.789 MB / 0.5117 GB, free: 6.422 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.234e-06/0.5006, allocations: 0 / 0.5117 GB, free: 6.422 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.293e-05/0.5006, allocations: 4 kB / 0.5117 GB, free: 6.418 MB / 362.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.0007538/0.5014, allocations: 475.8 kB / 0.5121 GB, free: 5.902 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.448e-05/0.5014, allocations: 8.031 kB / 0.5121 GB, free: 5.895 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.26e-05/0.5015, allocations: 27.66 kB / 0.5122 GB, free: 5.867 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005508/0.5021, allocations: 253.7 kB / 0.5124 GB, free: 5.578 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.914e-05/0.5021, allocations: 11.95 kB / 0.5124 GB, free: 5.566 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.383e-05/0.5022, allocations: 4 kB / 0.5124 GB, free: 5.562 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000407/0.5026, allocations: 138.8 kB / 0.5126 GB, free: 5.402 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.231e-05/0.5026, allocations: 4 kB / 0.5126 GB, free: 5.398 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.065e-05/0.5026, allocations: 3.984 kB / 0.5126 GB, free: 5.395 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.074e-06/0.5027, allocations: 0 / 0.5126 GB, free: 5.395 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001279/0.5028, allocations: 39.92 kB / 0.5126 GB, free: 5.355 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007227/0.5035, allocations: 366.5 kB / 0.513 GB, free: 4.941 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002479/0.5038, allocations: 107.8 kB / 0.5131 GB, free: 4.809 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000106/0.5039, allocations: 46.69 kB / 0.5131 GB, free: 4.754 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.732e-05/0.504, allocations: 0 / 0.5131 GB, free: 4.754 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001815/0.5042, allocations: 79.23 kB / 0.5132 GB, free: 4.664 MB / 362.7 MB Notification: Performance of pre-optimization done (n=9): time 2.104e-06/0.5042, allocations: 0 / 0.5132 GB, free: 4.664 MB / 362.7 MB Notification: Performance of matching and sorting (n=9): time 0.0003702/0.5046, allocations: 113.4 kB / 0.5133 GB, free: 4.547 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.797e-05/0.5047, allocations: 144.4 kB / 0.5134 GB, free: 4.375 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004029/0.5051, allocations: 233.1 kB / 0.5137 GB, free: 4.141 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.781e-05/0.5051, allocations: 29.7 kB / 0.5137 GB, free: 4.105 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001096/0.5052, allocations: 178.5 kB / 0.5139 GB, free: 3.93 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.121e-05/0.5053, allocations: 15.89 kB / 0.5139 GB, free: 3.914 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.554e-06/0.5053, allocations: 0 / 0.5139 GB, free: 3.914 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001279/0.5055, allocations: 322.9 kB / 0.5142 GB, free: 3.59 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.041e-05/0.5055, allocations: 20 kB / 0.5142 GB, free: 3.57 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001151/0.5057, allocations: 66 kB / 0.5143 GB, free: 3.484 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.956e-05/0.5058, allocations: 39.12 kB / 0.5143 GB, free: 3.449 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.049e-06/0.5058, allocations: 4 kB / 0.5143 GB, free: 3.445 MB / 362.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002395/0.506, allocations: 97.52 kB / 0.5144 GB, free: 3.344 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.875e-05/0.5061, allocations: 4 kB / 0.5144 GB, free: 3.34 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.04e-05/0.5061, allocations: 4 kB / 0.5144 GB, free: 3.336 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.461e-05/0.5061, allocations: 0 / 0.5144 GB, free: 3.336 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001355/0.5062, allocations: 19.94 kB / 0.5144 GB, free: 3.316 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.696e-06/0.5063, allocations: 0 / 0.5144 GB, free: 3.316 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001198/0.5064, allocations: 12.11 kB / 0.5144 GB, free: 3.305 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.528e-05/0.5064, allocations: 4 kB / 0.5144 GB, free: 3.301 MB / 362.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 () * 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.0001064/0.5065, allocations: 124.7 kB / 0.5146 GB, free: 3.172 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001174/0.5067, allocations: 61.44 kB / 0.5146 GB, free: 3.105 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002956/0.507, allocations: 111.5 kB / 0.5147 GB, free: 2.992 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.268e-06/0.507, allocations: 3.938 kB / 0.5147 GB, free: 2.988 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.67e-06/0.507, allocations: 64 / 0.5147 GB, free: 2.988 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.248e-06/0.507, allocations: 11.98 kB / 0.5147 GB, free: 2.977 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00028/0.5073, allocations: 229.5 kB / 0.5149 GB, free: 2.703 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.374e-06/0.5074, allocations: 0 / 0.5149 GB, free: 2.703 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.466e-05/0.5074, allocations: 8 kB / 0.515 GB, free: 2.695 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.556e-06/0.5074, allocations: 0 / 0.515 GB, free: 2.695 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.199e-05/0.5075, allocations: 8 kB / 0.515 GB, free: 2.688 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.765e-06/0.5075, allocations: 3.938 kB / 0.515 GB, free: 2.684 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.5075, allocations: 0 / 0.515 GB, free: 2.684 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003245/0.5078, allocations: 186 kB / 0.5151 GB, free: 2.465 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001488/0.508, allocations: 116.9 kB / 0.5153 GB, free: 2.332 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.656e-05/0.508, allocations: 7.922 kB / 0.5153 GB, free: 2.324 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000108/0.5082, allocations: 4 kB / 0.5153 GB, free: 2.32 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.227e-05/0.5082, allocations: 12.05 kB / 0.5153 GB, free: 2.309 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.737e-05/0.5083, allocations: 12 kB / 0.5153 GB, free: 2.297 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002859/0.5086, allocations: 189.4 kB / 0.5155 GB, free: 2.109 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.81e-07/0.5086, allocations: 0 / 0.5155 GB, free: 2.109 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003588/0.5089, allocations: 39.94 kB / 0.5155 GB, free: 2.07 MB / 362.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) * 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.001152/0.5101, allocations: 380.9 kB / 0.5159 GB, free: 1.691 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002546/0.5104, allocations: 71.86 kB / 0.5159 GB, free: 1.621 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.5104, allocations: 256 / 0.5159 GB, free: 1.621 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 9.03e-05/0.5105, allocations: 31.94 kB / 0.516 GB, free: 1.59 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004769/0.511, allocations: 56.31 kB / 0.516 GB, free: 1.535 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006629/0.5117, allocations: 258.5 kB / 0.5163 GB, free: 1.242 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003518/0.512, allocations: 0.7363 MB / 0.517 GB, free: 492 kB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.58e-05/0.5121, allocations: 23.38 kB / 0.517 GB, free: 468 kB / 362.7 MB Notification: Performance of SimCode: time 6.61e-07/0.5121, allocations: 0 / 0.517 GB, free: 468 kB / 362.7 MB Notification: Performance of Templates: time 0.2933/0.8054, allocations: 2.619 MB / 0.5196 GB, free: 85.5 MB / 362.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