Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.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: "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant3,fileNamePrefix="Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_Variant3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant3,fileNamePrefix="Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_Variant3",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 3.2.3+maint.om/package.mo): time 0.001442/0.001442, allocations: 175.2 kB / 8.478 MB, free: 1.863 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.353/1.353, allocations: 205.2 MB / 214.1 MB, free: 5.09 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.0008503/0.0008503, allocations: 94.7 kB / 262.1 MB, free: 5.129 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1656/0.1665, allocations: 52.95 MB / 315.1 MB, free: 41.41 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06258/0.2291, allocations: 47.57 MB / 362.6 MB, free: 9.879 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.224/0.4531, allocations: 74.98 MB / 437.6 MB, free: 10.74 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001728/0.4533, allocations: 67.69 kB / 437.7 MB, free: 10.74 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.006915/0.4603, allocations: 3.04 MB / 440.7 MB, free: 10.19 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.418e-05/0.4603, allocations: 8.375 kB / 440.7 MB, free: 10.19 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.714e-05/0.4604, allocations: 23.25 kB / 440.7 MB, free: 10.18 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002161/0.4606, allocations: 227.8 kB / 441 MB, free: 9.965 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.484e-05/0.4606, allocations: 8.625 kB / 441 MB, free: 9.965 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.125e-05/0.4607, allocations: 19.19 kB / 441 MB, free: 9.965 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002668/0.461, allocations: 146.8 kB / 441.1 MB, free: 9.961 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000318/0.4613, allocations: 229 kB / 441.4 MB, free: 9.883 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.134e-05/0.4613, allocations: 0 / 441.4 MB, free: 9.883 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.156e-05/0.4613, allocations: 4.438 kB / 441.4 MB, free: 9.883 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.755e-06/0.4613, allocations: 7.891 kB / 441.4 MB, free: 9.879 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008561/0.4622, allocations: 0.8918 MB / 442.3 MB, free: 9.273 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001905/0.4624, allocations: 133.9 kB / 442.4 MB, free: 9.242 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.205e-05/0.4625, allocations: 64.92 kB / 442.5 MB, free: 9.234 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.602e-05/0.4625, allocations: 7.688 kB / 442.5 MB, free: 9.23 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001233/0.4627, allocations: 107.6 kB / 442.6 MB, free: 9.176 MB / 314.7 MB Notification: Performance of pre-optimization done (n=23): time 2.004e-06/0.4627, allocations: 0 / 442.6 MB, free: 9.176 MB / 314.7 MB Notification: Performance of matching and sorting (n=23): time 0.0002431/0.4629, allocations: 137.6 kB / 442.7 MB, free: 9.133 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.647e-05/0.463, allocations: 60.58 kB / 442.8 MB, free: 9.066 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.325e-05/0.463, allocations: 142.5 kB / 442.9 MB, free: 8.965 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.451e-05/0.4631, allocations: 29.88 kB / 442.9 MB, free: 8.934 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.425e-05/0.4631, allocations: 133.5 kB / 443.1 MB, free: 8.828 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.738e-05/0.4632, allocations: 58.19 kB / 443.1 MB, free: 8.793 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.986e-06/0.4632, allocations: 3.938 kB / 443.1 MB, free: 8.789 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 4.918e-05/0.4632, allocations: 327.1 kB / 443.4 MB, free: 8.477 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.389e-05/0.4633, allocations: 58.52 kB / 443.5 MB, free: 8.473 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001023/0.4634, allocations: 124.5 kB / 443.6 MB, free: 8.391 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.749e-05/0.4635, allocations: 55 kB / 443.7 MB, free: 8.387 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.295e-06/0.4636, allocations: 3.969 kB / 443.7 MB, free: 8.387 MB / 314.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0002833/0.4638, allocations: 216.7 kB / 443.9 MB, free: 8.324 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.325e-05/0.4639, allocations: 4.719 kB / 443.9 MB, free: 8.324 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.183e-06/0.4639, allocations: 3.812 kB / 443.9 MB, free: 8.324 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.55e-05/0.4639, allocations: 3.875 kB / 443.9 MB, free: 8.324 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001373/0.464, allocations: 35.5 kB / 443.9 MB, free: 8.32 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.538e-06/0.4641, allocations: 11.73 kB / 443.9 MB, free: 8.312 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000108/0.4642, allocations: 14.03 kB / 444 MB, free: 8.305 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.76e-05/0.4642, allocations: 20.12 kB / 444 MB, free: 8.297 MB / 314.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: 30 ($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,stateGraphRoot.resume,stateGraphRoot.suspend,transition1.condition) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 40 * 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.6e-05/0.4643, allocations: 132.5 kB / 444.1 MB, free: 8.172 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.102e-05/0.4643, allocations: 12.19 kB / 444.1 MB, free: 8.168 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002821/0.4646, allocations: 158.3 kB / 444.3 MB, free: 8.121 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.966e-06/0.4646, allocations: 3.812 kB / 444.3 MB, free: 8.121 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.4646, allocations: 0.75 kB / 444.3 MB, free: 8.121 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.422e-06/0.4646, allocations: 1.172 kB / 444.3 MB, free: 8.121 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005728/0.4652, allocations: 0.507 MB / 444.8 MB, free: 7.809 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.885e-06/0.4652, allocations: 0.6562 kB / 444.8 MB, free: 7.809 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.349e-05/0.4653, allocations: 17.47 kB / 444.8 MB, free: 7.805 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.959e-06/0.4653, allocations: 4.719 kB / 444.8 MB, free: 7.805 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.357e-05/0.4653, allocations: 3.578 kB / 444.8 MB, free: 7.805 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.284e-06/0.4653, allocations: 0.6562 kB / 444.8 MB, free: 7.805 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.364e-06/0.4654, allocations: 0 / 444.8 MB, free: 7.805 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002229/0.4656, allocations: 248.4 kB / 445.1 MB, free: 7.656 MB / 314.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002534/0.4658, allocations: 0.6175 MB / 445.7 MB, free: 7.141 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.548e-05/0.4659, allocations: 92.45 kB / 445.8 MB, free: 7.039 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.68e-05/0.4659, allocations: 0.7031 kB / 445.8 MB, free: 7.039 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.658e-05/0.466, allocations: 17.83 kB / 445.8 MB, free: 7.027 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.76e-05/0.4661, allocations: 24.17 kB / 445.8 MB, free: 7.023 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.386e-05/0.4661, allocations: 8.438 kB / 445.8 MB, free: 7.02 MB / 314.7 MB Notification: Performance of sort global known variables: time 3.508e-05/0.4662, allocations: 95.47 kB / 445.9 MB, free: 6.945 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0008273/0.467, allocations: 36.06 kB / 445.9 MB, free: 6.941 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 (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: 2 (initialStep.newActive,step.newActive) * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 21 * 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.0001536/0.4671, allocations: 103.2 kB / 446 MB, free: 6.852 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0002297/0.4674, allocations: 166.7 kB / 446.2 MB, free: 6.832 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.4674, allocations: 0 / 446.2 MB, free: 6.832 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 9.651e-05/0.4675, allocations: 75.98 kB / 446.3 MB, free: 6.824 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00019/0.4677, allocations: 13.08 kB / 446.3 MB, free: 6.824 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004652/0.4682, allocations: 227 kB / 446.5 MB, free: 6.719 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00023/0.4684, allocations: 0.7657 MB / 447.3 MB, free: 6.012 MB / 314.7 MB Notification: Performance of SimCode: time 2.4e-07/0.4684, allocations: 0 / 447.3 MB, free: 6.012 MB / 314.7 MB (rm -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_Variant3_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_Variant3.fmu > Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1)