Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_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-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.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="backSample1.y|sample.y|shiftSample1.y|time",fileNamePrefix="Modelica_Synchronous_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_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.001198/0.001197, allocations: 179.5 kB / 15.8 MB, free: 6.34 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.56/1.56, allocations: 205.4 MB / 221.9 MB, free: 13.85 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.0008229/0.0008228, allocations: 90.86 kB / 270.3 MB, free: 13.37 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.07062/0.07062, allocations: 12.61 MB / 331.1 MB, free: 10.3 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003562/0.0003562, allocations: 11.69 kB / 392 MB, free: 54.74 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09176/0.09214, allocations: 50.37 MB / 442.4 MB, free: 10.94 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1096/0.2018, allocations: 81.94 MB / 0.512 GB, free: 8.887 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002409/0.2021, allocations: 91.95 kB / 0.5121 GB, free: 8.797 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01526/0.2174, allocations: 5.928 MB / 0.5179 GB, free: 2.863 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.974e-06/0.2174, allocations: 0 / 0.5179 GB, free: 2.863 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.836e-05/0.2175, allocations: 4 kB / 0.5179 GB, free: 2.859 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0006636/0.2181, allocations: 0.5001 MB / 0.5184 GB, free: 2.305 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.053e-05/0.2182, allocations: 12.03 kB / 0.5184 GB, free: 2.293 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.697e-05/0.2182, allocations: 19.72 kB / 0.5184 GB, free: 2.273 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004058/0.2186, allocations: 277.6 kB / 0.5187 GB, free: 1.965 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.062e-05/0.2187, allocations: 4 kB / 0.5187 GB, free: 1.961 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.099e-05/0.2187, allocations: 11.95 kB / 0.5187 GB, free: 1.949 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003394/0.2191, allocations: 163.6 kB / 0.5189 GB, free: 1.762 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.045e-05/0.2191, allocations: 3.938 kB / 0.5189 GB, free: 1.758 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.532e-05/0.2191, allocations: 8 kB / 0.5189 GB, free: 1.75 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.19e-06/0.2191, allocations: 0 / 0.5189 GB, free: 1.75 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001016/0.2192, allocations: 39.92 kB / 0.5189 GB, free: 1.711 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000514/0.2197, allocations: 383.2 kB / 0.5193 GB, free: 1.277 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002196/0.22, allocations: 138.8 kB / 0.5194 GB, free: 1.105 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.546e-05/0.22, allocations: 7.938 kB / 0.5194 GB, free: 1.098 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001472/0.2202, allocations: 79.5 kB / 0.5195 GB, free: 1.008 MB / 362.7 MB Notification: Performance of pre-optimization done (n=11): time 1.533e-06/0.2202, allocations: 0 / 0.5195 GB, free: 1.008 MB / 362.7 MB Notification: Performance of matching and sorting (n=11): time 0.0003532/0.2205, allocations: 157.2 kB / 0.5196 GB, free: 0.8477 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.758e-05/0.2206, allocations: 166.6 kB / 0.5198 GB, free: 0.6484 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002575/0.2209, allocations: 244.2 kB / 0.52 GB, free: 412 kB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.607e-05/0.2209, allocations: 25.7 kB / 0.52 GB, free: 380 kB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.378e-05/0.221, allocations: 128.2 kB / 0.5202 GB, free: 244 kB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.453e-05/0.221, allocations: 11.89 kB / 0.5202 GB, free: 232 kB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.33e-06/0.221, allocations: 11.88 kB / 0.5202 GB, free: 220 kB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.2124/0.4335, allocations: 330.1 kB / 0.5205 GB, free: 84.05 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001671/0.4337, allocations: 22.22 kB / 0.5205 GB, free: 84.05 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001108/0.4338, allocations: 88.05 kB / 0.5206 GB, free: 83.98 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.085e-05/0.4339, allocations: 28.62 kB / 0.5206 GB, free: 83.98 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.608e-06/0.4339, allocations: 2.5 kB / 0.5206 GB, free: 83.98 MB / 362.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002887/0.4342, allocations: 131 kB / 0.5208 GB, free: 83.95 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.286e-05/0.4343, allocations: 6.125 kB / 0.5208 GB, free: 83.95 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.636e-06/0.4343, allocations: 1.031 kB / 0.5208 GB, free: 83.95 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.196e-05/0.4343, allocations: 6.938 kB / 0.5208 GB, free: 83.95 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.831e-05/0.4344, allocations: 14.45 kB / 0.5208 GB, free: 83.95 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.003e-05/0.4344, allocations: 7.734 kB / 0.5208 GB, free: 83.95 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001144/0.4345, allocations: 13.59 kB / 0.5208 GB, free: 83.95 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.262e-05/0.4346, allocations: 5.953 kB / 0.5208 GB, free: 83.95 MB / 362.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 0.0001635/0.4347, allocations: 145.1 kB / 0.521 GB, free: 83.83 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.752e-05/0.4348, allocations: 86.36 kB / 0.521 GB, free: 83.8 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002395/0.4351, allocations: 112.9 kB / 0.5212 GB, free: 83.75 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.287e-06/0.4351, allocations: 0 / 0.5212 GB, free: 83.75 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.1e-06/0.4351, allocations: 2.094 kB / 0.5212 GB, free: 83.75 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.522e-06/0.4351, allocations: 4.188 kB / 0.5212 GB, free: 83.75 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002012/0.4353, allocations: 243.9 kB / 0.5214 GB, free: 83.57 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.565e-06/0.4353, allocations: 1.078 kB / 0.5214 GB, free: 83.57 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.276e-05/0.4354, allocations: 9.312 kB / 0.5214 GB, free: 83.57 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.817e-06/0.4354, allocations: 8.547 kB / 0.5214 GB, free: 83.57 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.2e-05/0.4354, allocations: 7.047 kB / 0.5214 GB, free: 83.56 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.843e-06/0.4354, allocations: 0 / 0.5214 GB, free: 83.56 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.4354, allocations: 1.219 kB / 0.5214 GB, free: 83.56 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002513/0.4357, allocations: 215.6 kB / 0.5216 GB, free: 83.42 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001013/0.4358, allocations: 115.9 kB / 0.5217 GB, free: 83.32 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.195e-05/0.4358, allocations: 4.172 kB / 0.5217 GB, free: 83.32 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.363e-05/0.4359, allocations: 12.56 kB / 0.5217 GB, free: 83.32 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.212e-05/0.436, allocations: 7.562 kB / 0.5218 GB, free: 83.32 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.072e-05/0.436, allocations: 5.125 kB / 0.5218 GB, free: 83.32 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001983/0.4362, allocations: 200 kB / 0.522 GB, free: 83.24 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4362, allocations: 0 / 0.522 GB, free: 83.24 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000308/0.4365, allocations: 42.17 kB / 0.522 GB, free: 83.23 MB / 362.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.0009754/0.4375, allocations: 438.7 kB / 0.5224 GB, free: 82.95 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002795/0.4378, allocations: 83.47 kB / 0.5225 GB, free: 82.95 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.4378, allocations: 0 / 0.5225 GB, free: 82.95 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 7.76e-05/0.4379, allocations: 29.8 kB / 0.5225 GB, free: 82.95 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004038/0.4383, allocations: 73.12 kB / 0.5226 GB, free: 82.93 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005981/0.4389, allocations: 370.8 kB / 0.5229 GB, free: 82.7 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001815/0.4391, allocations: 0.7404 MB / 0.5237 GB, free: 82.01 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 9.9e-05/0.4392, allocations: 33.64 kB / 0.5237 GB, free: 81.99 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.901e-05/0.4392, allocations: 18.72 kB / 0.5237 GB, free: 81.98 MB / 362.7 MB Notification: Performance of SimCode: time 2.2e-07/0.4393, allocations: 0 / 0.5237 GB, free: 81.98 MB / 362.7 MB Notification: Performance of Templates: time 0.006963/0.4462, allocations: 2.547 MB / 0.5262 GB, free: 81.73 MB / 362.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:backSample1.y,sample.y,shiftSample1.y,time Variables in the result:backSample1.backCounter,backSample1.resolution,backSample1.y,backSample1.y_start,periodicClock.factor,periodicClock.resolution,periodicClock.resolutionFactor,periodicClock.useSolver,sample.y,shiftSample1.resolution,shiftSample1.shiftCounter,shiftSample1.y,table.combiTimeTable.columns[1],table.combiTimeTable.extrapolation,table.combiTimeTable.nout,table.combiTimeTable.offset[1],table.combiTimeTable.p_offset[1],table.combiTimeTable.shiftTime,table.combiTimeTable.smoothness,table.combiTimeTable.startTime,table.combiTimeTable.t_max,table.combiTimeTable.t_maxScaled,table.combiTimeTable.t_min,table.combiTimeTable.t_minScaled,table.combiTimeTable.tableOnFile,table.combiTimeTable.table[1,1],table.combiTimeTable.table[1,2],table.combiTimeTable.table[2,1],table.combiTimeTable.table[2,2],table.combiTimeTable.table[3,1],table.combiTimeTable.table[3,2],table.combiTimeTable.timeEvents,table.combiTimeTable.timeScale,table.combiTimeTable.verboseExtrapolation,table.combiTimeTable.verboseRead,table.extrapolation,table.n,table.realToBoolean.threshold,table.shiftTime,table.startTime,table.startValue,table.table[1],table.table[2],time