Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.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.IntegerSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|backSample1.y|sample.y|shiftSample1.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample") translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|backSample1.y|sample.y|shiftSample1.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001176/0.001176, allocations: 178.8 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.504/1.504, allocations: 205.4 MB / 221.9 MB, free: 13.84 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.0008989/0.0008989, allocations: 94.88 kB / 270.3 MB, free: 13.36 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.07236/0.07236, allocations: 12.6 MB / 331.1 MB, free: 10.29 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004129/0.0004129, allocations: 13.91 kB / 392 MB, free: 54.85 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09417/0.0946, allocations: 50.37 MB / 442.4 MB, free: 10.94 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1125/0.2072, allocations: 81.96 MB / 0.512 GB, free: 8.867 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002335/0.2075, allocations: 83.95 kB / 0.5121 GB, free: 8.785 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01671/0.2242, allocations: 6.066 MB / 0.518 GB, free: 2.711 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.205e-06/0.2243, allocations: 0 / 0.518 GB, free: 2.711 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.622e-05/0.2243, allocations: 8 kB / 0.518 GB, free: 2.703 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.000902/0.2252, allocations: 0.5427 MB / 0.5186 GB, free: 2.105 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.275e-05/0.2253, allocations: 12.02 kB / 0.5186 GB, free: 2.094 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.079e-05/0.2254, allocations: 27.62 kB / 0.5186 GB, free: 2.066 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004566/0.2258, allocations: 286.5 kB / 0.5189 GB, free: 1.742 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.348e-05/0.2259, allocations: 23.81 kB / 0.5189 GB, free: 1.719 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.136e-05/0.2259, allocations: 4 kB / 0.5189 GB, free: 1.715 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003605/0.2263, allocations: 180.4 kB / 0.5191 GB, free: 1.508 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.155e-05/0.2263, allocations: 3.984 kB / 0.5191 GB, free: 1.504 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.663e-05/0.2263, allocations: 4 kB / 0.5191 GB, free: 1.5 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.274e-06/0.2263, allocations: 4 kB / 0.5191 GB, free: 1.496 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001177/0.2264, allocations: 39.92 kB / 0.5191 GB, free: 1.457 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005835/0.227, allocations: 415.2 kB / 0.5195 GB, free: 0.9922 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000253/0.2273, allocations: 150.5 kB / 0.5197 GB, free: 0.8086 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.15e-05/0.2273, allocations: 0 / 0.5197 GB, free: 0.8086 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001951/0.2275, allocations: 83.44 kB / 0.5198 GB, free: 0.7148 MB / 362.7 MB Notification: Performance of pre-optimization done (n=11): time 1.542e-06/0.2275, allocations: 4 kB / 0.5198 GB, free: 0.7109 MB / 362.7 MB Notification: Performance of matching and sorting (n=11): time 0.0004367/0.228, allocations: 177.2 kB / 0.5199 GB, free: 0.5312 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001125/0.2281, allocations: 187.9 kB / 0.5201 GB, free: 312 kB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2093/0.4374, allocations: 302.7 kB / 0.5204 GB, free: 83.96 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 9.756e-05/0.4376, allocations: 29.02 kB / 0.5204 GB, free: 83.93 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00014/0.4377, allocations: 136.4 kB / 0.5206 GB, free: 83.84 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.93e-05/0.4378, allocations: 14.5 kB / 0.5206 GB, free: 83.84 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.504e-06/0.4378, allocations: 1.75 kB / 0.5206 GB, free: 83.84 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 7.34e-05/0.4379, allocations: 335.4 kB / 0.5209 GB, free: 83.53 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001215/0.438, allocations: 29.77 kB / 0.5209 GB, free: 83.53 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000141/0.4382, allocations: 109.4 kB / 0.521 GB, free: 83.45 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001063/0.4383, allocations: 38 kB / 0.5211 GB, free: 83.45 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.547e-06/0.4383, allocations: 0 / 0.5211 GB, free: 83.45 MB / 362.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003386/0.4386, allocations: 145.7 kB / 0.5212 GB, free: 83.42 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.264e-05/0.4387, allocations: 5.938 kB / 0.5212 GB, free: 83.42 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.776e-06/0.4387, allocations: 1.719 kB / 0.5212 GB, free: 83.42 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.207e-05/0.4387, allocations: 3.469 kB / 0.5212 GB, free: 83.42 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001342/0.4389, allocations: 20.64 kB / 0.5212 GB, free: 83.42 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.067e-05/0.4389, allocations: 6.453 kB / 0.5212 GB, free: 83.42 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001128/0.439, allocations: 17.12 kB / 0.5213 GB, free: 83.42 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.464e-05/0.439, allocations: 3.5 kB / 0.5213 GB, free: 83.42 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.0001631/0.4392, allocations: 161.1 kB / 0.5214 GB, free: 83.3 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001139/0.4393, allocations: 82.2 kB / 0.5215 GB, free: 83.26 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002951/0.4396, allocations: 129.3 kB / 0.5216 GB, free: 83.22 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.198e-06/0.4396, allocations: 1.188 kB / 0.5216 GB, free: 83.22 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.313e-06/0.4396, allocations: 2.312 kB / 0.5216 GB, free: 83.22 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.959e-06/0.4396, allocations: 6 kB / 0.5216 GB, free: 83.22 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002053/0.4399, allocations: 256 kB / 0.5219 GB, free: 83.03 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.4399, allocations: 0.9688 kB / 0.5219 GB, free: 83.03 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.818e-05/0.4399, allocations: 16.97 kB / 0.5219 GB, free: 83.03 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.807e-06/0.44, allocations: 5.094 kB / 0.5219 GB, free: 83.03 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.648e-05/0.44, allocations: 9.109 kB / 0.5219 GB, free: 83.02 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.106e-06/0.44, allocations: 6.156 kB / 0.5219 GB, free: 83.02 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.44, allocations: 1.062 kB / 0.5219 GB, free: 83.02 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002764/0.4403, allocations: 231.5 kB / 0.5221 GB, free: 82.88 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001521/0.4404, allocations: 121.3 kB / 0.5222 GB, free: 82.77 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.35e-05/0.4405, allocations: 6.828 kB / 0.5222 GB, free: 82.77 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.276e-05/0.4406, allocations: 7.406 kB / 0.5223 GB, free: 82.77 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.453e-05/0.4406, allocations: 11.16 kB / 0.5223 GB, free: 82.77 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.224e-05/0.4406, allocations: 2.656 kB / 0.5223 GB, free: 82.77 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002584/0.4409, allocations: 247.7 kB / 0.5225 GB, free: 82.69 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4409, allocations: 0 / 0.5225 GB, free: 82.69 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003311/0.4412, allocations: 54.59 kB / 0.5226 GB, free: 82.69 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.00106/0.4423, allocations: 443.3 kB / 0.523 GB, free: 82.41 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000327/0.4427, allocations: 109 kB / 0.5231 GB, free: 82.4 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.4427, allocations: 1.25 kB / 0.5231 GB, free: 82.4 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 8.876e-05/0.4428, allocations: 32.64 kB / 0.5231 GB, free: 82.4 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004136/0.4432, allocations: 73.39 kB / 0.5232 GB, free: 82.39 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007721/0.444, allocations: 435.1 kB / 0.5236 GB, free: 82.14 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002848/0.4443, allocations: 0.7515 MB / 0.5243 GB, free: 81.45 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001172/0.4444, allocations: 34.78 kB / 0.5244 GB, free: 81.45 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.287e-05/0.4445, allocations: 25.89 kB / 0.5244 GB, free: 81.44 MB / 362.7 MB Notification: Performance of SimCode: time 2.2e-07/0.4445, allocations: 0 / 0.5244 GB, free: 81.44 MB / 362.7 MB Notification: Performance of Templates: time 0.007815/0.4523, allocations: 2.965 MB / 0.5273 GB, free: 81.17 MB / 362.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:Time,backSample1.y,sample.y,shiftSample1.y 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.table[4,1],table.combiTimeTable.table[4,2],table.combiTimeTable.table[5,1],table.combiTimeTable.table[5,2],table.combiTimeTable.timeEvents,table.combiTimeTable.timeScale,table.combiTimeTable.verboseExtrapolation,table.combiTimeTable.verboseRead,table.extrapolation,table.n,table.shiftTime,table.startTime,table.table[1,1],table.table[1,2],table.table[2,1],table.table[2,2],table.table[3,1],table.table[3,2],table.table[4,1],table.table[4,2],table.table[5,1],table.table[5,2],time