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.001558/0.001558, allocations: 181.6 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.789/1.789, allocations: 205.2 MB / 219 MB, free: 9.199 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.0008907/0.0008909, allocations: 83.12 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.07446/0.07446, allocations: 12.59 MB / 327.8 MB, free: 12.49 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.44e-05/3.452e-05, allocations: 4 kB / 386 MB, free: 69.61 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07797/0.07803, allocations: 50.38 MB / 436.4 MB, free: 19.23 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3064/0.3845, allocations: 81.87 MB / 0.5061 GB, free: 11.91 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001711/0.3847, allocations: 82.17 kB / 0.5062 GB, free: 11.89 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01442/0.3991, allocations: 6.052 MB / 0.5121 GB, free: 9.625 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.102e-06/0.3991, allocations: 0 / 0.5121 GB, free: 9.625 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.826e-05/0.3992, allocations: 7.844 kB / 0.5121 GB, free: 9.621 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.0004721/0.3997, allocations: 0.4957 MB / 0.5126 GB, free: 9.141 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.499e-05/0.3997, allocations: 15.38 kB / 0.5126 GB, free: 9.137 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.339e-05/0.3998, allocations: 23.31 kB / 0.5126 GB, free: 9.125 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003342/0.4001, allocations: 290 kB / 0.5129 GB, free: 8.879 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.755e-05/0.4001, allocations: 11.23 kB / 0.5129 GB, free: 8.875 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.81e-05/0.4001, allocations: 7.859 kB / 0.5129 GB, free: 8.871 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002743/0.4004, allocations: 188.7 kB / 0.5131 GB, free: 8.746 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.895e-06/0.4004, allocations: 3.938 kB / 0.5131 GB, free: 8.742 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.359e-05/0.4005, allocations: 0 / 0.5131 GB, free: 8.742 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.258e-06/0.4005, allocations: 0 / 0.5131 GB, free: 8.742 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.462e-05/0.4006, allocations: 44.48 kB / 0.5131 GB, free: 8.734 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004033/0.401, allocations: 410.2 kB / 0.5135 GB, free: 8.391 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001394/0.4011, allocations: 143.3 kB / 0.5137 GB, free: 8.277 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.902e-05/0.4012, allocations: 60.67 kB / 0.5137 GB, free: 8.242 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.841e-05/0.4012, allocations: 0 / 0.5137 GB, free: 8.242 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001129/0.4013, allocations: 80.55 kB / 0.5138 GB, free: 8.18 MB / 330.7 MB Notification: Performance of pre-optimization done (n=11): time 1.373e-06/0.4013, allocations: 0 / 0.5138 GB, free: 8.18 MB / 330.7 MB Notification: Performance of matching and sorting (n=11): time 0.0002309/0.4016, allocations: 135.1 kB / 0.5139 GB, free: 8.121 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.628e-05/0.4016, allocations: 187.6 kB / 0.5141 GB, free: 7.898 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002454/0.4019, allocations: 301.4 kB / 0.5144 GB, free: 7.773 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.79e-05/0.4019, allocations: 33.02 kB / 0.5144 GB, free: 7.742 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.499e-05/0.402, allocations: 135.1 kB / 0.5145 GB, free: 7.641 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.17e-05/0.402, allocations: 18.55 kB / 0.5146 GB, free: 7.633 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.032e-06/0.402, allocations: 3.844 kB / 0.5146 GB, free: 7.633 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.481e-05/0.4021, allocations: 336.2 kB / 0.5149 GB, free: 7.309 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.172e-05/0.4021, allocations: 24.69 kB / 0.5149 GB, free: 7.309 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.474e-05/0.4022, allocations: 103.9 kB / 0.515 GB, free: 7.219 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.409e-05/0.4023, allocations: 36.83 kB / 0.515 GB, free: 7.211 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.933e-06/0.4023, allocations: 0 / 0.515 GB, free: 7.211 MB / 330.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001608/0.4024, allocations: 137.2 kB / 0.5152 GB, free: 7.148 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.172e-05/0.4025, allocations: 3.844 kB / 0.5152 GB, free: 7.148 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.09e-06/0.4025, allocations: 3.812 kB / 0.5152 GB, free: 7.148 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.356e-05/0.4025, allocations: 7.672 kB / 0.5152 GB, free: 7.145 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001076/0.4026, allocations: 22.88 kB / 0.5152 GB, free: 7.141 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.775e-06/0.4026, allocations: 3.844 kB / 0.5152 GB, free: 7.141 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.878e-05/0.4027, allocations: 11.89 kB / 0.5152 GB, free: 7.133 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.01e-05/0.4027, allocations: 7.844 kB / 0.5152 GB, free: 7.129 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 5.651e-05/0.4028, allocations: 127.2 kB / 0.5154 GB, free: 7.012 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.731e-05/0.4029, allocations: 80 kB / 0.5154 GB, free: 6.957 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000176/0.403, allocations: 122.3 kB / 0.5156 GB, free: 6.914 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.015e-06/0.4031, allocations: 3.984 kB / 0.5156 GB, free: 6.91 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.309e-06/0.4031, allocations: 3.812 kB / 0.5156 GB, free: 6.91 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.438e-06/0.4031, allocations: 0 / 0.5156 GB, free: 6.91 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001456/0.4032, allocations: 261.4 kB / 0.5158 GB, free: 6.676 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.4032, allocations: 4.094 kB / 0.5158 GB, free: 6.672 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.168e-05/0.4033, allocations: 19.03 kB / 0.5158 GB, free: 6.672 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.497e-06/0.4033, allocations: 0 / 0.5158 GB, free: 6.672 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.21e-05/0.4033, allocations: 11.77 kB / 0.5158 GB, free: 6.664 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.853e-06/0.4033, allocations: 3.938 kB / 0.5158 GB, free: 6.66 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/0.4033, allocations: 3.844 kB / 0.5159 GB, free: 6.66 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001885/0.4035, allocations: 218.8 kB / 0.5161 GB, free: 6.496 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001082/0.4037, allocations: 123 kB / 0.5162 GB, free: 6.383 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.019e-05/0.4037, allocations: 7.812 kB / 0.5162 GB, free: 6.379 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.241e-05/0.4038, allocations: 11.44 kB / 0.5162 GB, free: 6.375 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.21e-05/0.4038, allocations: 11.78 kB / 0.5162 GB, free: 6.367 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.05e-05/0.4038, allocations: 11.83 kB / 0.5162 GB, free: 6.359 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001716/0.404, allocations: 248.6 kB / 0.5165 GB, free: 6.258 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.404, allocations: 0 / 0.5165 GB, free: 6.258 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002528/0.4043, allocations: 52.89 kB / 0.5165 GB, free: 6.246 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.0007156/0.405, allocations: 383.2 kB / 0.5169 GB, free: 5.941 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001789/0.4052, allocations: 100.9 kB / 0.517 GB, free: 5.922 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.105e-06/0.4052, allocations: 4.375 kB / 0.517 GB, free: 5.918 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 5.263e-05/0.4053, allocations: 36.42 kB / 0.517 GB, free: 5.91 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003172/0.4056, allocations: 72.55 kB / 0.5171 GB, free: 5.887 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000402/0.406, allocations: 301.3 kB / 0.5174 GB, free: 5.723 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001567/0.4062, allocations: 0.7557 MB / 0.5181 GB, free: 4.992 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 8.133e-05/0.4063, allocations: 28.7 kB / 0.5181 GB, free: 4.984 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.724e-05/0.4063, allocations: 26.23 kB / 0.5182 GB, free: 4.973 MB / 330.7 MB Notification: Performance of SimCode: time 9.32e-07/0.4063, allocations: 0 / 0.5182 GB, free: 4.973 MB / 330.7 MB Notification: Performance of Templates: time 0.005284/0.4116, allocations: 2.966 MB / 0.521 GB, free: 2.938 MB / 330.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