Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.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_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3") [: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.00111/0.00111, allocations: 178.4 kB / 8.475 MB, free: 1.863 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.303/1.303, allocations: 205.2 MB / 214.1 MB, free: 5.16 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.0009775/0.0009775, allocations: 95.64 kB / 262.1 MB, free: 5.195 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 6.793e-06/7.103e-06, allocations: 0 / 315 MB, free: 41.51 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07654/0.07657, allocations: 47.57 MB / 362.5 MB, free: 9.988 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2552/0.3318, allocations: 74.99 MB / 437.5 MB, free: 10.68 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001991/0.332, allocations: 64.78 kB / 437.6 MB, free: 10.68 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.006877/0.3389, allocations: 2.596 MB / 440.2 MB, free: 10.52 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.51e-05/0.339, allocations: 12.55 kB / 440.2 MB, free: 10.52 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.0004284/0.3394, allocations: 441.3 kB / 440.6 MB, free: 10.13 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.76e-05/0.3395, allocations: 7.688 kB / 440.6 MB, free: 10.13 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.121e-05/0.3395, allocations: 28.03 kB / 440.7 MB, free: 10.11 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000221/0.3397, allocations: 221.7 kB / 440.9 MB, free: 9.906 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.76e-05/0.3398, allocations: 12.28 kB / 440.9 MB, free: 9.906 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.813e-05/0.3398, allocations: 15.5 kB / 440.9 MB, free: 9.906 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002719/0.3401, allocations: 147.3 kB / 441 MB, free: 9.902 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003236/0.3405, allocations: 233.9 kB / 441.3 MB, free: 9.82 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.26e-05/0.3405, allocations: 0 / 441.3 MB, free: 9.82 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.249e-05/0.3405, allocations: 0 / 441.3 MB, free: 9.82 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.025e-06/0.3405, allocations: 7.75 kB / 441.3 MB, free: 9.82 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008437/0.3414, allocations: 0.9004 MB / 442.2 MB, free: 9.211 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001926/0.3416, allocations: 129.8 kB / 442.3 MB, free: 9.18 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.677e-05/0.3417, allocations: 65.7 kB / 442.4 MB, free: 9.172 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.319e-05/0.3417, allocations: 13.05 kB / 442.4 MB, free: 9.164 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001321/0.3418, allocations: 97.53 kB / 442.5 MB, free: 9.117 MB / 314.7 MB Notification: Performance of pre-optimization done (n=23): time 1.423e-06/0.3418, allocations: 0 / 442.5 MB, free: 9.117 MB / 314.7 MB Notification: Performance of matching and sorting (n=23): time 0.0002597/0.3421, allocations: 146.6 kB / 442.6 MB, free: 9.066 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.62e-05/0.3421, allocations: 60.17 kB / 442.7 MB, free: 9 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.946e-05/0.3422, allocations: 137 kB / 442.8 MB, free: 8.898 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.436e-05/0.3423, allocations: 34.95 kB / 442.8 MB, free: 8.867 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.768e-05/0.3424, allocations: 135.6 kB / 443 MB, free: 8.758 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.541e-05/0.3424, allocations: 61.2 kB / 443 MB, free: 8.723 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.388e-06/0.3424, allocations: 0 / 443 MB, free: 8.723 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.246e-05/0.3425, allocations: 328 kB / 443.4 MB, free: 8.41 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.462e-05/0.3426, allocations: 51.94 kB / 443.4 MB, free: 8.406 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001194/0.3427, allocations: 127 kB / 443.5 MB, free: 8.324 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.931e-05/0.3428, allocations: 55.45 kB / 443.6 MB, free: 8.32 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/0.3428, allocations: 3.844 kB / 443.6 MB, free: 8.32 MB / 314.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003005/0.3431, allocations: 217.7 kB / 443.8 MB, free: 8.258 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.066e-05/0.3432, allocations: 3.844 kB / 443.8 MB, free: 8.258 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.234e-06/0.3432, allocations: 4.375 kB / 443.8 MB, free: 8.258 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.52e-05/0.3432, allocations: 3.875 kB / 443.8 MB, free: 8.258 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001421/0.3433, allocations: 35.5 kB / 443.8 MB, free: 8.254 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.173e-05/0.3434, allocations: 7.875 kB / 443.9 MB, free: 8.25 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000102/0.3435, allocations: 14.12 kB / 443.9 MB, free: 8.242 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.775e-05/0.3435, allocations: 19.67 kB / 443.9 MB, free: 8.238 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,SetBoolean1.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 9.77e-05/0.3436, allocations: 123 kB / 444 MB, free: 8.121 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.938e-05/0.3436, allocations: 8.531 kB / 444 MB, free: 8.117 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003197/0.344, allocations: 164.5 kB / 444.2 MB, free: 8.066 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.357e-06/0.344, allocations: 3.906 kB / 444.2 MB, free: 8.066 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.691e-06/0.344, allocations: 0.8438 kB / 444.2 MB, free: 8.066 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.5e-06/0.344, allocations: 0.7031 kB / 444.2 MB, free: 8.066 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005639/0.3446, allocations: 0.5096 MB / 444.7 MB, free: 7.754 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/0.3446, allocations: 4 kB / 444.7 MB, free: 7.75 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.244e-05/0.3447, allocations: 17.23 kB / 444.7 MB, free: 7.75 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.957e-06/0.3447, allocations: 3.844 kB / 444.7 MB, free: 7.75 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.643e-05/0.3447, allocations: 0.7969 kB / 444.7 MB, free: 7.75 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.265e-06/0.3447, allocations: 0.8438 kB / 444.7 MB, free: 7.75 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.827e-06/0.3447, allocations: 7.938 kB / 444.7 MB, free: 7.742 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002387/0.345, allocations: 247.3 kB / 445 MB, free: 7.598 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.902e-05/0.345, allocations: 93.33 kB / 445.1 MB, free: 7.492 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.977e-05/0.345, allocations: 4.375 kB / 445.1 MB, free: 7.492 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.76e-05/0.3451, allocations: 5.953 kB / 445.1 MB, free: 7.488 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.86e-05/0.3452, allocations: 27.8 kB / 445.1 MB, free: 7.484 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.372e-05/0.3452, allocations: 8.906 kB / 445.1 MB, free: 7.48 MB / 314.7 MB Notification: Performance of sort global known variables: time 3.527e-05/0.3453, allocations: 92.59 kB / 445.2 MB, free: 7.406 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002765/0.3455, allocations: 34.75 kB / 445.2 MB, free: 7.406 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,SetBoolean1.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.0001399/0.3457, allocations: 106.6 kB / 445.3 MB, free: 7.309 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0002329/0.3459, allocations: 165.8 kB / 445.5 MB, free: 7.293 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.513e-06/0.3459, allocations: 0 / 445.5 MB, free: 7.293 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 9.484e-05/0.346, allocations: 72.16 kB / 445.6 MB, free: 7.289 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001984/0.3462, allocations: 17.41 kB / 445.6 MB, free: 7.285 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004636/0.3467, allocations: 224.9 kB / 445.8 MB, free: 7.18 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002337/0.347, allocations: 0.7618 MB / 446.6 MB, free: 6.477 MB / 314.7 MB Notification: Performance of SimCode: time 1.313e-06/0.347, allocations: 4 kB / 446.6 MB, free: 6.473 MB / 314.7 MB Notification: Performance of Templates: time 0.005208/0.3522, allocations: 1.864 MB / 448.4 MB, free: 6.309 MB / 314.7 MB make -j1 -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile (rm -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & ./Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.csv","../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches