Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.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.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample") translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.0.0_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 4.0.0+maint.om/package.mo): time 0.001558/0.001558, allocations: 185.2 kB / 8.135 MB, free: 2.191 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.4/1.4, allocations: 221.4 MB / 229.9 MB, free: 3.012 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.0008801/0.0008804, allocations: 101.5 kB / 280.8 MB, free: 1.254 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 4.939e-06/4.98e-06, allocations: 0 / 336.5 MB, free: 9.527 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2172/0.2172, allocations: 50.39 MB / 386.9 MB, free: 38.06 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08222/0.2995, allocations: 75.26 MB / 462.2 MB, free: 11.63 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001875/0.2997, allocations: 71.89 kB / 462.2 MB, free: 11.56 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.006888/0.3066, allocations: 2.536 MB / 464.8 MB, free: 9.027 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.16e-05/0.3067, allocations: 8 kB / 464.8 MB, free: 9.02 MB / 346.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.0004907/0.3072, allocations: 433.4 kB / 465.2 MB, free: 8.555 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.668e-05/0.3072, allocations: 8.031 kB / 465.2 MB, free: 8.547 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.026e-05/0.3073, allocations: 23.81 kB / 465.2 MB, free: 8.523 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002357/0.3075, allocations: 222.9 kB / 465.4 MB, free: 8.266 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.675e-05/0.3075, allocations: 8 kB / 465.4 MB, free: 8.258 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.286e-05/0.3076, allocations: 16 kB / 465.5 MB, free: 8.242 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000277/0.3079, allocations: 138.1 kB / 465.6 MB, free: 8.109 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003174/0.3082, allocations: 209.6 kB / 465.8 MB, free: 7.891 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.342e-05/0.3082, allocations: 3.906 kB / 465.8 MB, free: 7.887 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.144e-05/0.3082, allocations: 7.922 kB / 465.8 MB, free: 7.879 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.556e-06/0.3083, allocations: 8 kB / 465.8 MB, free: 7.871 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007971/0.3091, allocations: 0.6321 MB / 466.5 MB, free: 7.195 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002363/0.3093, allocations: 144.5 kB / 466.6 MB, free: 7.047 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001031/0.3094, allocations: 69.31 kB / 466.7 MB, free: 6.977 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.664e-05/0.3095, allocations: 8.172 kB / 466.7 MB, free: 6.969 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001445/0.3096, allocations: 103.5 kB / 466.8 MB, free: 6.855 MB / 346.7 MB Notification: Performance of pre-optimization done (n=24): time 1.523e-06/0.3096, allocations: 0 / 466.8 MB, free: 6.855 MB / 346.7 MB Notification: Performance of matching and sorting (n=24): time 0.0002635/0.3099, allocations: 150.2 kB / 466.9 MB, free: 6.703 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.202e-05/0.3099, allocations: 56.62 kB / 467 MB, free: 6.637 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.709e-05/0.31, allocations: 135 kB / 467.1 MB, free: 6.496 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.67e-05/0.3101, allocations: 25.7 kB / 467.1 MB, free: 6.465 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.724e-05/0.3101, allocations: 128.4 kB / 467.3 MB, free: 6.336 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.394e-05/0.3102, allocations: 55.25 kB / 467.3 MB, free: 6.281 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.517e-06/0.3102, allocations: 0 / 467.3 MB, free: 6.281 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.864e-05/0.3103, allocations: 330.8 kB / 467.6 MB, free: 5.949 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.467e-05/0.3104, allocations: 56.66 kB / 467.7 MB, free: 5.891 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001295/0.3106, allocations: 119.8 kB / 467.8 MB, free: 5.75 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.857e-05/0.3107, allocations: 63.89 kB / 467.9 MB, free: 5.688 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.3107, allocations: 0 / 467.9 MB, free: 5.688 MB / 346.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003082/0.311, allocations: 205.2 kB / 468.1 MB, free: 5.48 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.33e-05/0.311, allocations: 8 kB / 468.1 MB, free: 5.473 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.26e-06/0.311, allocations: 1.219 kB / 468.1 MB, free: 5.473 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.685e-05/0.311, allocations: 4 kB / 468.1 MB, free: 5.469 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001353/0.3112, allocations: 31.92 kB / 468.1 MB, free: 5.438 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.596e-06/0.3112, allocations: 11.11 kB / 468.1 MB, free: 5.43 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.609e-05/0.3113, allocations: 11.88 kB / 468.1 MB, free: 5.418 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.034e-05/0.3113, allocations: 16.61 kB / 468.1 MB, free: 5.402 MB / 346.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 9.704e-05/0.3114, allocations: 127.9 kB / 468.3 MB, free: 5.273 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.351e-05/0.3115, allocations: 7.906 kB / 468.3 MB, free: 5.266 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003113/0.3118, allocations: 175.6 kB / 468.5 MB, free: 5.09 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.965e-06/0.3118, allocations: 4 kB / 468.5 MB, free: 5.086 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/0.3118, allocations: 4.938 kB / 468.5 MB, free: 5.082 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.258e-06/0.3118, allocations: 0 / 468.5 MB, free: 5.082 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006178/0.3124, allocations: 495 kB / 468.9 MB, free: 4.555 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.502e-06/0.3125, allocations: 5.031 kB / 469 MB, free: 4.551 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.143e-05/0.3125, allocations: 16 kB / 469 MB, free: 4.535 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.319e-06/0.3126, allocations: 7.938 kB / 469 MB, free: 4.527 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.433e-05/0.3126, allocations: 3.984 kB / 469 MB, free: 4.523 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.444e-06/0.3126, allocations: 1.188 kB / 469 MB, free: 4.523 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.973e-06/0.3126, allocations: 0 / 469 MB, free: 4.523 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002611/0.3129, allocations: 243.3 kB / 469.2 MB, free: 4.27 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.308e-05/0.3129, allocations: 92.86 kB / 469.3 MB, free: 4.16 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.88e-05/0.3129, allocations: 8 kB / 469.3 MB, free: 4.152 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.974e-05/0.3131, allocations: 11.98 kB / 469.3 MB, free: 4.141 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.089e-05/0.3131, allocations: 15.97 kB / 469.3 MB, free: 4.125 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.641e-05/0.3131, allocations: 15.92 kB / 469.4 MB, free: 4.109 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.988e-05/0.3132, allocations: 95.28 kB / 469.5 MB, free: 4.016 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002907/0.3135, allocations: 31.91 kB / 469.5 MB, free: 3.984 MB / 346.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.0001384/0.3136, allocations: 119.8 kB / 469.6 MB, free: 3.859 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002534/0.3139, allocations: 155.9 kB / 469.8 MB, free: 3.707 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.3139, allocations: 0 / 469.8 MB, free: 3.707 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001089/0.314, allocations: 76.53 kB / 469.8 MB, free: 3.633 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001924/0.3142, allocations: 19.97 kB / 469.8 MB, free: 3.613 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004438/0.3147, allocations: 217 kB / 470.1 MB, free: 3.379 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003269/0.315, allocations: 0.7673 MB / 470.8 MB, free: 2.582 MB / 346.7 MB Notification: Performance of SimCode: time 2.5e-07/0.315, allocations: 0 / 470.8 MB, free: 2.582 MB / 346.7 MB Notification: Performance of Templates: time 0.004409/0.3194, allocations: 1.88 MB / 472.7 MB, free: 0.7383 MB / 346.7 MB make -j1 -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.makefile (rm -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.sim & ./Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample/FirstExample.csv","../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches