Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant3,fileNamePrefix="Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_Variant3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant3,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001166/0.001167, allocations: 194.9 kB / 8.538 MB, free: 1.824 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.186/1.186, allocations: 225.5 MB / 234.4 MB, free: 3.324 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008833/0.0008834, allocations: 88.42 kB / 286.3 MB, free: 5.305 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09592/0.09683, allocations: 56.9 MB / 343.2 MB, free: 8.621 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08558/0.1824, allocations: 51.47 MB / 394.7 MB, free: 5.102 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2246/0.407, allocations: 76.69 MB / 471.4 MB, free: 14.56 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001522/0.4072, allocations: 57.17 kB / 471.4 MB, free: 14.54 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.006947/0.4142, allocations: 3.117 MB / 474.6 MB, free: 12.77 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.834e-05/0.4142, allocations: 11.94 kB / 474.6 MB, free: 12.76 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.762e-05/0.4143, allocations: 31.03 kB / 474.6 MB, free: 12.73 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002067/0.4145, allocations: 230 kB / 474.8 MB, free: 12.5 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.474e-05/0.4145, allocations: 12 kB / 474.8 MB, free: 12.49 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.438e-05/0.4146, allocations: 20.08 kB / 474.9 MB, free: 12.47 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002509/0.4148, allocations: 137.8 kB / 475 MB, free: 12.39 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003027/0.4152, allocations: 239.6 kB / 475.2 MB, free: 12.22 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.193e-05/0.4152, allocations: 0 / 475.2 MB, free: 12.22 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.071e-05/0.4152, allocations: 0 / 475.2 MB, free: 12.22 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.606e-06/0.4152, allocations: 8 kB / 475.2 MB, free: 12.21 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007084/0.4159, allocations: 0.8851 MB / 476.1 MB, free: 11.48 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001863/0.4161, allocations: 155.6 kB / 476.3 MB, free: 11.36 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.54e-05/0.4162, allocations: 79.08 kB / 476.4 MB, free: 11.3 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.091e-05/0.4163, allocations: 4.188 kB / 476.4 MB, free: 11.3 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001365/0.4164, allocations: 131 kB / 476.5 MB, free: 11.19 MB / 346.7 MB Notification: Performance of pre-optimization done (n=24): time 1.503e-06/0.4164, allocations: 0 / 476.5 MB, free: 11.19 MB / 346.7 MB Notification: Performance of matching and sorting (n=24): time 0.0002427/0.4167, allocations: 139 kB / 476.6 MB, free: 11.09 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.553e-05/0.4167, allocations: 81.11 kB / 476.7 MB, free: 10.99 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.266e-05/0.4168, allocations: 142.2 kB / 476.8 MB, free: 10.87 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.48e-05/0.4168, allocations: 33.2 kB / 476.9 MB, free: 10.84 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.609e-05/0.4169, allocations: 136.6 kB / 477 MB, free: 10.71 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.286e-05/0.4169, allocations: 61.89 kB / 477.1 MB, free: 10.67 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.117e-06/0.4169, allocations: 0 / 477.1 MB, free: 10.67 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 3.893e-05/0.417, allocations: 325.5 kB / 477.4 MB, free: 10.35 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.388e-05/0.4171, allocations: 55.5 kB / 477.4 MB, free: 10.32 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001017/0.4172, allocations: 127.4 kB / 477.6 MB, free: 10.2 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.996e-05/0.4173, allocations: 64.36 kB / 477.6 MB, free: 10.16 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.4173, allocations: 0 / 477.6 MB, free: 10.16 MB / 346.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0002846/0.4176, allocations: 210.8 kB / 477.8 MB, free: 10 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.337e-06/0.4176, allocations: 7.938 kB / 477.8 MB, free: 9.992 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.22e-06/0.4176, allocations: 0 / 477.8 MB, free: 9.992 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.129e-05/0.4176, allocations: 8 kB / 477.8 MB, free: 9.984 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001247/0.4177, allocations: 38.09 kB / 477.9 MB, free: 9.957 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.101e-06/0.4177, allocations: 4 kB / 477.9 MB, free: 9.953 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.61e-05/0.4178, allocations: 16.12 kB / 477.9 MB, free: 9.938 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.507e-05/0.4179, allocations: 19.34 kB / 477.9 MB, free: 9.926 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 6.135e-05/0.4179, allocations: 119.4 kB / 478 MB, free: 9.809 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.089e-05/0.418, allocations: 15.81 kB / 478.1 MB, free: 9.793 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002684/0.4182, allocations: 160 kB / 478.2 MB, free: 9.688 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.136e-06/0.4183, allocations: 4 kB / 478.2 MB, free: 9.684 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.556e-06/0.4183, allocations: 0 / 478.2 MB, free: 9.684 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.869e-06/0.4183, allocations: 5.125 kB / 478.2 MB, free: 9.68 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004823/0.4188, allocations: 0.5189 MB / 478.7 MB, free: 9.238 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.005e-06/0.4188, allocations: 3.75 kB / 478.7 MB, free: 9.238 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.055e-05/0.4189, allocations: 12 kB / 478.8 MB, free: 9.227 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.685e-06/0.4189, allocations: 0 / 478.8 MB, free: 9.227 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.357e-05/0.4189, allocations: 7.234 kB / 478.8 MB, free: 9.223 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.264e-06/0.4189, allocations: 2.062 kB / 478.8 MB, free: 9.223 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.464e-06/0.4189, allocations: 6.266 kB / 478.8 MB, free: 9.219 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002172/0.4191, allocations: 271.9 kB / 479 MB, free: 8.973 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.000239/0.4194, allocations: 0.6337 MB / 479.7 MB, free: 8.355 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.158e-05/0.4194, allocations: 88.95 kB / 479.8 MB, free: 8.25 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.755e-05/0.4194, allocations: 11.19 kB / 479.8 MB, free: 8.242 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.95e-05/0.4195, allocations: 7.984 kB / 479.8 MB, free: 8.234 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.964e-05/0.4196, allocations: 23.52 kB / 479.8 MB, free: 8.227 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.383e-05/0.4196, allocations: 7.5 kB / 479.8 MB, free: 8.223 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.946e-05/0.4197, allocations: 94.16 kB / 479.9 MB, free: 8.137 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0008221/0.4205, allocations: 39.5 kB / 479.9 MB, free: 8.102 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.0001032/0.4206, allocations: 106.2 kB / 480 MB, free: 7.988 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002215/0.4208, allocations: 163.7 kB / 480.2 MB, free: 7.871 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.443e-06/0.4208, allocations: 3.938 kB / 480.2 MB, free: 7.867 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 9.475e-05/0.4209, allocations: 89.42 kB / 480.3 MB, free: 7.805 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001719/0.4211, allocations: 8.531 kB / 480.3 MB, free: 7.797 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003939/0.4215, allocations: 242.8 kB / 480.5 MB, free: 7.582 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001844/0.4217, allocations: 0.7637 MB / 481.3 MB, free: 6.816 MB / 346.7 MB Notification: Performance of SimCode: time 2.7e-07/0.4217, allocations: 0 / 481.3 MB, free: 6.816 MB / 346.7 MB (rm -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat --tempDir=temp_Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_Variant3_fmu --startTime=0 --stopTime=5.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_Variant3.fmu > Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1)