Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.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_Variant2,fileNamePrefix="Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant2,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001222/0.001223, allocations: 199.9 kB / 8.536 MB, free: 1.777 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.163/1.163, allocations: 225.5 MB / 234.4 MB, free: 3.445 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008727/0.0008727, allocations: 89.3 kB / 286.3 MB, free: 5.188 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.112/0.1129, allocations: 56.89 MB / 343.2 MB, free: 8.691 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08748/0.2004, allocations: 51.47 MB / 394.7 MB, free: 5.176 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.217/0.4175, allocations: 76.68 MB / 471.4 MB, free: 14.54 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001639/0.4177, allocations: 61.81 kB / 471.4 MB, free: 14.51 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.007102/0.4248, allocations: 3.138 MB / 474.6 MB, free: 12.72 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.094e-05/0.4248, allocations: 12 kB / 474.6 MB, free: 12.71 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.289e-05/0.4249, allocations: 23.72 kB / 474.6 MB, free: 12.69 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001845/0.4251, allocations: 233.9 kB / 474.8 MB, free: 12.45 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.209e-05/0.4251, allocations: 8 kB / 474.8 MB, free: 12.45 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.03e-05/0.4252, allocations: 16 kB / 474.9 MB, free: 12.43 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002505/0.4254, allocations: 143.8 kB / 475 MB, free: 12.35 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002946/0.4257, allocations: 235.3 kB / 475.2 MB, free: 12.18 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.093e-05/0.4257, allocations: 0 / 475.2 MB, free: 12.18 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.963e-05/0.4258, allocations: 0 / 475.2 MB, free: 12.18 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.584e-06/0.4258, allocations: 8 kB / 475.2 MB, free: 12.17 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007396/0.4265, allocations: 0.9021 MB / 476.1 MB, free: 11.43 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001933/0.4267, allocations: 148.5 kB / 476.3 MB, free: 11.31 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.855e-05/0.4268, allocations: 72.88 kB / 476.4 MB, free: 11.26 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.25e-05/0.4269, allocations: 14.73 kB / 476.4 MB, free: 11.25 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001363/0.427, allocations: 124.5 kB / 476.5 MB, free: 11.14 MB / 346.7 MB Notification: Performance of pre-optimization done (n=24): time 1.703e-06/0.427, allocations: 0 / 476.5 MB, free: 11.14 MB / 346.7 MB Notification: Performance of matching and sorting (n=24): time 0.0002479/0.4273, allocations: 145.2 kB / 476.6 MB, free: 11.04 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.387e-05/0.4273, allocations: 85.09 kB / 476.7 MB, free: 10.94 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.755e-05/0.4274, allocations: 144.6 kB / 476.9 MB, free: 10.82 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.473e-05/0.4274, allocations: 29.7 kB / 476.9 MB, free: 10.79 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.326e-05/0.4275, allocations: 140.1 kB / 477 MB, free: 10.66 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.481e-05/0.4275, allocations: 55.36 kB / 477.1 MB, free: 10.62 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.006e-05/0.4275, allocations: 0 / 477.1 MB, free: 10.62 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 4.106e-05/0.4276, allocations: 327.9 kB / 477.4 MB, free: 10.3 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.69e-05/0.4277, allocations: 57.12 kB / 477.5 MB, free: 10.27 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001021/0.4278, allocations: 123.4 kB / 477.6 MB, free: 10.15 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.359e-05/0.4279, allocations: 64.52 kB / 477.6 MB, free: 10.11 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.4279, allocations: 0 / 477.6 MB, free: 10.11 MB / 346.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0002764/0.4282, allocations: 216.8 kB / 477.9 MB, free: 9.945 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.498e-06/0.4282, allocations: 4 kB / 477.9 MB, free: 9.941 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.272e-06/0.4282, allocations: 4 kB / 477.9 MB, free: 9.938 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.238e-05/0.4282, allocations: 4 kB / 477.9 MB, free: 9.934 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001353/0.4284, allocations: 43.42 kB / 477.9 MB, free: 9.902 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.865e-06/0.4284, allocations: 11.84 kB / 477.9 MB, free: 9.891 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.596e-05/0.4285, allocations: 6.953 kB / 477.9 MB, free: 9.887 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.618e-05/0.4285, allocations: 15.56 kB / 477.9 MB, free: 9.875 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 6.425e-05/0.4286, allocations: 127.4 kB / 478.1 MB, free: 9.75 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.094e-05/0.4286, allocations: 10.16 kB / 478.1 MB, free: 9.742 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000284/0.4289, allocations: 165.3 kB / 478.2 MB, free: 9.625 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.126e-06/0.4289, allocations: 0 / 478.2 MB, free: 9.625 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.011e-06/0.4289, allocations: 4.938 kB / 478.2 MB, free: 9.621 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.401e-06/0.4289, allocations: 3.375 kB / 478.2 MB, free: 9.621 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005051/0.4294, allocations: 0.5181 MB / 478.8 MB, free: 9.184 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.4294, allocations: 4 kB / 478.8 MB, free: 9.18 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.234e-05/0.4295, allocations: 19.94 kB / 478.8 MB, free: 9.16 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.858e-06/0.4295, allocations: 2.812 kB / 478.8 MB, free: 9.16 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.385e-05/0.4296, allocations: 1.688 kB / 478.8 MB, free: 9.16 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.835e-06/0.4296, allocations: 7.094 kB / 478.8 MB, free: 9.156 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.4296, allocations: 3.906 kB / 478.8 MB, free: 9.152 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002241/0.4298, allocations: 271.7 kB / 479.1 MB, free: 8.906 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002439/0.4301, allocations: 0.6332 MB / 479.7 MB, free: 8.293 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.277e-05/0.4301, allocations: 88.92 kB / 479.8 MB, free: 8.188 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.897e-05/0.4301, allocations: 7.188 kB / 479.8 MB, free: 8.184 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.595e-05/0.4302, allocations: 8 kB / 479.8 MB, free: 8.176 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.09e-05/0.4303, allocations: 25.08 kB / 479.8 MB, free: 8.164 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.44e-05/0.4303, allocations: 4 kB / 479.8 MB, free: 8.16 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.165e-05/0.4303, allocations: 97.52 kB / 479.9 MB, free: 8.074 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0008438/0.4312, allocations: 35.91 kB / 480 MB, free: 8.039 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.0001335/0.4313, allocations: 113.7 kB / 480.1 MB, free: 7.926 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002319/0.4316, allocations: 164.5 kB / 480.2 MB, free: 7.809 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.4316, allocations: 4.125 kB / 480.2 MB, free: 7.805 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001016/0.4317, allocations: 84.45 kB / 480.3 MB, free: 7.746 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001852/0.4319, allocations: 11.31 kB / 480.3 MB, free: 7.738 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000419/0.4323, allocations: 243.4 kB / 480.6 MB, free: 7.52 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001904/0.4325, allocations: 0.7654 MB / 481.3 MB, free: 6.754 MB / 346.7 MB Notification: Performance of SimCode: time 2.51e-07/0.4325, allocations: 0 / 481.3 MB, free: 6.754 MB / 346.7 MB (rm -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat --tempDir=temp_Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_Variant2_fmu --startTime=0 --stopTime=5.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_Variant2.fmu > Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1)