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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009748/0.0009749, allocations: 186 kB / 8.138 MB, free: 2.211 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.153/1.153, allocations: 221.4 MB / 229.9 MB, free: 3.016 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.0009366/0.0009366, allocations: 102 kB / 280.8 MB, free: 1.254 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 8.726e-06/8.746e-06, allocations: 4 kB / 336.5 MB, free: 9.496 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1926/0.1927, allocations: 50.39 MB / 386.9 MB, free: 38.01 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09276/0.2855, allocations: 80.42 MB / 467.3 MB, free: 6.387 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002222/0.2857, allocations: 86.67 kB / 467.4 MB, free: 6.305 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.01658/0.3023, allocations: 5.662 MB / 473.1 MB, free: 0.6875 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.884e-05/0.3024, allocations: 8 kB / 473.1 MB, free: 0.6797 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.0005083/0.3029, allocations: 475.7 kB / 473.6 MB, free: 168 kB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.37e-05/0.3029, allocations: 16.03 kB / 473.6 MB, free: 152 kB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.406e-05/0.303, allocations: 19.72 kB / 473.6 MB, free: 132 kB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004298/0.3035, allocations: 275.5 kB / 473.9 MB, free: 15.82 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.687e-05/0.3035, allocations: 4 kB / 473.9 MB, free: 15.82 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.96e-05/0.3035, allocations: 4 kB / 473.9 MB, free: 15.81 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001098/0.3036, allocations: 43.92 kB / 473.9 MB, free: 15.77 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002637/0.3039, allocations: 159.5 kB / 474.1 MB, free: 15.59 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.536e-06/0.3039, allocations: 0 / 474.1 MB, free: 15.59 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.28e-05/0.3039, allocations: 0 / 474.1 MB, free: 15.59 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.103e-06/0.3039, allocations: 0 / 474.1 MB, free: 15.59 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004384/0.3044, allocations: 347.9 kB / 474.4 MB, free: 15.2 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000157/0.3046, allocations: 122.8 kB / 474.5 MB, free: 15.04 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.254e-05/0.3046, allocations: 59.5 kB / 474.6 MB, free: 14.97 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.321e-05/0.3047, allocations: 3.984 kB / 474.6 MB, free: 14.97 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001/0.3048, allocations: 75.31 kB / 474.7 MB, free: 14.88 MB / 362.7 MB Notification: Performance of pre-optimization done (n=11): time 3.216e-06/0.3048, allocations: 4 kB / 474.7 MB, free: 14.88 MB / 362.7 MB Notification: Performance of matching and sorting (n=11): time 0.0002362/0.305, allocations: 105.4 kB / 474.8 MB, free: 14.77 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.019e-05/0.3051, allocations: 162.2 kB / 474.9 MB, free: 14.57 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002528/0.3054, allocations: 240.2 kB / 475.2 MB, free: 14.33 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.004e-05/0.3054, allocations: 29.7 kB / 475.2 MB, free: 14.3 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.426e-05/0.3055, allocations: 92.41 kB / 475.3 MB, free: 14.2 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.538e-05/0.3055, allocations: 23.84 kB / 475.3 MB, free: 14.18 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.728e-06/0.3055, allocations: 1.125 kB / 475.3 MB, free: 14.18 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001181/0.3056, allocations: 330.8 kB / 475.6 MB, free: 13.84 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.252e-05/0.3057, allocations: 20 kB / 475.6 MB, free: 13.82 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.873e-05/0.3058, allocations: 75.72 kB / 475.7 MB, free: 13.72 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.371e-05/0.3059, allocations: 35.95 kB / 475.8 MB, free: 13.69 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/0.3059, allocations: 0 / 475.8 MB, free: 13.69 MB / 362.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001887/0.3061, allocations: 117.3 kB / 475.9 MB, free: 13.57 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.1e-05/0.3061, allocations: 8.188 kB / 475.9 MB, free: 13.56 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.632e-06/0.3061, allocations: 4 kB / 475.9 MB, free: 13.55 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.085e-05/0.3061, allocations: 0 / 475.9 MB, free: 13.55 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.454e-05/0.3062, allocations: 12 kB / 475.9 MB, free: 13.54 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.741e-06/0.3062, allocations: 5.25 kB / 475.9 MB, free: 13.54 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.471e-05/0.3063, allocations: 11.98 kB / 475.9 MB, free: 13.53 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.366e-05/0.3063, allocations: 8 kB / 475.9 MB, free: 13.52 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 () * 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.931e-05/0.3064, allocations: 112.8 kB / 476 MB, free: 13.4 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.185e-05/0.3065, allocations: 73.44 kB / 476.1 MB, free: 13.32 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001843/0.3067, allocations: 106.1 kB / 476.2 MB, free: 13.21 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.688e-06/0.3067, allocations: 0 / 476.2 MB, free: 13.21 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.919e-06/0.3067, allocations: 7.938 kB / 476.2 MB, free: 13.21 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.19e-06/0.3067, allocations: 3.984 kB / 476.2 MB, free: 13.2 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001714/0.3069, allocations: 202.1 kB / 476.4 MB, free: 12.97 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.876e-06/0.3069, allocations: 4 kB / 476.4 MB, free: 12.96 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.804e-05/0.307, allocations: 7.938 kB / 476.4 MB, free: 12.96 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.289e-06/0.307, allocations: 10.06 kB / 476.4 MB, free: 12.95 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.167e-05/0.307, allocations: 3.906 kB / 476.4 MB, free: 12.95 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.228e-06/0.307, allocations: 7.984 kB / 476.4 MB, free: 12.94 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/0.307, allocations: 0 / 476.4 MB, free: 12.94 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002108/0.3072, allocations: 189.9 kB / 476.6 MB, free: 12.71 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001028/0.3074, allocations: 124.7 kB / 476.7 MB, free: 12.57 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.631e-05/0.3074, allocations: 0 / 476.7 MB, free: 12.57 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.124e-05/0.3075, allocations: 11.92 kB / 476.8 MB, free: 12.55 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.576e-05/0.3075, allocations: 4 kB / 476.8 MB, free: 12.55 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.098e-05/0.3075, allocations: 4 kB / 476.8 MB, free: 12.55 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0001961/0.3077, allocations: 188.5 kB / 477 MB, free: 12.36 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000274/0.308, allocations: 43.98 kB / 477 MB, free: 12.32 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) * 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.0006566/0.3087, allocations: 314.8 kB / 477.3 MB, free: 12.1 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001728/0.3089, allocations: 79.8 kB / 477.4 MB, free: 12.02 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.3089, allocations: 0 / 477.4 MB, free: 12.02 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 5.416e-05/0.309, allocations: 31.89 kB / 477.4 MB, free: 11.99 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003639/0.3093, allocations: 64.89 kB / 477.5 MB, free: 11.93 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005036/0.3098, allocations: 246.2 kB / 477.7 MB, free: 11.66 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002979/0.3102, allocations: 0.763 MB / 478.5 MB, free: 10.87 MB / 362.7 MB Notification: Performance of SimCode: time 2.7e-07/0.3102, allocations: 0 / 478.5 MB, free: 10.87 MB / 362.7 MB Notification: Performance of Templates: time 0.005501/0.3157, allocations: 2.425 MB / 480.9 MB, free: 8.477 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