Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.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,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample") translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample") [: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.001502/0.001503, allocations: 183.7 kB / 8.48 MB, free: 1.891 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.401/1.401, 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.0009599/0.0009599, allocations: 74.55 kB / 262.1 MB, free: 5.211 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 6.693e-06/6.713e-06, allocations: 4 kB / 315 MB, free: 41.5 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.076/0.07602, allocations: 47.57 MB / 362.5 MB, free: 9.977 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2803/0.3564, allocations: 74.34 MB / 436.9 MB, free: 10.83 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002437/0.3567, allocations: 63.41 kB / 436.9 MB, free: 10.83 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.00694/0.3636, allocations: 2.467 MB / 439.4 MB, free: 10.64 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.43e-05/0.3637, allocations: 4.719 kB / 439.4 MB, free: 10.64 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: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.0004972/0.3642, allocations: 438.1 kB / 439.8 MB, free: 10.27 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.964e-05/0.3643, allocations: 7.688 kB / 439.8 MB, free: 10.27 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.972e-05/0.3643, allocations: 19.34 kB / 439.9 MB, free: 10.26 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002522/0.3646, allocations: 223.4 kB / 440.1 MB, free: 10.05 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.99e-05/0.3646, allocations: 12.33 kB / 440.1 MB, free: 10.05 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.594e-05/0.3647, allocations: 16.12 kB / 440.1 MB, free: 10.05 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003189/0.365, allocations: 139.1 kB / 440.2 MB, free: 10.05 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003201/0.3653, allocations: 211.2 kB / 440.4 MB, free: 9.988 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.074e-05/0.3653, allocations: 0 / 440.4 MB, free: 9.988 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.342e-05/0.3654, allocations: 4.5 kB / 440.4 MB, free: 9.988 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.845e-06/0.3654, allocations: 3.906 kB / 440.5 MB, free: 9.988 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008401/0.3662, allocations: 0.6402 MB / 441.1 MB, free: 9.629 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002368/0.3665, allocations: 146.8 kB / 441.2 MB, free: 9.598 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001007/0.3666, allocations: 70.67 kB / 441.3 MB, free: 9.59 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.45e-05/0.3666, allocations: 192 / 441.3 MB, free: 9.59 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001612/0.3668, allocations: 107.9 kB / 441.4 MB, free: 9.539 MB / 314.7 MB Notification: Performance of pre-optimization done (n=24): time 1.944e-06/0.3668, allocations: 0 / 441.4 MB, free: 9.539 MB / 314.7 MB Notification: Performance of matching and sorting (n=24): time 0.0003112/0.3671, allocations: 146.2 kB / 441.6 MB, free: 9.488 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.871e-05/0.3672, allocations: 59.77 kB / 441.6 MB, free: 9.422 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001108/0.3673, allocations: 135.1 kB / 441.7 MB, free: 9.32 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.158e-05/0.3673, allocations: 30.86 kB / 441.8 MB, free: 9.289 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.189e-05/0.3674, allocations: 127.2 kB / 441.9 MB, free: 9.184 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.527e-05/0.3675, allocations: 62.58 kB / 442 MB, free: 9.148 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.568e-06/0.3675, allocations: 0 / 442 MB, free: 9.148 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001157/0.3676, allocations: 326.2 kB / 442.3 MB, free: 8.836 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.435e-05/0.3677, allocations: 52.64 kB / 442.3 MB, free: 8.832 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001377/0.3679, allocations: 113.5 kB / 442.4 MB, free: 8.766 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001251/0.368, allocations: 63.44 kB / 442.5 MB, free: 8.758 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.368, allocations: 4 kB / 442.5 MB, free: 8.754 MB / 314.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003197/0.3683, allocations: 207.8 kB / 442.7 MB, free: 8.695 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.58e-05/0.3684, allocations: 3.875 kB / 442.7 MB, free: 8.695 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.454e-06/0.3684, allocations: 3.969 kB / 442.7 MB, free: 8.695 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.62e-05/0.3684, allocations: 3.844 kB / 442.7 MB, free: 8.695 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001509/0.3685, allocations: 31.34 kB / 442.8 MB, free: 8.691 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.087e-06/0.3686, allocations: 4.609 kB / 442.8 MB, free: 8.691 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001053/0.3687, allocations: 21.19 kB / 442.8 MB, free: 8.68 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.291e-05/0.3687, allocations: 11.88 kB / 442.8 MB, free: 8.68 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 31 ($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,transition2.fire,$PRE.transition2.t_start,transition2.t_start,stateGraphRoot.activeSteps,stateGraphRoot.resume,stateGraphRoot.suspend,transition2.condition,transition1.condition) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 39 * 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 8.419e-05/0.3688, allocations: 124.6 kB / 442.9 MB, free: 8.562 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.407e-05/0.3688, allocations: 16.22 kB / 442.9 MB, free: 8.555 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003088/0.3691, allocations: 161.4 kB / 443.1 MB, free: 8.508 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.378e-06/0.3692, allocations: 3.844 kB / 443.1 MB, free: 8.508 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.851e-06/0.3692, allocations: 4 kB / 443.1 MB, free: 8.504 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.544e-06/0.3692, allocations: 1.219 kB / 443.1 MB, free: 8.504 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005854/0.3698, allocations: 0.4904 MB / 443.6 MB, free: 8.227 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.075e-06/0.3698, allocations: 4.609 kB / 443.6 MB, free: 8.223 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.633e-05/0.3699, allocations: 17.83 kB / 443.6 MB, free: 8.219 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.336e-06/0.3699, allocations: 0.7031 kB / 443.6 MB, free: 8.219 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.555e-05/0.3699, allocations: 4.5 kB / 443.6 MB, free: 8.219 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.3699, allocations: 3.938 kB / 443.6 MB, free: 8.215 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.335e-06/0.3699, allocations: 0.7969 kB / 443.6 MB, free: 8.215 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002567/0.3702, allocations: 251.6 kB / 443.9 MB, free: 8.07 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.817e-05/0.3702, allocations: 100.5 kB / 444 MB, free: 7.965 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.682e-05/0.3702, allocations: 0 / 444 MB, free: 7.965 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.296e-05/0.3703, allocations: 7.875 kB / 444 MB, free: 7.961 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.1e-05/0.3704, allocations: 26.19 kB / 444 MB, free: 7.957 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.511e-05/0.3704, allocations: 11.59 kB / 444 MB, free: 7.953 MB / 314.7 MB Notification: Performance of sort global known variables: time 3.541e-05/0.3705, allocations: 90.52 kB / 444.1 MB, free: 7.879 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002782/0.3708, allocations: 34.53 kB / 444.1 MB, free: 7.879 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 (transition2.enableFire,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,step.active,transition2.fire,transition2.t_start,stateGraphRoot.activeSteps) * Number of discrete states: 2 (initialStep.newActive,step.newActive) * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 22 * 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.0001335/0.3709, allocations: 106.4 kB / 444.2 MB, free: 7.785 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0002318/0.3712, allocations: 169.8 kB / 444.4 MB, free: 7.766 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.734e-06/0.3712, allocations: 0 / 444.4 MB, free: 7.766 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 9.904e-05/0.3713, allocations: 76.02 kB / 444.5 MB, free: 7.762 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002019/0.3715, allocations: 9.172 kB / 444.5 MB, free: 7.762 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004789/0.372, allocations: 222.9 kB / 444.7 MB, free: 7.664 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002607/0.3722, allocations: 0.7675 MB / 445.5 MB, free: 6.953 MB / 314.7 MB Notification: Performance of SimCode: time 2.5e-07/0.3722, allocations: 0 / 445.5 MB, free: 6.953 MB / 314.7 MB Notification: Performance of Templates: time 0.005079/0.3773, allocations: 1.878 MB / 447.3 MB, free: 6.797 MB / 314.7 MB make -j1 -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.makefile (rm -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.sim & ./Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/StateGraph/Examples/FirstExample/FirstExample.csv","../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches