Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.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.Hold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y|hold1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y|hold1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold") [: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.001385/0.001385, allocations: 183.9 kB / 8.135 MB, free: 2.199 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.194/1.194, allocations: 221.4 MB / 229.9 MB, free: 3.02 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.0008938/0.0008937, allocations: 94.33 kB / 280.8 MB, free: 1.254 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 5.941e-06/6.051e-06, allocations: 0 / 336.5 MB, free: 9.504 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2128/0.2128, allocations: 50.4 MB / 386.9 MB, free: 37.98 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1071/0.3199, allocations: 80.5 MB / 467.4 MB, free: 6.289 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003695/0.3204, allocations: 87.89 kB / 467.5 MB, free: 6.203 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.02262/0.343, allocations: 5.818 MB / 473.3 MB, free: 440 kB / 346.7 MB Notification: Performance of Transformations before backend: time 2.756e-05/0.3431, allocations: 8 kB / 473.3 MB, free: 432 kB / 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.0008959/0.344, allocations: 492.3 kB / 473.8 MB, free: 15.89 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 8.71e-05/0.3441, allocations: 11.97 kB / 473.8 MB, free: 15.88 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.605e-05/0.3442, allocations: 23.72 kB / 473.8 MB, free: 15.86 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006326/0.3448, allocations: 286.1 kB / 474.1 MB, free: 15.54 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.894e-05/0.3449, allocations: 4 kB / 474.1 MB, free: 15.53 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.948e-05/0.3449, allocations: 11.91 kB / 474.1 MB, free: 15.52 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001741/0.3451, allocations: 39.98 kB / 474.2 MB, free: 15.48 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003933/0.3455, allocations: 164.3 kB / 474.3 MB, free: 15.29 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.216e-05/0.3455, allocations: 0 / 474.3 MB, free: 15.29 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.85e-05/0.3456, allocations: 1.969 kB / 474.3 MB, free: 15.29 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.498e-06/0.3456, allocations: 4 kB / 474.3 MB, free: 15.29 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007881/0.3464, allocations: 467 kB / 474.8 MB, free: 14.78 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000246/0.3466, allocations: 126.7 kB / 474.9 MB, free: 14.62 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001195/0.3468, allocations: 59.55 kB / 475 MB, free: 14.55 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.875e-05/0.3468, allocations: 0 / 475 MB, free: 14.55 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001641/0.347, allocations: 96.95 kB / 475.1 MB, free: 14.44 MB / 362.7 MB Notification: Performance of pre-optimization done (n=11): time 1.783e-06/0.347, allocations: 0 / 475.1 MB, free: 14.44 MB / 362.7 MB Notification: Performance of matching and sorting (n=11): time 0.0003656/0.3474, allocations: 125.3 kB / 475.2 MB, free: 14.31 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001174/0.3475, allocations: 183.9 kB / 475.4 MB, free: 14.09 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004644/0.348, allocations: 285.1 kB / 475.7 MB, free: 13.8 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.15e-05/0.348, allocations: 29.7 kB / 475.7 MB, free: 13.76 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.246e-05/0.3481, allocations: 104.3 kB / 475.8 MB, free: 13.65 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.486e-05/0.3482, allocations: 23.73 kB / 475.8 MB, free: 13.63 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.604e-06/0.3482, allocations: 0 / 475.8 MB, free: 13.63 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001546/0.3483, allocations: 330.9 kB / 476.1 MB, free: 13.3 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.883e-05/0.3484, allocations: 23.98 kB / 476.2 MB, free: 13.27 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001421/0.3486, allocations: 103.6 kB / 476.3 MB, free: 13.14 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.644e-05/0.3487, allocations: 27.98 kB / 476.3 MB, free: 13.12 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.499e-06/0.3487, allocations: 4 kB / 476.3 MB, free: 13.11 MB / 362.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.000308/0.349, allocations: 130 kB / 476.4 MB, free: 12.98 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.305e-05/0.349, allocations: 4 kB / 476.4 MB, free: 12.98 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.314e-06/0.349, allocations: 0 / 476.4 MB, free: 12.98 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.638e-05/0.3491, allocations: 4 kB / 476.4 MB, free: 12.97 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001775/0.3493, allocations: 24.14 kB / 476.5 MB, free: 12.95 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.047e-05/0.3493, allocations: 7.938 kB / 476.5 MB, free: 12.94 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001359/0.3494, allocations: 7.906 kB / 476.5 MB, free: 12.93 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.562e-05/0.3494, allocations: 4 kB / 476.5 MB, free: 12.93 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,sample1.u,shiftSample1.y,hold1.u,hold1.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 0.0001169/0.3496, allocations: 118.1 kB / 476.6 MB, free: 12.81 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001593/0.3497, allocations: 73.34 kB / 476.7 MB, free: 12.73 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002926/0.35, allocations: 110.4 kB / 476.8 MB, free: 12.62 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.23e-06/0.3501, allocations: 0 / 476.8 MB, free: 12.62 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.618e-06/0.3501, allocations: 4 kB / 476.8 MB, free: 12.61 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.794e-06/0.3501, allocations: 3.984 kB / 476.8 MB, free: 12.61 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002916/0.3504, allocations: 226.1 kB / 477 MB, free: 12.35 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.801e-06/0.3504, allocations: 7.984 kB / 477 MB, free: 12.34 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001194/0.3505, allocations: 15.98 kB / 477 MB, free: 12.33 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.138e-06/0.3506, allocations: 3.938 kB / 477 MB, free: 12.32 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.688e-05/0.3506, allocations: 4 kB / 477 MB, free: 12.32 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.445e-06/0.3506, allocations: 3.938 kB / 477 MB, free: 12.32 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.154e-06/0.3506, allocations: 4 kB / 477 MB, free: 12.31 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003235/0.3509, allocations: 204.4 kB / 477.2 MB, free: 12.07 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001679/0.3511, allocations: 124.8 kB / 477.4 MB, free: 11.93 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.572e-05/0.3512, allocations: 8 kB / 477.4 MB, free: 11.92 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001215/0.3513, allocations: 7.984 kB / 477.4 MB, free: 11.91 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.843e-05/0.3514, allocations: 11.89 kB / 477.4 MB, free: 11.9 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.518e-05/0.3514, allocations: 4 kB / 477.4 MB, free: 11.89 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0003278/0.3518, allocations: 233.2 kB / 477.6 MB, free: 11.66 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004933/0.3523, allocations: 55.92 kB / 477.7 MB, free: 11.61 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,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,sample1.u,hold1.y,hold1.u,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 (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.0009905/0.3533, allocations: 332.4 kB / 478 MB, free: 11.37 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002966/0.3536, allocations: 83.91 kB / 478.1 MB, free: 11.29 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.3536, allocations: 0 / 478.1 MB, free: 11.29 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001127/0.3537, allocations: 39.92 kB / 478.1 MB, free: 11.25 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005167/0.3542, allocations: 64.33 kB / 478.2 MB, free: 11.19 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008027/0.3551, allocations: 290.6 kB / 478.5 MB, free: 10.87 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004777/0.3555, allocations: 0.7744 MB / 479.2 MB, free: 10.07 MB / 362.7 MB Notification: Performance of SimCode: time 4.31e-07/0.3556, allocations: 0 / 479.2 MB, free: 10.07 MB / 362.7 MB Notification: Performance of Templates: time 0.008504/0.3641, allocations: 2.662 MB / 481.9 MB, free: 7.438 MB / 362.7 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/Hold/Hold.csv","../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,sample1.y,shiftSample1.y,hold1.y Variables in the result:hold1.y,hold1.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