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.001264/0.001263, allocations: 182.2 kB / 16.39 MB, free: 5.762 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.398/1.398, allocations: 223.2 MB / 240.3 MB, free: 10.14 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.001004/0.001004, allocations: 97 kB / 291.5 MB, free: 10.7 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002835/0.0002836, allocations: 15.92 kB / 351.1 MB, free: 15.11 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2882/0.2885, allocations: 50.41 MB / 401.5 MB, free: 32.58 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1144/0.4029, allocations: 81.25 MB / 482.7 MB, free: 15.21 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003297/0.4033, allocations: 81.33 kB / 482.8 MB, free: 15.14 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01893/0.4223, allocations: 6.242 MB / 489.1 MB, free: 8.898 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.895e-06/0.4224, allocations: 0 / 489.1 MB, free: 8.898 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.448e-05/0.4224, allocations: 4 kB / 489.1 MB, free: 8.895 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.0008906/0.4233, allocations: 0.5349 MB / 489.6 MB, free: 8.305 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.125e-05/0.4234, allocations: 12.03 kB / 489.6 MB, free: 8.293 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.327e-05/0.4235, allocations: 19.72 kB / 489.6 MB, free: 8.273 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005075/0.424, allocations: 306.4 kB / 489.9 MB, free: 7.934 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.437e-05/0.424, allocations: 4 kB / 489.9 MB, free: 7.93 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.547e-05/0.424, allocations: 8 kB / 489.9 MB, free: 7.922 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004243/0.4245, allocations: 180.1 kB / 490.1 MB, free: 7.719 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.155e-05/0.4245, allocations: 4 kB / 490.1 MB, free: 7.715 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.946e-05/0.4245, allocations: 0 / 490.1 MB, free: 7.715 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.288e-05/0.4246, allocations: 7.953 kB / 490.1 MB, free: 7.707 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000131/0.4247, allocations: 43.91 kB / 490.2 MB, free: 7.664 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007257/0.4254, allocations: 415.1 kB / 490.6 MB, free: 7.199 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003039/0.4257, allocations: 150.5 kB / 490.7 MB, free: 7.016 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.23e-05/0.4258, allocations: 4 kB / 490.7 MB, free: 7.012 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001965/0.426, allocations: 87.39 kB / 490.8 MB, free: 6.914 MB / 362.7 MB Notification: Performance of pre-optimization done (n=11): time 1.763e-06/0.426, allocations: 0 / 490.8 MB, free: 6.914 MB / 362.7 MB Notification: Performance of matching and sorting (n=11): time 0.0004531/0.4265, allocations: 173.4 kB / 491 MB, free: 6.738 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001297/0.4266, allocations: 192.3 kB / 491.2 MB, free: 6.508 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000363/0.427, allocations: 301.8 kB / 491.5 MB, free: 6.203 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.522e-05/0.427, allocations: 25.7 kB / 491.5 MB, free: 6.172 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001004/0.4271, allocations: 136.3 kB / 491.6 MB, free: 6.031 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.177e-05/0.4272, allocations: 23.81 kB / 491.7 MB, free: 6.008 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.14e-06/0.4272, allocations: 0 / 491.7 MB, free: 6.008 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001486/0.4273, allocations: 334.8 kB / 492 MB, free: 5.672 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.908e-05/0.4274, allocations: 31.98 kB / 492 MB, free: 5.641 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000141/0.4276, allocations: 104.5 kB / 492.1 MB, free: 5.508 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.396e-05/0.4277, allocations: 44.06 kB / 492.2 MB, free: 5.465 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.4277, allocations: 0 / 492.2 MB, free: 5.465 MB / 362.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002553/0.4279, allocations: 141.3 kB / 492.3 MB, free: 5.32 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.311e-05/0.428, allocations: 11.89 kB / 492.3 MB, free: 5.309 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.696e-06/0.428, allocations: 4 kB / 492.3 MB, free: 5.305 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.499e-05/0.428, allocations: 192 / 492.3 MB, free: 5.305 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001192/0.4281, allocations: 27.98 kB / 492.3 MB, free: 5.277 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.065e-05/0.4281, allocations: 7.922 kB / 492.3 MB, free: 5.27 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.831e-05/0.4282, allocations: 15.84 kB / 492.4 MB, free: 5.254 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.639e-05/0.4283, allocations: 11.98 kB / 492.4 MB, free: 5.242 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.0001496/0.4284, allocations: 145.8 kB / 492.5 MB, free: 5.09 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001215/0.4285, allocations: 81.34 kB / 492.6 MB, free: 5.004 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003/0.4289, allocations: 135.3 kB / 492.7 MB, free: 4.863 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.228e-06/0.4289, allocations: 0 / 492.7 MB, free: 4.863 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.977e-06/0.4289, allocations: 4 kB / 492.7 MB, free: 4.859 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.338e-06/0.4289, allocations: 0 / 492.7 MB, free: 4.859 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002452/0.4292, allocations: 249.5 kB / 493 MB, free: 4.566 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.4292, allocations: 0 / 493 MB, free: 4.566 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.046e-05/0.4292, allocations: 19.98 kB / 493 MB, free: 4.547 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.525e-06/0.4293, allocations: 0 / 493 MB, free: 4.547 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.734e-05/0.4293, allocations: 8 kB / 493 MB, free: 4.539 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.847e-06/0.4293, allocations: 3.953 kB / 493 MB, free: 4.535 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.4293, allocations: 4 kB / 493 MB, free: 4.531 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003393/0.4296, allocations: 239.1 kB / 493.2 MB, free: 4.254 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001595/0.4298, allocations: 124.7 kB / 493.4 MB, free: 4.113 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.646e-05/0.4299, allocations: 8 kB / 493.4 MB, free: 4.105 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.207e-05/0.4299, allocations: 4.062 kB / 493.4 MB, free: 4.102 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.568e-05/0.43, allocations: 15.98 kB / 493.4 MB, free: 4.086 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.543e-05/0.43, allocations: 4 kB / 493.4 MB, free: 4.082 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002587/0.4303, allocations: 245.9 kB / 493.6 MB, free: 3.84 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.4303, allocations: 0 / 493.6 MB, free: 3.84 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003223/0.4306, allocations: 47.98 kB / 493.7 MB, free: 3.793 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.001051/0.4317, allocations: 447.9 kB / 494.1 MB, free: 3.508 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003079/0.432, allocations: 95.88 kB / 494.2 MB, free: 3.414 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.39e-06/0.432, allocations: 4 kB / 494.2 MB, free: 3.41 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 9.526e-05/0.4321, allocations: 35.92 kB / 494.3 MB, free: 3.375 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004414/0.4326, allocations: 76.53 kB / 494.3 MB, free: 3.301 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007538/0.4333, allocations: 438 kB / 494.8 MB, free: 2.84 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004247/0.4338, allocations: 0.7557 MB / 495.5 MB, free: 2.059 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 9.87e-05/0.4339, allocations: 33.69 kB / 495.5 MB, free: 2.027 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.478e-05/0.434, allocations: 27.42 kB / 495.6 MB, free: 2.004 MB / 362.7 MB Notification: Performance of SimCode: time 4.81e-07/0.434, allocations: 0 / 495.6 MB, free: 2.004 MB / 362.7 MB Notification: Performance of Templates: time 0.006914/0.4409, allocations: 2.94 MB / 498.5 MB, free: 15.1 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/jenkins/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