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: "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant2,fileNamePrefix="Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant2,fileNamePrefix="Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="me",version="2.0",platforms={"static"}) [: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.0008913/0.0008913, allocations: 180.8 kB / 8.128 MB, free: 2.223 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.069/1.069, allocations: 221.4 MB / 229.9 MB, free: 3 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.0008605/0.0008606, allocations: 100.7 kB / 280.8 MB, free: 1.211 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08432/0.08521, allocations: 55.81 MB / 336.6 MB, free: 9.383 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1664/0.2516, allocations: 50.38 MB / 387 MB, free: 37.96 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.07111/0.3228, allocations: 75.89 MB / 462.9 MB, free: 10.87 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001549/0.323, allocations: 63.97 kB / 462.9 MB, free: 10.8 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.007228/0.3302, allocations: 3.139 MB / 466.1 MB, free: 7.621 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.194e-05/0.3303, allocations: 15.98 kB / 466.1 MB, free: 7.605 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.233e-05/0.3303, allocations: 23.72 kB / 466.1 MB, free: 7.582 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002371/0.3306, allocations: 225.9 kB / 466.3 MB, free: 7.324 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.47e-05/0.3306, allocations: 12 kB / 466.3 MB, free: 7.312 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.186e-05/0.3306, allocations: 16 kB / 466.4 MB, free: 7.297 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002611/0.3309, allocations: 137 kB / 466.5 MB, free: 7.164 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003293/0.3312, allocations: 240.2 kB / 466.7 MB, free: 6.906 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.112e-05/0.3312, allocations: 3.938 kB / 466.7 MB, free: 6.902 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.888e-05/0.3313, allocations: 0 / 466.7 MB, free: 6.902 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.656e-06/0.3313, allocations: 8 kB / 466.7 MB, free: 6.895 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009074/0.3322, allocations: 0.9114 MB / 467.7 MB, free: 5.93 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002138/0.3324, allocations: 149.7 kB / 467.8 MB, free: 5.766 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.607e-05/0.3325, allocations: 70.17 kB / 467.9 MB, free: 5.691 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.192e-05/0.3326, allocations: 12.19 kB / 467.9 MB, free: 5.68 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001519/0.3327, allocations: 122.7 kB / 468 MB, free: 5.543 MB / 346.7 MB Notification: Performance of pre-optimization done (n=24): time 1.393e-06/0.3327, allocations: 0 / 468 MB, free: 5.543 MB / 346.7 MB Notification: Performance of matching and sorting (n=24): time 0.0002645/0.333, allocations: 143 kB / 468.1 MB, free: 5.398 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.755e-05/0.333, allocations: 85.84 kB / 468.2 MB, free: 5.297 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.359e-05/0.3331, allocations: 140.8 kB / 468.4 MB, free: 5.152 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.832e-05/0.3332, allocations: 29.7 kB / 468.4 MB, free: 5.117 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.935e-05/0.3332, allocations: 140.2 kB / 468.5 MB, free: 4.977 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.604e-05/0.3333, allocations: 59.25 kB / 468.6 MB, free: 4.918 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.478e-06/0.3333, allocations: 0 / 468.6 MB, free: 4.918 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.281e-05/0.3334, allocations: 326.8 kB / 468.9 MB, free: 4.59 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.421e-05/0.3335, allocations: 58.34 kB / 469 MB, free: 4.531 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001299/0.3336, allocations: 129.6 kB / 469.1 MB, free: 4.375 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.69e-05/0.3338, allocations: 63.95 kB / 469.2 MB, free: 4.312 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.3338, allocations: 0 / 469.2 MB, free: 4.312 MB / 346.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0002972/0.3341, allocations: 213.2 kB / 469.4 MB, free: 4.098 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.227e-06/0.3341, allocations: 4 kB / 469.4 MB, free: 4.094 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.235e-06/0.3341, allocations: 7.984 kB / 469.4 MB, free: 4.086 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.195e-05/0.3341, allocations: 4 kB / 469.4 MB, free: 4.082 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001291/0.3342, allocations: 36.2 kB / 469.4 MB, free: 4.047 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.338e-06/0.3343, allocations: 12.62 kB / 469.4 MB, free: 4.035 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.819e-05/0.3344, allocations: 11.84 kB / 469.4 MB, free: 4.023 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.528e-05/0.3344, allocations: 23.92 kB / 469.5 MB, free: 4 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 7.763e-05/0.3345, allocations: 131.9 kB / 469.6 MB, free: 3.867 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.337e-05/0.3345, allocations: 11.91 kB / 469.6 MB, free: 3.855 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002825/0.3348, allocations: 164.6 kB / 469.8 MB, free: 3.691 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.106e-06/0.3348, allocations: 4 kB / 469.8 MB, free: 3.688 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.039e-06/0.3348, allocations: 4 kB / 469.8 MB, free: 3.684 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.93e-06/0.3348, allocations: 0 / 469.8 MB, free: 3.684 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005779/0.3354, allocations: 0.5139 MB / 470.3 MB, free: 3.121 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.597e-06/0.3354, allocations: 5.234 kB / 470.3 MB, free: 3.117 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.109e-05/0.3355, allocations: 15.94 kB / 470.3 MB, free: 3.102 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.835e-06/0.3355, allocations: 4 kB / 470.3 MB, free: 3.098 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.214e-05/0.3355, allocations: 0 / 470.3 MB, free: 3.098 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-05/0.3355, allocations: 7.984 kB / 470.3 MB, free: 3.09 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.3355, allocations: 0 / 470.3 MB, free: 3.09 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002535/0.3358, allocations: 269.7 kB / 470.6 MB, free: 2.801 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003367/0.3361, allocations: 0.6356 MB / 471.2 MB, free: 2.137 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.629e-05/0.3362, allocations: 88.92 kB / 471.3 MB, free: 2.031 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.721e-05/0.3362, allocations: 4.688 kB / 471.3 MB, free: 2.027 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.645e-05/0.3363, allocations: 11.98 kB / 471.3 MB, free: 2.016 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.883e-05/0.3364, allocations: 19.97 kB / 471.3 MB, free: 1.996 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.519e-05/0.3364, allocations: 12 kB / 471.3 MB, free: 1.984 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.41e-05/0.3365, allocations: 94.78 kB / 471.4 MB, free: 1.895 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0008678/0.3373, allocations: 35.91 kB / 471.5 MB, free: 1.859 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.0001204/0.3375, allocations: 115.1 kB / 471.6 MB, free: 1.738 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002407/0.3377, allocations: 164.3 kB / 471.7 MB, free: 1.578 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.3377, allocations: 0 / 471.7 MB, free: 1.578 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001032/0.3378, allocations: 79.94 kB / 471.8 MB, free: 1.5 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001824/0.338, allocations: 22.84 kB / 471.8 MB, free: 1.48 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004386/0.3385, allocations: 237.3 kB / 472.1 MB, free: 1.215 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002979/0.3388, allocations: 0.7709 MB / 472.9 MB, free: 424 kB / 346.7 MB Notification: Performance of SimCode: time 2.61e-07/0.3388, allocations: 0 / 472.9 MB, free: 424 kB / 346.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample_Variant2_fmu --startTime=0 --stopTime=5.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample_Variant2.fmu > Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1)