Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.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.BooleanSignals.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.BooleanSignals.BackSample") translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.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.BooleanSignals.BackSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00116/0.00116, allocations: 180.4 kB / 16.38 MB, free: 5.766 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.329/1.329, allocations: 223.2 MB / 240.3 MB, free: 11.87 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.0009189/0.0009189, allocations: 94.08 kB / 291.5 MB, free: 10.92 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000263/0.000263, allocations: 11.94 kB / 351.1 MB, free: 15.32 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2583/0.2586, allocations: 50.4 MB / 401.5 MB, free: 32.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1088/0.3674, allocations: 81.22 MB / 482.7 MB, free: 15.27 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002597/0.3677, allocations: 85.61 kB / 482.8 MB, free: 15.19 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01635/0.3841, allocations: 6.094 MB / 488.9 MB, free: 9.105 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.665e-06/0.3841, allocations: 0 / 488.9 MB, free: 9.105 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.195e-05/0.3842, allocations: 8 kB / 488.9 MB, free: 9.098 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.0007439/0.3849, allocations: 0.5117 MB / 489.4 MB, free: 8.531 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.183e-05/0.385, allocations: 8.031 kB / 489.4 MB, free: 8.523 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.923e-05/0.3851, allocations: 27.67 kB / 489.5 MB, free: 8.496 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004297/0.3855, allocations: 265.8 kB / 489.7 MB, free: 8.195 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.637e-05/0.3855, allocations: 3.938 kB / 489.7 MB, free: 8.191 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.121e-05/0.3856, allocations: 12 kB / 489.7 MB, free: 8.18 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003318/0.3859, allocations: 167.5 kB / 489.9 MB, free: 7.988 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.658e-06/0.3859, allocations: 0 / 489.9 MB, free: 7.988 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.581e-05/0.3859, allocations: 4 kB / 489.9 MB, free: 7.984 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.332e-06/0.386, allocations: 7.953 kB / 489.9 MB, free: 7.977 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001162/0.3861, allocations: 43.91 kB / 489.9 MB, free: 7.934 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005073/0.3866, allocations: 379.2 kB / 490.3 MB, free: 7.504 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000233/0.3868, allocations: 150.7 kB / 490.5 MB, free: 7.32 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.3e-05/0.3869, allocations: 0 / 490.5 MB, free: 7.32 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001392/0.387, allocations: 75.47 kB / 490.5 MB, free: 7.234 MB / 362.7 MB Notification: Performance of pre-optimization done (n=11): time 1.503e-06/0.387, allocations: 0 / 490.5 MB, free: 7.234 MB / 362.7 MB Notification: Performance of matching and sorting (n=11): time 0.0003552/0.3874, allocations: 161.3 kB / 490.7 MB, free: 7.07 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001017/0.3875, allocations: 162.2 kB / 490.9 MB, free: 6.875 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002806/0.3878, allocations: 252 kB / 491.1 MB, free: 6.621 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.205e-05/0.3878, allocations: 26.08 kB / 491.1 MB, free: 6.59 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.024e-05/0.3879, allocations: 128.3 kB / 491.2 MB, free: 6.457 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.526e-05/0.388, allocations: 15.81 kB / 491.3 MB, free: 6.441 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.143e-06/0.388, allocations: 4 kB / 491.3 MB, free: 6.438 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001295/0.3881, allocations: 330.8 kB / 491.6 MB, free: 6.105 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.232e-05/0.3882, allocations: 19.98 kB / 491.6 MB, free: 6.086 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000105/0.3883, allocations: 83.72 kB / 491.7 MB, free: 5.977 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.591e-05/0.3884, allocations: 36.17 kB / 491.7 MB, free: 5.941 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.3884, allocations: 0 / 491.7 MB, free: 5.941 MB / 362.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002259/0.3886, allocations: 137.4 kB / 491.9 MB, free: 5.801 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.815e-05/0.3886, allocations: 4 kB / 491.9 MB, free: 5.797 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.122e-05/0.3886, allocations: 11.94 kB / 491.9 MB, free: 5.785 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.428e-05/0.3887, allocations: 0 / 491.9 MB, free: 5.785 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.018e-05/0.3888, allocations: 15.98 kB / 491.9 MB, free: 5.77 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.045e-06/0.3888, allocations: 7.938 kB / 491.9 MB, free: 5.762 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.654e-05/0.3889, allocations: 15.84 kB / 491.9 MB, free: 5.746 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.112e-05/0.3889, allocations: 4 kB / 491.9 MB, free: 5.742 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.0001324/0.389, allocations: 146 kB / 492.1 MB, free: 5.59 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.412e-05/0.3891, allocations: 73.44 kB / 492.1 MB, free: 5.512 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002554/0.3894, allocations: 115.4 kB / 492.2 MB, free: 5.391 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5e-06/0.3894, allocations: 7.953 kB / 492.3 MB, free: 5.383 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/0.3894, allocations: 0 / 492.3 MB, free: 5.383 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.853e-06/0.3894, allocations: 4 kB / 492.3 MB, free: 5.379 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002013/0.3896, allocations: 233.6 kB / 492.5 MB, free: 5.102 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.3896, allocations: 4.094 kB / 492.5 MB, free: 5.098 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.387e-05/0.3897, allocations: 8 kB / 492.5 MB, free: 5.09 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.092e-06/0.3897, allocations: 3.984 kB / 492.5 MB, free: 5.086 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.731e-05/0.3897, allocations: 11.94 kB / 492.5 MB, free: 5.074 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.3897, allocations: 0 / 492.5 MB, free: 5.074 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.519e-06/0.3897, allocations: 3.953 kB / 492.5 MB, free: 5.07 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002775/0.39, allocations: 220.4 kB / 492.7 MB, free: 4.809 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001091/0.3901, allocations: 116.8 kB / 492.8 MB, free: 4.676 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.789e-05/0.3902, allocations: 0 / 492.8 MB, free: 4.676 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.958e-05/0.3902, allocations: 8 kB / 492.9 MB, free: 4.668 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.367e-05/0.3903, allocations: 7.984 kB / 492.9 MB, free: 4.66 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.751e-05/0.3903, allocations: 8 kB / 492.9 MB, free: 4.652 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001957/0.3905, allocations: 200.5 kB / 493.1 MB, free: 4.453 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3905, allocations: 0 / 493.1 MB, free: 4.453 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002659/0.3908, allocations: 39.92 kB / 493.1 MB, free: 4.414 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.000936/0.3917, allocations: 446 kB / 493.5 MB, free: 4.137 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002367/0.392, allocations: 84.09 kB / 493.6 MB, free: 4.055 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.392, allocations: 0 / 493.6 MB, free: 4.055 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 7.511e-05/0.3921, allocations: 31.92 kB / 493.7 MB, free: 4.023 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003675/0.3925, allocations: 71.25 kB / 493.7 MB, free: 3.957 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005495/0.393, allocations: 381.1 kB / 494.1 MB, free: 3.547 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003469/0.3934, allocations: 0.7401 MB / 494.8 MB, free: 2.781 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 7.374e-05/0.3935, allocations: 25.81 kB / 494.9 MB, free: 2.758 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.596e-05/0.3935, allocations: 19.44 kB / 494.9 MB, free: 2.738 MB / 362.7 MB Notification: Performance of SimCode: time 2.6e-07/0.3935, allocations: 4 kB / 494.9 MB, free: 2.734 MB / 362.7 MB Notification: Performance of Templates: time 0.005426/0.399, allocations: 2.518 MB / 497.4 MB, free: 260 kB / 362.7 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/BackSample/BackSample.csv","../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.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.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