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.0008935/0.0008935, allocations: 175.7 kB / 8.349 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.292/1.292, allocations: 221.5 MB / 230.3 MB, free: 7.574 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008514/0.0008514, allocations: 85.88 kB / 281.2 MB, free: 5.332 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.76e-05/1.762e-05, allocations: 0 / 337 MB, free: 10.04 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09211/0.09215, allocations: 50.42 MB / 387.5 MB, free: 7.582 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3009/0.3931, allocations: 80.49 MB / 468 MB, free: 14.39 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002305/0.3934, allocations: 79.95 kB / 468 MB, free: 14.31 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0156/0.409, allocations: 6.04 MB / 474.1 MB, free: 8.281 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.833e-06/0.4091, allocations: 0 / 474.1 MB, free: 8.281 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.251e-05/0.4091, allocations: 11.98 kB / 474.1 MB, free: 8.27 MB / 346.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.0005773/0.4097, allocations: 484.2 kB / 474.6 MB, free: 7.746 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.172e-05/0.4097, allocations: 8.031 kB / 474.6 MB, free: 7.738 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.377e-05/0.4098, allocations: 27.67 kB / 474.6 MB, free: 7.711 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003414/0.4101, allocations: 257.8 kB / 474.8 MB, free: 7.422 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.691e-05/0.4102, allocations: 0 / 474.8 MB, free: 7.422 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.905e-05/0.4102, allocations: 11.92 kB / 474.9 MB, free: 7.41 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001014/0.4103, allocations: 36 kB / 474.9 MB, free: 7.375 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002563/0.4106, allocations: 171.5 kB / 475.1 MB, free: 7.18 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.077e-06/0.4106, allocations: 0 / 475.1 MB, free: 7.18 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.308e-05/0.4106, allocations: 3.953 kB / 475.1 MB, free: 7.176 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.17e-06/0.4106, allocations: 4 kB / 475.1 MB, free: 7.172 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004073/0.411, allocations: 343.9 kB / 475.4 MB, free: 6.789 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000135/0.4112, allocations: 126.7 kB / 475.5 MB, free: 6.629 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.698e-05/0.4112, allocations: 55.56 kB / 475.6 MB, free: 6.562 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.667e-05/0.4113, allocations: 0 / 475.6 MB, free: 6.562 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.759e-05/0.4114, allocations: 83.28 kB / 475.7 MB, free: 6.469 MB / 346.7 MB Notification: Performance of pre-optimization done (n=11): time 1.262e-06/0.4114, allocations: 4 kB / 475.7 MB, free: 6.465 MB / 346.7 MB Notification: Performance of matching and sorting (n=11): time 0.0002137/0.4116, allocations: 113.4 kB / 475.8 MB, free: 6.348 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.244e-05/0.4117, allocations: 162.2 kB / 475.9 MB, free: 6.152 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002147/0.4119, allocations: 236.4 kB / 476.2 MB, free: 5.914 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.677e-05/0.4119, allocations: 25.7 kB / 476.2 MB, free: 5.883 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.283e-05/0.412, allocations: 116.4 kB / 476.3 MB, free: 5.762 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.185e-05/0.412, allocations: 27.83 kB / 476.3 MB, free: 5.734 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.178e-06/0.412, allocations: 0 / 476.3 MB, free: 5.734 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.488e-05/0.4121, allocations: 326.8 kB / 476.6 MB, free: 5.406 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.658e-05/0.4122, allocations: 20 kB / 476.7 MB, free: 5.387 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.792e-05/0.4122, allocations: 79.66 kB / 476.7 MB, free: 5.281 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.839e-05/0.4123, allocations: 32.02 kB / 476.8 MB, free: 5.25 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.362e-06/0.4123, allocations: 0 / 476.8 MB, free: 5.25 MB / 346.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001608/0.4125, allocations: 113.4 kB / 476.9 MB, free: 5.133 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.002e-05/0.4125, allocations: 8.188 kB / 476.9 MB, free: 5.125 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.556e-06/0.4125, allocations: 4 kB / 476.9 MB, free: 5.121 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.27e-05/0.4125, allocations: 3.953 kB / 476.9 MB, free: 5.117 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.302e-05/0.4126, allocations: 16.11 kB / 476.9 MB, free: 5.102 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.993e-06/0.4126, allocations: 11.88 kB / 476.9 MB, free: 5.09 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.236e-05/0.4127, allocations: 8 kB / 476.9 MB, free: 5.082 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.147e-05/0.4127, allocations: 8 kB / 476.9 MB, free: 5.074 MB / 346.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 () * 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 7.683e-05/0.4128, allocations: 105 kB / 477 MB, free: 4.965 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.056e-05/0.4129, allocations: 77.34 kB / 477.1 MB, free: 4.883 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001707/0.4131, allocations: 107.6 kB / 477.2 MB, free: 4.773 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.057e-06/0.4131, allocations: 7.938 kB / 477.2 MB, free: 4.766 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.92e-06/0.4131, allocations: 3.953 kB / 477.2 MB, free: 4.762 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.09e-06/0.4131, allocations: 0 / 477.2 MB, free: 4.762 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001626/0.4133, allocations: 214.1 kB / 477.4 MB, free: 4.516 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.353e-06/0.4133, allocations: 0 / 477.4 MB, free: 4.516 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.663e-05/0.4133, allocations: 11.98 kB / 477.5 MB, free: 4.504 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.604e-06/0.4133, allocations: 96 / 477.5 MB, free: 4.504 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.09e-05/0.4134, allocations: 8 kB / 477.5 MB, free: 4.496 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.4134, allocations: 0 / 477.5 MB, free: 4.496 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.4134, allocations: 0 / 477.5 MB, free: 4.496 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001995/0.4136, allocations: 204.4 kB / 477.7 MB, free: 4.25 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.62e-05/0.4137, allocations: 128.8 kB / 477.8 MB, free: 4.105 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.888e-05/0.4137, allocations: 0 / 477.8 MB, free: 4.105 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.752e-05/0.4138, allocations: 4 kB / 477.8 MB, free: 4.102 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.065e-05/0.4138, allocations: 7.984 kB / 477.8 MB, free: 4.094 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.598e-06/0.4138, allocations: 4 kB / 477.8 MB, free: 4.09 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001558/0.414, allocations: 188.5 kB / 478 MB, free: 3.902 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.414, allocations: 3.938 kB / 478 MB, free: 3.898 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002444/0.4143, allocations: 39.91 kB / 478 MB, free: 3.859 MB / 346.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) * 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.0007022/0.415, allocations: 366 kB / 478.4 MB, free: 3.578 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001535/0.4151, allocations: 71.92 kB / 478.5 MB, free: 3.508 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.848e-06/0.4152, allocations: 4.375 kB / 478.5 MB, free: 3.504 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 4.277e-05/0.4152, allocations: 20 kB / 478.5 MB, free: 3.484 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003156/0.4155, allocations: 62.27 kB / 478.5 MB, free: 3.426 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003706/0.4159, allocations: 236.2 kB / 478.8 MB, free: 3.16 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002342/0.4161, allocations: 0.7441 MB / 479.5 MB, free: 2.391 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 7.107e-05/0.4162, allocations: 26 kB / 479.5 MB, free: 2.367 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.502e-05/0.4163, allocations: 23.42 kB / 479.6 MB, free: 2.344 MB / 346.7 MB Notification: Performance of SimCode: time 2.3e-07/0.4163, allocations: 0 / 479.6 MB, free: 2.344 MB / 346.7 MB Notification: Performance of Templates: time 0.00474/0.421, allocations: 2.396 MB / 482 MB, free: 15.97 MB / 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