Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.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_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.0.0_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_4.0.0_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 4.0.0+maint.om/package.mo): time 0.0009859/0.0009859, allocations: 182.8 kB / 8.137 MB, free: 2.184 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.341/1.341, allocations: 221.4 MB / 229.9 MB, free: 3.027 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.0008585/0.0008585, allocations: 101.9 kB / 280.8 MB, free: 1.25 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 6.012e-06/6.031e-06, allocations: 0 / 336.5 MB, free: 9.539 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2404/0.2404, allocations: 50.4 MB / 386.9 MB, free: 38.02 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1241/0.3646, allocations: 75.88 MB / 462.8 MB, free: 10.96 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001883/0.3648, allocations: 63.97 kB / 462.8 MB, free: 10.9 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.01006/0.3749, allocations: 2.701 MB / 465.5 MB, free: 8.203 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.877e-05/0.375, allocations: 4 kB / 465.5 MB, free: 8.199 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0006921/0.3757, allocations: 443.5 kB / 466 MB, free: 7.719 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.83e-05/0.3757, allocations: 12.03 kB / 466 MB, free: 7.707 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.048e-05/0.3758, allocations: 23.72 kB / 466 MB, free: 7.684 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003438/0.3762, allocations: 226.8 kB / 466.2 MB, free: 7.422 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.298e-05/0.3762, allocations: 8 kB / 466.2 MB, free: 7.414 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.093e-05/0.3763, allocations: 16 kB / 466.3 MB, free: 7.398 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004146/0.3767, allocations: 148.9 kB / 466.4 MB, free: 7.254 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000513/0.3772, allocations: 237.8 kB / 466.6 MB, free: 7 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.242e-05/0.3773, allocations: 0 / 466.6 MB, free: 7 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.806e-05/0.3773, allocations: 0 / 466.6 MB, free: 7 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.287e-05/0.3773, allocations: 8 kB / 466.6 MB, free: 6.992 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001429/0.3788, allocations: 0.9046 MB / 467.5 MB, free: 6.031 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000322/0.3791, allocations: 153.8 kB / 467.7 MB, free: 5.863 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001575/0.3793, allocations: 74.09 kB / 467.8 MB, free: 5.785 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.616e-05/0.3793, allocations: 8.828 kB / 467.8 MB, free: 5.777 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002253/0.3795, allocations: 126.8 kB / 467.9 MB, free: 5.637 MB / 346.7 MB Notification: Performance of pre-optimization done (n=24): time 1.964e-06/0.3795, allocations: 0 / 467.9 MB, free: 5.637 MB / 346.7 MB Notification: Performance of matching and sorting (n=24): time 0.000389/0.3799, allocations: 148 kB / 468 MB, free: 5.488 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.441e-05/0.38, allocations: 85.14 kB / 468.1 MB, free: 5.387 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001395/0.3802, allocations: 132.8 kB / 468.3 MB, free: 5.25 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.151e-05/0.3802, allocations: 33.7 kB / 468.3 MB, free: 5.211 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001052/0.3803, allocations: 141 kB / 468.4 MB, free: 5.07 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.798e-05/0.3804, allocations: 55.25 kB / 468.5 MB, free: 5.016 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.41e-05/0.3804, allocations: 3.938 kB / 468.5 MB, free: 5.012 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001325/0.3806, allocations: 326.8 kB / 468.8 MB, free: 4.684 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001516/0.3807, allocations: 58.39 kB / 468.9 MB, free: 4.629 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002203/0.381, allocations: 128.6 kB / 469 MB, free: 4.473 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000166/0.3811, allocations: 67.95 kB / 469.1 MB, free: 4.406 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.3812, allocations: 4.875 kB / 469.1 MB, free: 4.402 MB / 346.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0004982/0.3817, allocations: 209.3 kB / 469.3 MB, free: 4.191 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.384e-05/0.3817, allocations: 4 kB / 469.3 MB, free: 4.188 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.386e-06/0.3817, allocations: 4 kB / 469.3 MB, free: 4.184 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.058e-05/0.3817, allocations: 9.844 kB / 469.3 MB, free: 4.176 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001998/0.3819, allocations: 39.86 kB / 469.3 MB, free: 4.137 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.078e-05/0.382, allocations: 10.36 kB / 469.3 MB, free: 4.129 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001513/0.3821, allocations: 11.89 kB / 469.3 MB, free: 4.117 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.786e-05/0.3822, allocations: 12 kB / 469.4 MB, free: 4.105 MB / 346.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: 32 ($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,$PRE.transition2.t_start,transition2.t_start,stateGraphRoot.resume,stateGraphRoot.suspend,transition1.condition) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (41): * Single equations (assignments): 41 * 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 0.0001329/0.3823, allocations: 131.9 kB / 469.5 MB, free: 3.973 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.537e-05/0.3824, allocations: 15.84 kB / 469.5 MB, free: 3.957 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004384/0.3828, allocations: 172.1 kB / 469.7 MB, free: 3.785 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.13e-06/0.3828, allocations: 0 / 469.7 MB, free: 3.785 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.031e-06/0.3828, allocations: 4 kB / 469.7 MB, free: 3.781 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.524e-06/0.3829, allocations: 7.922 kB / 469.7 MB, free: 3.773 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008988/0.3838, allocations: 0.5023 MB / 470.2 MB, free: 3.219 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.579e-06/0.3838, allocations: 4 kB / 470.2 MB, free: 3.215 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001084/0.3839, allocations: 25.17 kB / 470.2 MB, free: 3.191 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.699e-06/0.3839, allocations: 0 / 470.2 MB, free: 3.191 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.547e-05/0.3839, allocations: 0 / 470.2 MB, free: 3.191 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.485e-06/0.384, allocations: 4 kB / 470.2 MB, free: 3.188 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.384, allocations: 0 / 470.2 MB, free: 3.188 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004214/0.3844, allocations: 277.7 kB / 470.5 MB, free: 2.891 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.906e-05/0.3845, allocations: 85.02 kB / 470.6 MB, free: 2.789 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.746e-05/0.3845, allocations: 3.906 kB / 470.6 MB, free: 2.785 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001547/0.3847, allocations: 8 kB / 470.6 MB, free: 2.777 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.305e-05/0.3847, allocations: 25.2 kB / 470.6 MB, free: 2.754 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.03e-05/0.3848, allocations: 4 kB / 470.6 MB, free: 2.75 MB / 346.7 MB Notification: Performance of sort global known variables: time 7.491e-05/0.3849, allocations: 98.8 kB / 470.7 MB, free: 2.656 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0005037/0.3854, allocations: 39.98 kB / 470.7 MB, free: 2.617 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 20 (transition2.t_start,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: 3 (initialStep.newActive,step.newActive,transition2.t_start) * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0001517/0.3855, allocations: 107.1 kB / 470.8 MB, free: 2.504 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0003671/0.3859, allocations: 163.9 kB / 471 MB, free: 2.344 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.3859, allocations: 0 / 471 MB, free: 2.344 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001821/0.3861, allocations: 84.52 kB / 471.1 MB, free: 2.262 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003114/0.3864, allocations: 16.67 kB / 471.1 MB, free: 2.25 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006997/0.3871, allocations: 246.2 kB / 471.3 MB, free: 1.977 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004535/0.3876, allocations: 0.7708 MB / 472.1 MB, free: 1.176 MB / 346.7 MB Notification: Performance of SimCode: time 3.21e-07/0.3876, allocations: 0 / 472.1 MB, free: 1.176 MB / 346.7 MB Notification: Performance of Templates: time 0.006526/0.3942, allocations: 1.898 MB / 474 MB, free: 15.3 MB / 362.7 MB make -j1 -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile (rm -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & ./Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample_Variant2/FirstExample_Variant2.csv","../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches