Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.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.BooleanSignals.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.BooleanSignals.Hold") translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.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.BooleanSignals.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.001684/0.001684, allocations: 175 kB / 8.132 MB, free: 0.8789 MB / 6.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.199/1.199, allocations: 221.4 MB / 229.9 MB, free: 13.51 MB / 194.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008804/0.0008804, allocations: 101.2 kB / 280.8 MB, free: 10.52 MB / 226.8 MB Notification: Performance of FrontEnd - loaded program: time 6.492e-06/6.512e-06, allocations: 0 / 336.5 MB, free: 2.801 MB / 274.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08607/0.08609, allocations: 50.4 MB / 386.9 MB, free: 364 kB / 322.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2254/0.3116, allocations: 80.41 MB / 467.3 MB, free: 1.328 MB / 338.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002256/0.3119, allocations: 83.95 kB / 467.4 MB, free: 1.246 MB / 338.8 MB Notification: Performance of FrontEnd: time 0.01695/0.3288, allocations: 5.618 MB / 473 MB, free: 11.74 MB / 354.8 MB Notification: Performance of Transformations before backend: time 2.143e-05/0.3289, allocations: 11.92 kB / 473 MB, free: 11.73 MB / 354.8 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.0005366/0.3294, allocations: 470.6 kB / 473.5 MB, free: 11.22 MB / 354.8 MB Notification: Performance of prepare preOptimizeDAE: time 3.657e-05/0.3295, allocations: 8.031 kB / 473.5 MB, free: 11.21 MB / 354.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.568e-05/0.3295, allocations: 23.72 kB / 473.5 MB, free: 11.19 MB / 354.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004174/0.33, allocations: 258.7 kB / 473.8 MB, free: 10.9 MB / 354.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.715e-05/0.33, allocations: 8.828 kB / 473.8 MB, free: 10.89 MB / 354.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.687e-05/0.33, allocations: 4.812 kB / 473.8 MB, free: 10.89 MB / 354.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001165/0.3301, allocations: 43.91 kB / 473.8 MB, free: 10.85 MB / 354.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002625/0.3304, allocations: 153.4 kB / 474 MB, free: 10.68 MB / 354.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.217e-06/0.3304, allocations: 5.688 kB / 474 MB, free: 10.67 MB / 354.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.663e-05/0.3305, allocations: 2.094 kB / 474 MB, free: 10.67 MB / 354.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.021e-06/0.3305, allocations: 7.938 kB / 474 MB, free: 10.66 MB / 354.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004957/0.331, allocations: 422 kB / 474.4 MB, free: 10.21 MB / 354.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001592/0.3311, allocations: 123.5 kB / 474.5 MB, free: 10.05 MB / 354.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.094e-05/0.3312, allocations: 51.55 kB / 474.6 MB, free: 9.992 MB / 354.8 MB Notification: Performance of preOpt evalFunc (simulation): time 2.668e-05/0.3313, allocations: 8.453 kB / 474.6 MB, free: 9.984 MB / 354.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001108/0.3314, allocations: 89.05 kB / 474.7 MB, free: 9.883 MB / 354.8 MB Notification: Performance of pre-optimization done (n=11): time 1.503e-06/0.3314, allocations: 0 / 474.7 MB, free: 9.883 MB / 354.8 MB Notification: Performance of matching and sorting (n=11): time 0.0002424/0.3316, allocations: 109.3 kB / 474.8 MB, free: 9.77 MB / 354.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.67e-05/0.3317, allocations: 166.9 kB / 475 MB, free: 9.57 MB / 354.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002421/0.332, allocations: 229 kB / 475.2 MB, free: 9.344 MB / 354.8 MB Notification: Performance of collectPreVariables (initialization): time 1.733e-05/0.332, allocations: 25.7 kB / 475.2 MB, free: 9.312 MB / 354.8 MB Notification: Performance of collectInitialEqns (initialization): time 4.822e-05/0.3321, allocations: 105.2 kB / 475.3 MB, free: 9.203 MB / 354.8 MB Notification: Performance of collectInitialBindings (initialization): time 2.981e-05/0.3321, allocations: 27.8 kB / 475.3 MB, free: 9.176 MB / 354.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.019e-06/0.3321, allocations: 0 / 475.3 MB, free: 9.176 MB / 354.8 MB Notification: Performance of setup shared object (initialization): time 9.908e-05/0.3322, allocations: 330.8 kB / 475.7 MB, free: 8.844 MB / 354.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.094e-05/0.3323, allocations: 20 kB / 475.7 MB, free: 8.824 MB / 354.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.057e-05/0.3324, allocations: 74.86 kB / 475.8 MB, free: 8.727 MB / 354.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.242e-05/0.3324, allocations: 27.92 kB / 475.8 MB, free: 8.699 MB / 354.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.3324, allocations: 0 / 475.8 MB, free: 8.699 MB / 354.8 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001787/0.3326, allocations: 112.9 kB / 475.9 MB, free: 8.586 MB / 354.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.592e-05/0.3326, allocations: 16.75 kB / 475.9 MB, free: 8.57 MB / 354.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.66e-06/0.3327, allocations: 0 / 475.9 MB, free: 8.57 MB / 354.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.323e-05/0.3327, allocations: 4.562 kB / 475.9 MB, free: 8.566 MB / 354.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.596e-05/0.3328, allocations: 15.92 kB / 475.9 MB, free: 8.551 MB / 354.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.362e-06/0.3328, allocations: 5.641 kB / 475.9 MB, free: 8.547 MB / 354.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.504e-05/0.3329, allocations: 4 kB / 475.9 MB, free: 8.543 MB / 354.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.138e-05/0.3329, allocations: 4 kB / 475.9 MB, free: 8.539 MB / 354.8 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 7.881e-05/0.333, allocations: 114 kB / 476.1 MB, free: 8.422 MB / 354.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.047e-05/0.3331, allocations: 73.34 kB / 476.1 MB, free: 8.344 MB / 354.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001803/0.3333, allocations: 95.38 kB / 476.2 MB, free: 8.242 MB / 354.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.42e-06/0.3333, allocations: 4.609 kB / 476.2 MB, free: 8.238 MB / 354.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.498e-06/0.3333, allocations: 0 / 476.2 MB, free: 8.238 MB / 354.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.671e-06/0.3333, allocations: 0 / 476.2 MB, free: 8.238 MB / 354.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001841/0.3335, allocations: 214 kB / 476.4 MB, free: 7.992 MB / 354.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.3335, allocations: 0 / 476.4 MB, free: 7.992 MB / 354.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.872e-05/0.3335, allocations: 11.94 kB / 476.4 MB, free: 7.98 MB / 354.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.138e-06/0.3336, allocations: 4 kB / 476.4 MB, free: 7.977 MB / 354.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.19e-05/0.3336, allocations: 8.047 kB / 476.5 MB, free: 7.969 MB / 354.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.988e-06/0.3336, allocations: 4.656 kB / 476.5 MB, free: 7.965 MB / 354.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.875e-06/0.3336, allocations: 1.312 kB / 476.5 MB, free: 7.965 MB / 354.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002466/0.3338, allocations: 203.4 kB / 476.7 MB, free: 7.723 MB / 354.8 MB Notification: Performance of postOpt removeConstants (simulation): time 9.903e-05/0.334, allocations: 112.9 kB / 476.8 MB, free: 7.594 MB / 354.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.69e-05/0.334, allocations: 6.219 kB / 476.8 MB, free: 7.59 MB / 354.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.974e-05/0.3341, allocations: 7.984 kB / 476.8 MB, free: 7.582 MB / 354.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.731e-05/0.3341, allocations: 4 kB / 476.8 MB, free: 7.578 MB / 354.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.313e-05/0.3341, allocations: 13.2 kB / 476.8 MB, free: 7.566 MB / 354.8 MB Notification: Performance of sort global known variables: time 0.0001713/0.3343, allocations: 184.5 kB / 477 MB, free: 7.383 MB / 354.8 MB Notification: Performance of remove unused functions: time 0.000273/0.3346, allocations: 39.94 kB / 477 MB, free: 7.344 MB / 354.8 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.0006433/0.3353, allocations: 308.1 kB / 477.3 MB, free: 7.176 MB / 354.8 MB Notification: Performance of simCode: created initialization part: time 0.0001756/0.3354, allocations: 75.86 kB / 477.4 MB, free: 7.102 MB / 354.8 MB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.3355, allocations: 0 / 477.4 MB, free: 7.102 MB / 354.8 MB Notification: Performance of simCode: created simulation system equations: time 6.684e-05/0.3355, allocations: 35.97 kB / 477.4 MB, free: 7.066 MB / 354.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003487/0.3359, allocations: 59.86 kB / 477.5 MB, free: 7.012 MB / 354.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004788/0.3364, allocations: 233.1 kB / 477.7 MB, free: 6.754 MB / 354.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003203/0.3367, allocations: 0.759 MB / 478.5 MB, free: 5.969 MB / 354.8 MB Notification: Performance of SimCode: time 2.2e-07/0.3367, allocations: 2.062 kB / 478.5 MB, free: 5.969 MB / 354.8 MB Notification: Performance of Templates: time 0.005454/0.3422, allocations: 2.33 MB / 480.8 MB, free: 3.711 MB / 354.8 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/Hold/Hold.csv","../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches