Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.StateGraph.Examples.FirstExample_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2") [: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 3.2.3+maint.om/package.mo): time 0.001061/0.001061, allocations: 179.5 kB / 8.48 MB, free: 1.883 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.356/1.356, allocations: 205.2 MB / 214.1 MB, free: 5.504 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009739/0.0009738, allocations: 90.19 kB / 262.1 MB, free: 5.559 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 6.974e-06/7.083e-06, allocations: 4 kB / 315 MB, free: 41.55 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0796/0.07962, allocations: 47.57 MB / 362.5 MB, free: 10.02 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2495/0.3292, allocations: 74.97 MB / 437.5 MB, free: 10.94 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002292/0.3295, allocations: 64.69 kB / 437.6 MB, free: 10.94 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.007619/0.3371, allocations: 2.62 MB / 440.2 MB, free: 10.77 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.877e-05/0.3372, allocations: 8.719 kB / 440.2 MB, free: 10.76 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0005682/0.3378, allocations: 439.4 kB / 440.6 MB, free: 10.38 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.018e-05/0.3378, allocations: 11.69 kB / 440.6 MB, free: 10.38 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.967e-05/0.3379, allocations: 28 kB / 440.7 MB, free: 10.36 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002593/0.3382, allocations: 231 kB / 440.9 MB, free: 10.15 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.948e-05/0.3382, allocations: 7.688 kB / 440.9 MB, free: 10.15 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.722e-05/0.3383, allocations: 16.05 kB / 440.9 MB, free: 10.15 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003035/0.3386, allocations: 143 kB / 441 MB, free: 10.15 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003574/0.3389, allocations: 229.6 kB / 441.3 MB, free: 10.07 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.452e-05/0.339, allocations: 11.81 kB / 441.3 MB, free: 10.06 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.342e-05/0.339, allocations: 0.7031 kB / 441.3 MB, free: 10.06 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.186e-06/0.339, allocations: 3.844 kB / 441.3 MB, free: 10.06 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009944/0.34, allocations: 0.9039 MB / 442.2 MB, free: 9.449 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000203/0.3402, allocations: 128.6 kB / 442.3 MB, free: 9.422 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.832e-05/0.3403, allocations: 65.42 kB / 442.4 MB, free: 9.414 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.181e-05/0.3403, allocations: 7.125 kB / 442.4 MB, free: 9.414 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001405/0.3405, allocations: 103.4 kB / 442.5 MB, free: 9.363 MB / 314.7 MB Notification: Performance of pre-optimization done (n=23): time 1.853e-06/0.3405, allocations: 0 / 442.5 MB, free: 9.363 MB / 314.7 MB Notification: Performance of matching and sorting (n=23): time 0.0002677/0.3408, allocations: 145.5 kB / 442.6 MB, free: 9.312 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.809e-05/0.3408, allocations: 63.11 kB / 442.7 MB, free: 9.246 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.594e-05/0.3409, allocations: 143.5 kB / 442.8 MB, free: 9.141 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.55e-05/0.3409, allocations: 26.55 kB / 442.9 MB, free: 9.109 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.125e-05/0.341, allocations: 139.8 kB / 443 MB, free: 9 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.155e-05/0.3411, allocations: 60.28 kB / 443.1 MB, free: 8.965 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.816e-05/0.3411, allocations: 0 / 443.1 MB, free: 8.965 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.31e-05/0.3412, allocations: 326.1 kB / 443.4 MB, free: 8.652 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.992e-05/0.3413, allocations: 55.11 kB / 443.4 MB, free: 8.648 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001062/0.3414, allocations: 128.7 kB / 443.6 MB, free: 8.562 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001061/0.3415, allocations: 59.17 kB / 443.6 MB, free: 8.559 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-06/0.3415, allocations: 3.875 kB / 443.6 MB, free: 8.559 MB / 314.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003043/0.3418, allocations: 209.3 kB / 443.8 MB, free: 8.504 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.41e-05/0.3418, allocations: 7.719 kB / 443.8 MB, free: 8.5 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.736e-06/0.3418, allocations: 5.094 kB / 443.8 MB, free: 8.5 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.709e-05/0.3419, allocations: 7.812 kB / 443.8 MB, free: 8.496 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001417/0.342, allocations: 31.89 kB / 443.9 MB, free: 8.492 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.454e-06/0.342, allocations: 3.969 kB / 443.9 MB, free: 8.492 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001115/0.3421, allocations: 13.83 kB / 443.9 MB, free: 8.488 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.721e-05/0.3422, allocations: 14.97 kB / 443.9 MB, free: 8.484 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 30 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,$whenCondition2,$whenCondition1,$PRE.initialStep.localActive,initialStep.localActive,$PRE.initialStep.newActive,initialStep.newActive,$PRE.initialStep.oldActive,initialStep.oldActive,initialStep.active,transition1.enableFire,transition1.fire,$PRE.transition1.t_start,transition1.t_start,$PRE.step.localActive,step.localActive,$PRE.step.newActive,step.newActive,$PRE.step.oldActive,step.oldActive,step.active,transition2.enableFire,$PRE.timer.entryTime,timer.entryTime,greaterEqual.y,stateGraphRoot.activeSteps,stateGraphRoot.resume,stateGraphRoot.suspend,transition1.condition) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 40 * 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.986e-05/0.3423, allocations: 123.9 kB / 444 MB, free: 8.367 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.571e-05/0.3423, allocations: 19.5 kB / 444 MB, free: 8.355 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003022/0.3426, allocations: 160.9 kB / 444.2 MB, free: 8.309 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.797e-06/0.3426, allocations: 0.5156 kB / 444.2 MB, free: 8.309 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.38e-06/0.3426, allocations: 3.844 kB / 444.2 MB, free: 8.309 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.103e-06/0.3426, allocations: 1.312 kB / 444.2 MB, free: 8.309 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006134/0.3433, allocations: 0.5208 MB / 444.7 MB, free: 7.988 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.835e-06/0.3433, allocations: 0.6094 kB / 444.7 MB, free: 7.988 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.642e-05/0.3434, allocations: 17.7 kB / 444.7 MB, free: 7.984 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.87e-06/0.3434, allocations: 3.812 kB / 444.7 MB, free: 7.984 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.538e-05/0.3434, allocations: 8.172 kB / 444.8 MB, free: 7.98 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.185e-06/0.3434, allocations: 0 / 444.8 MB, free: 7.98 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.3434, allocations: 0 / 444.8 MB, free: 7.98 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002509/0.3437, allocations: 244.9 kB / 445 MB, free: 7.836 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.837e-05/0.3437, allocations: 89.52 kB / 445.1 MB, free: 7.734 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.265e-05/0.3437, allocations: 11.7 kB / 445.1 MB, free: 7.73 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.418e-05/0.3438, allocations: 9.781 kB / 445.1 MB, free: 7.727 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.108e-05/0.3439, allocations: 16.53 kB / 445.1 MB, free: 7.727 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.585e-05/0.344, allocations: 8.016 kB / 445.1 MB, free: 7.727 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.282e-05/0.344, allocations: 95.53 kB / 445.2 MB, free: 7.652 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003011/0.3443, allocations: 30.66 kB / 445.3 MB, free: 7.652 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 19 (step.active,step.localActive,transition1.enableFire,initialStep.localActive,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.newActive,initialStep.oldActive,initialStep.active,transition1.fire,transition1.t_start,step.newActive,step.oldActive,transition2.enableFire,timer.entryTime,greaterEqual.y,stateGraphRoot.activeSteps) * Number of discrete states: 2 (initialStep.newActive,step.newActive) * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.000146/0.3445, allocations: 119.8 kB / 445.4 MB, free: 7.551 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0002453/0.3447, allocations: 161.8 kB / 445.5 MB, free: 7.535 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.3447, allocations: 0 / 445.5 MB, free: 7.535 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 9.683e-05/0.3448, allocations: 74.53 kB / 445.6 MB, free: 7.531 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002092/0.345, allocations: 12.59 kB / 445.6 MB, free: 7.531 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005283/0.3456, allocations: 232.4 kB / 445.8 MB, free: 7.418 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002474/0.3458, allocations: 0.7654 MB / 446.6 MB, free: 6.711 MB / 314.7 MB Notification: Performance of SimCode: time 2.2e-07/0.3458, allocations: 0 / 446.6 MB, free: 6.711 MB / 314.7 MB Notification: Performance of Templates: time 0.005256/0.3511, allocations: 1.872 MB / 448.5 MB, free: 6.543 MB / 314.7 MB make -j1 -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile (rm -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & ./Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/StateGraph/Examples/FirstExample_Variant2/FirstExample_Variant2.csv","../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches