Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_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_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_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.001076/0.001076, 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.455/1.455, 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.0008593/0.0008591, allocations: 92.25 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.08128/0.08128, allocations: 12.59 MB / 327.8 MB, free: 12.48 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.569e-05/3.571e-05, allocations: 4 kB / 386 MB, free: 69.61 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09787/0.09792, allocations: 50.37 MB / 436.4 MB, free: 19.22 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3984/0.4964, allocations: 81.74 MB / 0.506 GB, free: 12.01 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002558/0.4967, allocations: 86.58 kB / 0.5061 GB, free: 12.01 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01409/0.5108, allocations: 5.79 MB / 0.5117 GB, free: 9.832 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.635e-06/0.5109, allocations: 4 kB / 0.5117 GB, free: 9.828 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.017e-05/0.5109, allocations: 3.844 kB / 0.5117 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.0004783/0.5114, allocations: 471.6 kB / 0.5122 GB, free: 9.371 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.367e-05/0.5114, allocations: 15.59 kB / 0.5122 GB, free: 9.367 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.376e-05/0.5115, allocations: 23.39 kB / 0.5122 GB, free: 9.352 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000326/0.5118, allocations: 260.9 kB / 0.5124 GB, free: 9.121 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.844e-05/0.5118, allocations: 11.23 kB / 0.5125 GB, free: 9.117 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.531e-05/0.5119, allocations: 7.844 kB / 0.5125 GB, free: 9.113 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002483/0.5121, allocations: 141.4 kB / 0.5126 GB, free: 9.016 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.354e-06/0.5121, allocations: 0 / 0.5126 GB, free: 9.016 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.232e-05/0.5121, allocations: 3.875 kB / 0.5126 GB, free: 9.016 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.728e-06/0.5122, allocations: 0 / 0.5126 GB, free: 9.016 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.325e-05/0.5122, allocations: 36.58 kB / 0.5126 GB, free: 9.008 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004095/0.5126, allocations: 365.5 kB / 0.513 GB, free: 8.684 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001257/0.5128, allocations: 107.3 kB / 0.5131 GB, free: 8.602 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.098e-05/0.5128, allocations: 40.67 kB / 0.5131 GB, free: 8.578 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.643e-05/0.5129, allocations: 0 / 0.5131 GB, free: 8.578 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001103/0.513, allocations: 84.95 kB / 0.5132 GB, free: 8.512 MB / 330.7 MB Notification: Performance of pre-optimization done (n=9): time 1.974e-06/0.513, allocations: 0 / 0.5132 GB, free: 8.512 MB / 330.7 MB Notification: Performance of matching and sorting (n=9): time 0.0002166/0.5132, allocations: 116 kB / 0.5133 GB, free: 8.457 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.976e-05/0.5133, allocations: 136.3 kB / 0.5135 GB, free: 8.297 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002201/0.5135, allocations: 235.4 kB / 0.5137 GB, free: 8.188 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.535e-05/0.5135, allocations: 28.83 kB / 0.5137 GB, free: 8.156 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.155e-05/0.5136, allocations: 122.2 kB / 0.5138 GB, free: 8.062 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.894e-05/0.5136, allocations: 15.02 kB / 0.5138 GB, free: 8.059 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.038e-06/0.5136, allocations: 0 / 0.5138 GB, free: 8.059 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.492e-05/0.5137, allocations: 333.1 kB / 0.5142 GB, free: 7.734 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.513e-05/0.5137, allocations: 18.88 kB / 0.5142 GB, free: 7.734 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.427e-05/0.5138, allocations: 77.89 kB / 0.5142 GB, free: 7.672 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.199e-05/0.5139, allocations: 22.56 kB / 0.5143 GB, free: 7.668 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.5139, allocations: 3.875 kB / 0.5143 GB, free: 7.668 MB / 330.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000135/0.514, allocations: 113.3 kB / 0.5144 GB, free: 7.609 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.17e-05/0.514, allocations: 7.406 kB / 0.5144 GB, free: 7.609 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.168e-06/0.514, allocations: 0 / 0.5144 GB, free: 7.609 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.413e-05/0.5141, allocations: 7.969 kB / 0.5144 GB, free: 7.605 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.576e-05/0.5141, allocations: 11.67 kB / 0.5144 GB, free: 7.602 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.44e-06/0.5141, allocations: 3.844 kB / 0.5144 GB, free: 7.602 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.503e-05/0.5142, allocations: 11.59 kB / 0.5144 GB, free: 7.598 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.526e-06/0.5142, allocations: 3.812 kB / 0.5144 GB, free: 7.598 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 () * 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 5.869e-05/0.5143, allocations: 131.7 kB / 0.5145 GB, free: 7.473 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.15e-05/0.5144, allocations: 56.53 kB / 0.5146 GB, free: 7.43 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001652/0.5145, allocations: 114.7 kB / 0.5147 GB, free: 7.375 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.525e-06/0.5145, allocations: 3.906 kB / 0.5147 GB, free: 7.375 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.617e-06/0.5146, allocations: 0 / 0.5147 GB, free: 7.375 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.025e-06/0.5146, allocations: 0 / 0.5147 GB, free: 7.375 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001344/0.5147, allocations: 235.8 kB / 0.5149 GB, free: 7.156 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.5147, allocations: 3.844 kB / 0.5149 GB, free: 7.156 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.051e-05/0.5148, allocations: 11.73 kB / 0.515 GB, free: 7.148 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.635e-06/0.5148, allocations: 0 / 0.515 GB, free: 7.148 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.648e-06/0.5148, allocations: 7.812 kB / 0.515 GB, free: 7.145 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.5148, allocations: 0 / 0.515 GB, free: 7.145 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.873e-06/0.5148, allocations: 3.938 kB / 0.515 GB, free: 7.141 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001695/0.515, allocations: 187.8 kB / 0.5151 GB, free: 7 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.171e-05/0.515, allocations: 111.1 kB / 0.5153 GB, free: 6.891 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.648e-05/0.5151, allocations: 3.125 kB / 0.5153 GB, free: 6.891 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.41e-05/0.5151, allocations: 11.86 kB / 0.5153 GB, free: 6.883 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.387e-05/0.5152, allocations: 3.812 kB / 0.5153 GB, free: 6.883 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.427e-05/0.5152, allocations: 7.781 kB / 0.5153 GB, free: 6.883 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001497/0.5154, allocations: 192.7 kB / 0.5155 GB, free: 6.789 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5154, allocations: 0 / 0.5155 GB, free: 6.789 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002298/0.5156, allocations: 41.67 kB / 0.5155 GB, free: 6.777 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) * 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.0007881/0.5164, allocations: 384.1 kB / 0.5159 GB, free: 6.473 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001592/0.5166, allocations: 75.64 kB / 0.5159 GB, free: 6.457 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.5166, allocations: 0 / 0.5159 GB, free: 6.457 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 5.11e-05/0.5167, allocations: 25.28 kB / 0.516 GB, free: 6.457 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002849/0.517, allocations: 55.05 kB / 0.516 GB, free: 6.445 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003594/0.5173, allocations: 235.6 kB / 0.5162 GB, free: 6.293 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001699/0.5175, allocations: 0.734 MB / 0.517 GB, free: 5.57 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 6.795e-05/0.5176, allocations: 28.55 kB / 0.517 GB, free: 5.555 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.952e-05/0.5176, allocations: 19.14 kB / 0.517 GB, free: 5.543 MB / 330.7 MB Notification: Performance of SimCode: time 2.61e-07/0.5176, allocations: 0 / 0.517 GB, free: 5.543 MB / 330.7 MB Notification: Performance of Templates: time 0.004737/0.5224, allocations: 2.366 MB / 0.5193 GB, free: 4.355 MB / 330.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches