Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.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_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.0.0_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_4.0.0_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 4.0.0+maint.om/package.mo): time 0.000963/0.0009631, 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.215/1.215, allocations: 221.4 MB / 230 MB, free: 3.23 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.0008607/0.0008607, allocations: 102.3 kB / 280.8 MB, free: 1.242 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.153e-06/7.193e-06, allocations: 0 / 336.5 MB, free: 9.512 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2183/0.2183, allocations: 50.39 MB / 386.9 MB, free: 38.05 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08208/0.3005, allocations: 75.89 MB / 462.8 MB, free: 10.9 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001472/0.3006, allocations: 69.06 kB / 462.8 MB, free: 10.83 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.00751/0.3082, allocations: 2.693 MB / 465.5 MB, free: 8.156 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.29e-05/0.3082, allocations: 4 kB / 465.5 MB, free: 8.152 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.000456/0.3087, allocations: 435.6 kB / 466 MB, free: 7.68 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.372e-05/0.3087, allocations: 8.031 kB / 466 MB, free: 7.672 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.667e-05/0.3088, allocations: 27.7 kB / 466 MB, free: 7.645 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002294/0.309, allocations: 223.3 kB / 466.2 MB, free: 7.387 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.758e-05/0.3091, allocations: 15.98 kB / 466.2 MB, free: 7.371 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.416e-05/0.3091, allocations: 16 kB / 466.3 MB, free: 7.355 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002754/0.3094, allocations: 141 kB / 466.4 MB, free: 7.219 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003453/0.3097, allocations: 236.2 kB / 466.6 MB, free: 6.965 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.322e-05/0.3098, allocations: 7.922 kB / 466.6 MB, free: 6.957 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.287e-05/0.3098, allocations: 5.031 kB / 466.6 MB, free: 6.953 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.945e-06/0.3098, allocations: 4 kB / 466.6 MB, free: 6.949 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009256/0.3107, allocations: 0.8957 MB / 467.5 MB, free: 6 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002643/0.311, allocations: 158.2 kB / 467.7 MB, free: 5.828 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001026/0.3111, allocations: 70.09 kB / 467.8 MB, free: 5.754 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.26e-05/0.3111, allocations: 4.172 kB / 467.8 MB, free: 5.75 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001725/0.3113, allocations: 133.2 kB / 467.9 MB, free: 5.602 MB / 346.7 MB Notification: Performance of pre-optimization done (n=24): time 1.583e-06/0.3113, allocations: 1.125 kB / 467.9 MB, free: 5.602 MB / 346.7 MB Notification: Performance of matching and sorting (n=24): time 0.0002788/0.3116, allocations: 139.7 kB / 468 MB, free: 5.461 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.302e-05/0.3117, allocations: 85.11 kB / 468.1 MB, free: 5.359 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001051/0.3118, allocations: 140.7 kB / 468.3 MB, free: 5.215 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.258e-05/0.3119, allocations: 33.69 kB / 468.3 MB, free: 5.176 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.477e-05/0.3119, allocations: 128.3 kB / 468.4 MB, free: 5.047 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.584e-05/0.312, allocations: 59.34 kB / 468.5 MB, free: 4.988 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.187e-06/0.312, allocations: 0 / 468.5 MB, free: 4.988 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.64e-05/0.3121, allocations: 330.7 kB / 468.8 MB, free: 4.656 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.361e-05/0.3122, allocations: 58.44 kB / 468.8 MB, free: 4.602 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001269/0.3123, allocations: 124.5 kB / 469 MB, free: 4.449 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001108/0.3125, allocations: 69.16 kB / 469 MB, free: 4.383 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.611e-06/0.3125, allocations: 4 kB / 469 MB, free: 4.379 MB / 346.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003057/0.3128, allocations: 209.2 kB / 469.2 MB, free: 4.168 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.122e-05/0.3128, allocations: 8.281 kB / 469.3 MB, free: 4.16 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.119e-06/0.3128, allocations: 4 kB / 469.3 MB, free: 4.156 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.361e-05/0.3128, allocations: 5.5 kB / 469.3 MB, free: 4.152 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001432/0.313, allocations: 39.91 kB / 469.3 MB, free: 4.113 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.031e-05/0.313, allocations: 11.92 kB / 469.3 MB, free: 4.102 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001037/0.3131, allocations: 15.78 kB / 469.3 MB, free: 4.086 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.659e-05/0.3131, allocations: 12 kB / 469.3 MB, free: 4.074 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,SetBoolean1.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 9.044e-05/0.3132, allocations: 120 kB / 469.5 MB, free: 3.953 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.634e-05/0.3133, allocations: 23.8 kB / 469.5 MB, free: 3.93 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003035/0.3136, allocations: 160 kB / 469.6 MB, free: 3.773 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.981e-06/0.3136, allocations: 5.297 kB / 469.6 MB, free: 3.77 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.37e-06/0.3136, allocations: 4 kB / 469.6 MB, free: 3.766 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.309e-06/0.3136, allocations: 0 / 469.6 MB, free: 3.766 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006548/0.3143, allocations: 0.5099 MB / 470.2 MB, free: 3.203 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.198e-06/0.3143, allocations: 4.5 kB / 470.2 MB, free: 3.199 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.972e-05/0.3144, allocations: 19.92 kB / 470.2 MB, free: 3.18 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.875e-06/0.3144, allocations: 0 / 470.2 MB, free: 3.18 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.629e-05/0.3144, allocations: 0.9375 kB / 470.2 MB, free: 3.18 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.587e-06/0.3144, allocations: 4 kB / 470.2 MB, free: 3.176 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.826e-06/0.3144, allocations: 0 / 470.2 MB, free: 3.176 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000306/0.3147, allocations: 273.8 kB / 470.5 MB, free: 2.883 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.732e-05/0.3148, allocations: 92.86 kB / 470.5 MB, free: 2.773 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.027e-05/0.3148, allocations: 0 / 470.5 MB, free: 2.773 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001053/0.315, allocations: 15.98 kB / 470.6 MB, free: 2.758 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.832e-05/0.315, allocations: 17.47 kB / 470.6 MB, free: 2.742 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.788e-05/0.3151, allocations: 12 kB / 470.6 MB, free: 2.73 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.243e-05/0.3151, allocations: 97.55 kB / 470.7 MB, free: 2.637 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002863/0.3154, allocations: 40 kB / 470.7 MB, free: 2.598 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,SetBoolean1.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.000149/0.3155, allocations: 111.2 kB / 470.8 MB, free: 2.477 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002681/0.3158, allocations: 159.8 kB / 471 MB, free: 2.32 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.3158, allocations: 0 / 471 MB, free: 2.32 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001128/0.316, allocations: 88.5 kB / 471.1 MB, free: 2.234 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001934/0.3162, allocations: 15.55 kB / 471.1 MB, free: 2.223 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005195/0.3167, allocations: 241.7 kB / 471.3 MB, free: 1.953 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003342/0.317, allocations: 0.7708 MB / 472.1 MB, free: 1.152 MB / 346.7 MB Notification: Performance of SimCode: time 1.553e-06/0.317, allocations: 0 / 472.1 MB, free: 1.152 MB / 346.7 MB Notification: Performance of Templates: time 0.00458/0.3216, allocations: 1.882 MB / 474 MB, free: 15.29 MB / 362.7 MB make -j1 -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile (rm -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & ./Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.csv","../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches