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.0009773/0.0009772, 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.55/1.55, 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.0008917/0.0008917, allocations: 85.03 kB / 267.1 MB, free: 9.277 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.08762/0.08762, allocations: 12.58 MB / 327.8 MB, free: 12.48 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.288e-05/3.29e-05, allocations: 4 kB / 386 MB, free: 69.61 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1031/0.1032, allocations: 50.37 MB / 436.4 MB, free: 19.23 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3862/0.4895, allocations: 81.85 MB / 0.5061 GB, free: 11.83 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000234/0.4897, allocations: 82.45 kB / 0.5062 GB, free: 11.82 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01453/0.5043, allocations: 5.903 MB / 0.5119 GB, free: 9.598 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.853e-06/0.5043, allocations: 0 / 0.5119 GB, free: 9.598 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.077e-05/0.5044, allocations: 8.156 kB / 0.5119 GB, free: 9.594 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.0004516/0.5048, allocations: 484.1 kB / 0.5124 GB, free: 9.129 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.925e-05/0.5049, allocations: 7.688 kB / 0.5124 GB, free: 9.129 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.252e-05/0.5049, allocations: 27.22 kB / 0.5124 GB, free: 9.113 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003354/0.5053, allocations: 271.9 kB / 0.5127 GB, free: 8.871 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.003e-05/0.5053, allocations: 7.844 kB / 0.5127 GB, free: 8.871 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.804e-05/0.5053, allocations: 7.859 kB / 0.5127 GB, free: 8.867 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002876/0.5056, allocations: 162 kB / 0.5129 GB, free: 8.762 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.704e-06/0.5057, allocations: 7.938 kB / 0.5129 GB, free: 8.754 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.448e-05/0.5057, allocations: 0 / 0.5129 GB, free: 8.754 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.821e-06/0.5057, allocations: 3.969 kB / 0.5129 GB, free: 8.754 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.191e-05/0.5058, allocations: 39.11 kB / 0.5129 GB, free: 8.746 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004095/0.5062, allocations: 381.6 kB / 0.5133 GB, free: 8.41 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001416/0.5063, allocations: 125.3 kB / 0.5134 GB, free: 8.309 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.189e-05/0.5064, allocations: 64.55 kB / 0.5134 GB, free: 8.266 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.482e-05/0.5065, allocations: 7.891 kB / 0.5135 GB, free: 8.262 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001067/0.5066, allocations: 69.05 kB / 0.5135 GB, free: 8.207 MB / 330.7 MB Notification: Performance of pre-optimization done (n=11): time 1.643e-06/0.5066, allocations: 0 / 0.5135 GB, free: 8.207 MB / 330.7 MB Notification: Performance of matching and sorting (n=11): time 0.0002484/0.5068, allocations: 139.9 kB / 0.5137 GB, free: 8.141 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.349e-05/0.5069, allocations: 157.9 kB / 0.5138 GB, free: 7.953 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000245/0.5072, allocations: 240.5 kB / 0.514 GB, free: 7.844 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.538e-05/0.5072, allocations: 28.58 kB / 0.5141 GB, free: 7.812 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.214e-05/0.5072, allocations: 121.2 kB / 0.5142 GB, free: 7.719 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.057e-05/0.5073, allocations: 18.62 kB / 0.5142 GB, free: 7.707 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.278e-06/0.5073, allocations: 96 / 0.5142 GB, free: 7.707 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.108e-05/0.5074, allocations: 344.5 kB / 0.5145 GB, free: 7.379 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.902e-05/0.5074, allocations: 21.97 kB / 0.5145 GB, free: 7.375 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.434e-05/0.5075, allocations: 78.53 kB / 0.5146 GB, free: 7.301 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.153e-05/0.5075, allocations: 31.77 kB / 0.5146 GB, free: 7.293 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.5075, allocations: 0 / 0.5146 GB, free: 7.293 MB / 330.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001569/0.5077, allocations: 130.8 kB / 0.5148 GB, free: 7.23 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.441e-05/0.5077, allocations: 7.906 kB / 0.5148 GB, free: 7.23 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.581e-06/0.5077, allocations: 4 kB / 0.5148 GB, free: 7.227 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.372e-05/0.5078, allocations: 3.656 kB / 0.5148 GB, free: 7.227 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.794e-05/0.5078, allocations: 11.25 kB / 0.5148 GB, free: 7.227 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.756e-06/0.5079, allocations: 3.875 kB / 0.5148 GB, free: 7.227 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.266e-05/0.5079, allocations: 15.7 kB / 0.5148 GB, free: 7.219 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.957e-06/0.5079, allocations: 3.688 kB / 0.5148 GB, free: 7.219 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 () * 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 7.352e-05/0.508, allocations: 119.7 kB / 0.5149 GB, free: 7.105 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.467e-05/0.5081, allocations: 83 kB / 0.515 GB, free: 7.051 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001836/0.5083, allocations: 118.1 kB / 0.5151 GB, free: 6.996 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.466e-06/0.5083, allocations: 3.812 kB / 0.5151 GB, free: 6.996 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.458e-06/0.5083, allocations: 0 / 0.5151 GB, free: 6.996 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.459e-06/0.5083, allocations: 3.906 kB / 0.5151 GB, free: 6.996 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001485/0.5085, allocations: 240.7 kB / 0.5154 GB, free: 6.77 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.5085, allocations: 0 / 0.5154 GB, free: 6.77 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.155e-05/0.5085, allocations: 7.688 kB / 0.5154 GB, free: 6.77 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.464e-06/0.5086, allocations: 0 / 0.5154 GB, free: 6.77 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.888e-06/0.5086, allocations: 8 kB / 0.5154 GB, free: 6.766 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.5086, allocations: 0 / 0.5154 GB, free: 6.766 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.143e-06/0.5086, allocations: 3.812 kB / 0.5154 GB, free: 6.766 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001809/0.5088, allocations: 212.9 kB / 0.5156 GB, free: 6.602 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.866e-05/0.5089, allocations: 116.1 kB / 0.5157 GB, free: 6.488 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.052e-05/0.5089, allocations: 10.78 kB / 0.5157 GB, free: 6.484 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.789e-05/0.509, allocations: 7.859 kB / 0.5157 GB, free: 6.48 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.221e-05/0.509, allocations: 7.781 kB / 0.5157 GB, free: 6.48 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.066e-05/0.509, allocations: 11.73 kB / 0.5157 GB, free: 6.473 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001502/0.5092, allocations: 193.4 kB / 0.5159 GB, free: 6.379 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.5092, allocations: 0 / 0.5159 GB, free: 6.379 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002459/0.5095, allocations: 50.27 kB / 0.516 GB, free: 6.363 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) * 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.0007552/0.5102, allocations: 383.7 kB / 0.5163 GB, free: 6.062 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001771/0.5104, allocations: 75.8 kB / 0.5164 GB, free: 6.055 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.5104, allocations: 0 / 0.5164 GB, free: 6.055 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 4.843e-05/0.5105, allocations: 26.25 kB / 0.5164 GB, free: 6.051 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003382/0.5108, allocations: 77.58 kB / 0.5165 GB, free: 6.027 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004067/0.5112, allocations: 255.1 kB / 0.5167 GB, free: 5.863 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001491/0.5114, allocations: 0.7377 MB / 0.5175 GB, free: 5.145 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 6.799e-05/0.5115, allocations: 25.19 kB / 0.5175 GB, free: 5.133 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.392e-05/0.5115, allocations: 21.56 kB / 0.5175 GB, free: 5.125 MB / 330.7 MB Notification: Performance of SimCode: time 2.61e-07/0.5115, allocations: 0 / 0.5175 GB, free: 5.125 MB / 330.7 MB Notification: Performance of Templates: time 0.004854/0.5164, allocations: 2.531 MB / 0.52 GB, free: 3.855 MB / 330.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