Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y|backSample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y|backSample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001433/0.001433, allocations: 172.1 kB / 17.4 MB, free: 4.301 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.536/1.536, allocations: 223.3 MB / 241.4 MB, free: 11.71 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007688/0.0007688, allocations: 101 kB / 292.6 MB, free: 10.78 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003535/0.0003537, allocations: 15.94 kB / 352.3 MB, free: 15.02 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2659/0.2662, allocations: 50.4 MB / 402.7 MB, free: 32.46 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1056/0.3719, allocations: 81.3 MB / 484 MB, free: 15.04 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002894/0.3722, allocations: 92.42 kB / 484.1 MB, free: 14.95 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01742/0.3896, allocations: 6.235 MB / 490.4 MB, free: 8.719 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.234e-06/0.3897, allocations: 0 / 490.4 MB, free: 8.719 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.736e-05/0.3897, allocations: 4 kB / 490.4 MB, free: 8.715 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.0008326/0.3906, allocations: 0.5351 MB / 490.9 MB, free: 8.121 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.532e-05/0.3906, allocations: 12.03 kB / 490.9 MB, free: 8.109 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.007e-05/0.3907, allocations: 32.64 kB / 491 MB, free: 8.078 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000502/0.3912, allocations: 299.5 kB / 491.2 MB, free: 7.746 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.524e-05/0.3913, allocations: 8.375 kB / 491.3 MB, free: 7.738 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.149e-05/0.3913, allocations: 8.359 kB / 491.3 MB, free: 7.73 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003997/0.3917, allocations: 182.9 kB / 491.4 MB, free: 7.523 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.185e-05/0.3917, allocations: 4.172 kB / 491.4 MB, free: 7.52 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.981e-05/0.3917, allocations: 11.94 kB / 491.5 MB, free: 7.508 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.031e-06/0.3918, allocations: 0 / 491.5 MB, free: 7.508 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001364/0.3919, allocations: 39.92 kB / 491.5 MB, free: 7.469 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006285/0.3925, allocations: 419.2 kB / 491.9 MB, free: 7 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002644/0.3928, allocations: 150.5 kB / 492.1 MB, free: 6.816 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001042/0.3929, allocations: 55.42 kB / 492.1 MB, free: 6.75 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.299e-05/0.393, allocations: 7.984 kB / 492.1 MB, free: 6.742 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001693/0.3931, allocations: 87.22 kB / 492.2 MB, free: 6.645 MB / 362.7 MB Notification: Performance of pre-optimization done (n=11): time 2.474e-06/0.3932, allocations: 4 kB / 492.2 MB, free: 6.641 MB / 362.7 MB Notification: Performance of matching and sorting (n=11): time 0.0004327/0.3936, allocations: 173.3 kB / 492.4 MB, free: 6.465 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.928e-05/0.3937, allocations: 187.9 kB / 492.6 MB, free: 6.238 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003641/0.3941, allocations: 331 kB / 492.9 MB, free: 5.902 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.503e-05/0.3941, allocations: 33.7 kB / 492.9 MB, free: 5.863 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.483e-05/0.3942, allocations: 132.4 kB / 493 MB, free: 5.727 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.636e-05/0.3942, allocations: 19.75 kB / 493.1 MB, free: 5.707 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.969e-06/0.3942, allocations: 0 / 493.1 MB, free: 5.707 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000132/0.3944, allocations: 338.8 kB / 493.4 MB, free: 5.367 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.541e-05/0.3945, allocations: 23.98 kB / 493.4 MB, free: 5.344 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001288/0.3946, allocations: 115.4 kB / 493.5 MB, free: 5.203 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001762/0.3948, allocations: 105.9 kB / 493.6 MB, free: 5.078 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-06/0.3948, allocations: 0 / 493.6 MB, free: 5.078 MB / 362.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002574/0.3951, allocations: 141.2 kB / 493.8 MB, free: 4.934 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.842e-05/0.3951, allocations: 7.984 kB / 493.8 MB, free: 4.926 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.847e-06/0.3951, allocations: 4 kB / 493.8 MB, free: 4.922 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.257e-05/0.3951, allocations: 3.938 kB / 493.8 MB, free: 4.918 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00011/0.3952, allocations: 20.19 kB / 493.8 MB, free: 4.898 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.376e-06/0.3953, allocations: 7.984 kB / 493.8 MB, free: 4.891 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.596e-05/0.3954, allocations: 11.94 kB / 493.8 MB, free: 4.879 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.267e-05/0.3954, allocations: 8 kB / 493.8 MB, free: 4.871 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,sample1.u,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,backSample1.y,backSample1.u,shiftSample1.y,shiftSample1.u,sample1.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.0001419/0.3955, allocations: 158.5 kB / 494 MB, free: 4.707 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001022/0.3956, allocations: 77.34 kB / 494.1 MB, free: 4.625 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002689/0.3959, allocations: 135.5 kB / 494.2 MB, free: 4.484 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.528e-06/0.3959, allocations: 0 / 494.2 MB, free: 4.484 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.616e-06/0.3959, allocations: 4 kB / 494.2 MB, free: 4.48 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.333e-06/0.3959, allocations: 0 / 494.2 MB, free: 4.48 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002425/0.3962, allocations: 265.3 kB / 494.5 MB, free: 4.172 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.494e-06/0.3962, allocations: 0 / 494.5 MB, free: 4.172 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.068e-05/0.3963, allocations: 15.98 kB / 494.5 MB, free: 4.156 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.41e-06/0.3963, allocations: 4 kB / 494.5 MB, free: 4.152 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.175e-05/0.3963, allocations: 320 / 494.5 MB, free: 4.152 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.532e-06/0.3963, allocations: 7.984 kB / 494.5 MB, free: 4.145 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/0.3963, allocations: 4 kB / 494.5 MB, free: 4.141 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002865/0.3966, allocations: 195.2 kB / 494.7 MB, free: 3.922 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001301/0.3968, allocations: 128.7 kB / 494.8 MB, free: 3.777 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.507e-05/0.3968, allocations: 4 kB / 494.8 MB, free: 3.773 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.336e-05/0.3969, allocations: 7.984 kB / 494.8 MB, free: 3.766 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.268e-05/0.397, allocations: 8 kB / 494.8 MB, free: 3.758 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.626e-05/0.397, allocations: 15.98 kB / 494.8 MB, free: 3.742 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003139/0.3973, allocations: 237.9 kB / 495.1 MB, free: 3.508 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3973, allocations: 4 kB / 495.1 MB, free: 3.504 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003328/0.3977, allocations: 44 kB / 495.1 MB, free: 3.461 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,sample1.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,backSample1.y,shiftSample1.y,backSample1.u,sample1.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.001085/0.3988, allocations: 461.3 kB / 495.6 MB, free: 3.164 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003221/0.3991, allocations: 99.88 kB / 495.7 MB, free: 3.066 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.469e-06/0.3991, allocations: 4 kB / 495.7 MB, free: 3.062 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 9.678e-05/0.3992, allocations: 27.98 kB / 495.7 MB, free: 3.035 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000542/0.3998, allocations: 80.77 kB / 495.8 MB, free: 2.953 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008494/0.4006, allocations: 434.7 kB / 496.2 MB, free: 2.5 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004177/0.4011, allocations: 0.7479 MB / 497 MB, free: 1.727 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001208/0.4012, allocations: 25.55 kB / 497 MB, free: 1.703 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.264e-05/0.4013, allocations: 31.42 kB / 497 MB, free: 1.676 MB / 362.7 MB Notification: Performance of SimCode: time 7.11e-07/0.4013, allocations: 0 / 497 MB, free: 1.676 MB / 362.7 MB Notification: Performance of Templates: time 0.007399/0.4087, allocations: 2.982 MB / 500 MB, free: 14.73 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/BackSample/BackSample.csv","../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,sample1.y,shiftSample1.y,backSample1.y Variables in the result:backSample1.backCounter,backSample1.resolution,backSample1.y,backSample1.y_start,periodicClock.factor,periodicClock.resolution,periodicClock.resolutionFactor,periodicClock.useSolver,sample1.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