Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.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.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample") [: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.0009244/0.0009245, allocations: 185.6 kB / 8.136 MB, free: 2.219 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.244/1.244, 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.001285/0.001285, allocations: 92.42 kB / 280.8 MB, free: 1.262 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 6.973e-06/7.013e-06, allocations: 4 kB / 336.5 MB, free: 9.516 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.207/0.207, allocations: 50.4 MB / 386.9 MB, free: 37.98 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08474/0.2918, allocations: 80.27 MB / 467.2 MB, free: 6.527 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002811/0.2922, allocations: 79.95 kB / 467.3 MB, free: 6.449 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.02354/0.3157, allocations: 5.699 MB / 473 MB, free: 0.7969 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.507e-05/0.3158, allocations: 4 kB / 473 MB, free: 0.793 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0007209/0.3165, allocations: 0.4916 MB / 473.4 MB, free: 256 kB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.853e-05/0.3166, allocations: 8.031 kB / 473.5 MB, free: 248 kB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.371e-05/0.3167, allocations: 23.72 kB / 473.5 MB, free: 224 kB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00059/0.3173, allocations: 290 kB / 473.8 MB, free: 15.89 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.907e-05/0.3173, allocations: 0 / 473.8 MB, free: 15.89 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.877e-05/0.3173, allocations: 4 kB / 473.8 MB, free: 15.89 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001575/0.3175, allocations: 43.92 kB / 473.8 MB, free: 15.85 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003432/0.3179, allocations: 152.9 kB / 474 MB, free: 15.67 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.267e-06/0.3179, allocations: 0 / 474 MB, free: 15.67 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.716e-05/0.3179, allocations: 0 / 474 MB, free: 15.67 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.22e-06/0.3179, allocations: 0 / 474 MB, free: 15.67 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006937/0.3186, allocations: 371 kB / 474.3 MB, free: 15.27 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002276/0.3189, allocations: 107.9 kB / 474.4 MB, free: 15.13 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.946e-05/0.319, allocations: 50.62 kB / 474.5 MB, free: 15.07 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.014e-05/0.319, allocations: 0 / 474.5 MB, free: 15.07 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001499/0.3192, allocations: 71.39 kB / 474.5 MB, free: 14.99 MB / 362.7 MB Notification: Performance of pre-optimization done (n=9): time 1.743e-06/0.3192, allocations: 0 / 474.5 MB, free: 14.99 MB / 362.7 MB Notification: Performance of matching and sorting (n=9): time 0.000329/0.3195, allocations: 110 kB / 474.7 MB, free: 14.88 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001/0.3196, allocations: 158.3 kB / 474.8 MB, free: 14.69 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000482/0.3201, allocations: 293 kB / 475.1 MB, free: 14.39 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.79e-05/0.3202, allocations: 25.7 kB / 475.1 MB, free: 14.36 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.145e-05/0.3203, allocations: 104.1 kB / 475.2 MB, free: 14.25 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.65e-05/0.3203, allocations: 16.45 kB / 475.2 MB, free: 14.24 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.773e-06/0.3203, allocations: 0 / 475.2 MB, free: 14.24 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001516/0.3205, allocations: 330.8 kB / 475.6 MB, free: 13.91 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.346e-05/0.3206, allocations: 23.98 kB / 475.6 MB, free: 13.88 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001496/0.3207, allocations: 94.8 kB / 475.7 MB, free: 13.77 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.327e-05/0.3208, allocations: 24.55 kB / 475.7 MB, free: 13.74 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.3208, allocations: 0 / 475.7 MB, free: 13.74 MB / 362.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002791/0.3211, allocations: 118.1 kB / 475.8 MB, free: 13.62 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.633e-05/0.3211, allocations: 4 kB / 475.8 MB, free: 13.62 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.077e-06/0.3212, allocations: 9.125 kB / 475.8 MB, free: 13.61 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.512e-05/0.3212, allocations: 0 / 475.8 MB, free: 13.61 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001617/0.3214, allocations: 20.03 kB / 475.8 MB, free: 13.59 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.933e-06/0.3214, allocations: 0 / 475.8 MB, free: 13.59 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001338/0.3215, allocations: 11.89 kB / 475.9 MB, free: 13.58 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.923e-05/0.3215, allocations: 12.11 kB / 475.9 MB, free: 13.57 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,sample1.u,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,shiftSample1.y,shiftSample1.u,sample1.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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.0001242/0.3217, allocations: 120.5 kB / 476 MB, free: 13.45 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001256/0.3218, allocations: 62.11 kB / 476 MB, free: 13.38 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003247/0.3222, allocations: 114.3 kB / 476.2 MB, free: 13.26 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.143e-06/0.3222, allocations: 7.938 kB / 476.2 MB, free: 13.25 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.3222, allocations: 0 / 476.2 MB, free: 13.25 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.112e-06/0.3222, allocations: 0 / 476.2 MB, free: 13.25 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002955/0.3225, allocations: 226 kB / 476.4 MB, free: 13 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.785e-06/0.3225, allocations: 4.75 kB / 476.4 MB, free: 12.99 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001165/0.3227, allocations: 15.98 kB / 476.4 MB, free: 12.98 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.268e-06/0.3227, allocations: 0 / 476.4 MB, free: 12.98 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.803e-05/0.3227, allocations: 7.938 kB / 476.4 MB, free: 12.97 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.076e-06/0.3227, allocations: 1.375 kB / 476.4 MB, free: 12.97 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.394e-06/0.3227, allocations: 0 / 476.4 MB, free: 12.97 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003314/0.3231, allocations: 177.8 kB / 476.6 MB, free: 12.76 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001951/0.3233, allocations: 124.8 kB / 476.7 MB, free: 12.62 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.448e-05/0.3233, allocations: 4 kB / 476.7 MB, free: 12.61 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00012/0.3235, allocations: 4 kB / 476.7 MB, free: 12.61 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.916e-05/0.3236, allocations: 11.98 kB / 476.7 MB, free: 12.6 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.659e-05/0.3236, allocations: 4 kB / 476.7 MB, free: 12.59 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0003396/0.3239, allocations: 225.2 kB / 477 MB, free: 12.37 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004749/0.3244, allocations: 51.92 kB / 477 MB, free: 12.32 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,sample1.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,shiftSample1.y,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 (10): * Single equations (assignments): 8 * 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.000932/0.3254, allocations: 341.6 kB / 477.3 MB, free: 12.07 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002557/0.3256, allocations: 75.91 kB / 477.4 MB, free: 12 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.3257, allocations: 0 / 477.4 MB, free: 12 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 8.484e-05/0.3258, allocations: 28.7 kB / 477.4 MB, free: 11.97 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004814/0.3262, allocations: 66.08 kB / 477.5 MB, free: 11.91 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006768/0.3269, allocations: 273.8 kB / 477.8 MB, free: 11.61 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004496/0.3274, allocations: 0.7744 MB / 478.6 MB, free: 10.81 MB / 362.7 MB Notification: Performance of SimCode: time 3.71e-07/0.3274, allocations: 192 / 478.6 MB, free: 10.81 MB / 362.7 MB Notification: Performance of Templates: time 0.008562/0.336, allocations: 2.572 MB / 481.1 MB, free: 8.266 MB / 362.7 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/ShiftSample/ShiftSample.csv","../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,sample1.y,shiftSample1.y Variables in the result: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