Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.StateGraph.Examples.ShowCompositeStep.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.ShowCompositeStep,fileNamePrefix="Modelica_trunk_Modelica_StateGraph_Examples_ShowCompositeStep",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.ShowCompositeStep,fileNamePrefix="Modelica_trunk_Modelica_StateGraph_Examples_ShowCompositeStep",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.001044/0.001044, allocations: 202.3 kB / 8.537 MB, free: 1.66 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.13/1.13, allocations: 225.5 MB / 234.4 MB, free: 3.449 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000825/0.000825, allocations: 90.39 kB / 286.3 MB, free: 5.242 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09511/0.09596, allocations: 56.89 MB / 343.2 MB, free: 8.68 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08656/0.1825, allocations: 51.47 MB / 394.7 MB, free: 5.148 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2127/0.3953, allocations: 77.77 MB / 472.5 MB, free: 13.92 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001742/0.3955, allocations: 66.39 kB / 472.5 MB, free: 13.9 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: 261 * Number of variables: 261 Notification: Performance of Generate backend data structure: time 0.02946/0.425, allocations: 14.33 MB / 486.9 MB, free: 3.559 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.04e-05/0.425, allocations: 12 kB / 486.9 MB, free: 3.547 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001978/0.4252, allocations: 102.9 kB / 487 MB, free: 3.445 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006084/0.4258, allocations: 499.4 kB / 487.5 MB, free: 3.031 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.804e-05/0.4259, allocations: 47.86 kB / 487.5 MB, free: 2.988 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001244/0.426, allocations: 71.81 kB / 487.6 MB, free: 2.922 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001216/0.4273, allocations: 0.7421 MB / 488.3 MB, free: 2.457 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001301/0.4286, allocations: 0.9153 MB / 489.2 MB, free: 1.758 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.337e-05/0.4286, allocations: 3.906 kB / 489.2 MB, free: 1.754 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.794e-05/0.4287, allocations: 3.875 kB / 489.2 MB, free: 1.754 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.775e-05/0.4287, allocations: 28 kB / 489.3 MB, free: 1.727 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003021/0.4317, allocations: 2.743 MB / 492 MB, free: 15.57 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001033/0.4328, allocations: 0.6255 MB / 492.6 MB, free: 15.13 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004876/0.4333, allocations: 335.2 kB / 493 MB, free: 14.93 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.534e-05/0.4333, allocations: 24.69 kB / 493 MB, free: 14.91 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006131/0.434, allocations: 436.9 kB / 493.4 MB, free: 14.58 MB / 362.7 MB Notification: Performance of pre-optimization done (n=105): time 2.435e-06/0.434, allocations: 0 / 493.4 MB, free: 14.58 MB / 362.7 MB Notification: Performance of matching and sorting (n=105): time 0.001123/0.4351, allocations: 0.5761 MB / 494 MB, free: 14.14 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.128e-05/0.4352, allocations: 101.5 kB / 494.1 MB, free: 14.03 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003637/0.4356, allocations: 315.6 kB / 494.4 MB, free: 13.79 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001043/0.4357, allocations: 59.06 kB / 494.4 MB, free: 13.73 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000212/0.4359, allocations: 298.8 kB / 494.7 MB, free: 13.47 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002118/0.4361, allocations: 242.6 kB / 495 MB, free: 13.27 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.625e-05/0.4362, allocations: 0 / 495 MB, free: 13.27 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001469/0.4363, allocations: 374.5 kB / 495.3 MB, free: 12.92 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004671/0.4368, allocations: 276.5 kB / 495.6 MB, free: 12.76 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005832/0.4374, allocations: 0.4929 MB / 496.1 MB, free: 12.32 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005469/0.4379, allocations: 288.3 kB / 496.4 MB, free: 12.13 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.957e-06/0.4379, allocations: 0 / 496.4 MB, free: 12.13 MB / 362.7 MB Notification: Performance of matching and sorting (n=166) (initialization): time 0.001392/0.4393, allocations: 0.849 MB / 497.2 MB, free: 11.47 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.325e-05/0.4394, allocations: 8 kB / 497.2 MB, free: 11.46 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.384e-05/0.4394, allocations: 4 kB / 497.2 MB, free: 11.46 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.292e-05/0.4394, allocations: 12 kB / 497.3 MB, free: 11.45 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004046/0.4398, allocations: 126.9 kB / 497.4 MB, free: 11.34 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.751e-05/0.4398, allocations: 16 kB / 497.4 MB, free: 11.32 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003573/0.4402, allocations: 55.66 kB / 497.5 MB, free: 11.27 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.899e-05/0.4403, allocations: 57.48 kB / 497.5 MB, free: 11.22 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * Number of states: 0 () * Number of discrete variables: 135 ($PRE.compositeStep.transition3.enableFire,$PRE.compositeStep.transition4.enableFire,$PRE.compositeStep.transition5.enableFire,$PRE.compositeStep.transition6.enableFire,$PRE.compositeStep.transition4a.enableFire,$PRE.compositeStep.transition6a.enableFire,$PRE.transition1.enableFire,$PRE.transition2.enableFire,$PRE.transition7.enableFire,$PRE.transition7.t_start,transition7.t_start,stateGraphRoot.resume,stateGraphRoot.suspend,transition2.condition,transition1.condition,compositeStep.resume[1].set,compositeStep.suspend[1].reset,compositeStep.transition6a.condition,compositeStep.transition4a.condition,compositeStep.transition6.condition,compositeStep.transition5.condition,compositeStep.transition4.condition,compositeStep.transition3.condition,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,compositeStep.active,$PRE.compositeStep.newActive,compositeStep.newActive,compositeStep.activeSteps,compositeStep.transition3.enableFire,compositeStep.transition3.fire,$PRE.compositeStep.transition3.t_start,compositeStep.transition3.t_start,compositeStep.transition4.enableFire,compositeStep.transition4.fire,$PRE.compositeStep.transition4.t_start,compositeStep.transition4.t_start,$PRE.compositeStep.step3.localActive,compositeStep.step3.localActive,$PRE.compositeStep.step3.newActive,compositeStep.step3.newActive,$PRE.compositeStep.step3.oldActive,compositeStep.step3.oldActive,compositeStep.step3.active,$PRE.compositeStep.step4.localActive,compositeStep.step4.localActive,$PRE.compositeStep.step4.newActive,compositeStep.step4.newActive,$PRE.compositeStep.step4.oldActive,compositeStep.step4.oldActive,compositeStep.step4.active,compositeStep.transition5.enableFire,compositeStep.transition5.fire,$PRE.compositeStep.transition5.t_start,compositeStep.transition5.t_start,compositeStep.transition6.enableFire,compositeStep.transition6.fire,$PRE.compositeStep.transition6.t_start,compositeStep.transition6.t_start,compositeStep.transition4a.enableFire,compositeStep.transition4a.fire,$PRE.compositeStep.transition4a.t_start,compositeStep.transition4a.t_start,$PRE.compositeStep.step4a.localActive,compositeStep.step4a.localActive,$PRE.compositeStep.step4a.newActive,compositeStep.step4a.newActive,$PRE.compositeStep.step4a.oldActive,compositeStep.step4a.oldActive,compositeStep.step4a.active,compositeStep.transition6a.enableFire,compositeStep.transition6a.fire,$PRE.compositeStep.transition6a.t_start,compositeStep.transition6a.t_start,$PRE.compositeStep.initStep.localActive,compositeStep.initStep.localActive,compositeStep.initStep.outPort[1].reset,$PRE.compositeStep.initStep.newActive,compositeStep.initStep.newActive,$PRE.compositeStep.initStep.oldActive,compositeStep.initStep.oldActive,compositeStep.initStep.active,$PRE.compositeStep.exitStep.localActive,compositeStep.exitStep.localActive,compositeStep.exitStep.inPort[1].set,$PRE.compositeStep.exitStep.newActive,compositeStep.exitStep.newActive,$PRE.compositeStep.exitStep.oldActive,compositeStep.exitStep.oldActive,compositeStep.exitStep.active,compositeStep.Alternative1.split[2].available,compositeStep.Alternative1.split[3].available,$PRE.step0.localActive,step0.localActive,$PRE.step0.newActive,step0.newActive,$PRE.step0.oldActive,step0.oldActive,step0.active,transition1.enableFire,transition1.fire,$PRE.transition1.t_start,transition1.t_start,$PRE.step1.localActive,step1.localActive,$PRE.step1.newActive,step1.newActive,$PRE.step1.oldActive,step1.oldActive,step1.active,transition2.enableFire,transition2.fire,$PRE.transition2.t_start,transition2.t_start,$PRE.step6.localActive,step6.localActive,$PRE.step6.newActive,step6.newActive,$PRE.step6.oldActive,step6.oldActive,step6.active,transition7.enableFire,Parallel1.inPort.occupied,Parallel1.outPort.available,setCondition.y,stateGraphRoot.activeSteps,compositeStep.stateGraphRoot.resume,compositeStep.stateGraphRoot.suspend) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (166): * Single equations (assignments): 166 * 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 0.0002003/0.4405, allocations: 210.1 kB / 497.7 MB, free: 11.02 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.978e-05/0.4406, allocations: 51.42 kB / 497.8 MB, free: 10.97 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001218/0.4418, allocations: 0.6505 MB / 498.4 MB, free: 10.49 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.056e-05/0.4419, allocations: 15.94 kB / 498.4 MB, free: 10.48 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.112e-06/0.4419, allocations: 0 / 498.4 MB, free: 10.48 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.051e-05/0.4419, allocations: 3.984 kB / 498.4 MB, free: 10.47 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00246/0.4444, allocations: 1.584 MB / 0.4883 GB, free: 8.973 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.839e-06/0.4444, allocations: 8 kB / 0.4883 GB, free: 8.965 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000283/0.4447, allocations: 73.23 kB / 0.4884 GB, free: 8.895 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.805e-06/0.4447, allocations: 4 kB / 0.4884 GB, free: 8.891 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.716e-05/0.4447, allocations: 7.984 kB / 0.4884 GB, free: 8.883 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.72e-06/0.4447, allocations: 4 kB / 0.4884 GB, free: 8.879 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.367e-06/0.4448, allocations: 4 kB / 0.4884 GB, free: 8.875 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0009879/0.4457, allocations: 0.7267 MB / 0.4891 GB, free: 8.129 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001108/0.4469, allocations: 1.094 MB / 0.4902 GB, free: 7.004 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.371e-05/0.4469, allocations: 132.4 kB / 0.4903 GB, free: 6.855 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.253e-05/0.447, allocations: 4 kB / 0.4903 GB, free: 6.852 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002859/0.4473, allocations: 35.97 kB / 0.4903 GB, free: 6.816 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002396/0.4476, allocations: 124.8 kB / 0.4905 GB, free: 6.695 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.044e-05/0.4477, allocations: 47.86 kB / 0.4905 GB, free: 6.648 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0001187/0.4478, allocations: 161.2 kB / 0.4907 GB, free: 6.492 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.00106/0.4488, allocations: 139.9 kB / 0.4908 GB, free: 6.355 MB / 362.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: 81 (transition7.t_start,compositeStep.transition4a.enableFire,compositeStep.transition4.enableFire,step6.localActive,transition2.enableFire,transition1.enableFire,step1.localActive,step0.localActive,compositeStep.exitStep.localActive,compositeStep.transition5.enableFire,compositeStep.transition6.enableFire,compositeStep.transition6a.enableFire,compositeStep.initStep.localActive,compositeStep.transition3.enableFire,compositeStep.step4a.localActive,compositeStep.step4.localActive,compositeStep.step3.localActive,$cse1,$cse2,$cse3,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,compositeStep.active,compositeStep.newActive,compositeStep.activeSteps,compositeStep.transition3.fire,compositeStep.transition3.t_start,compositeStep.transition4.fire,compositeStep.transition4.t_start,compositeStep.step3.newActive,compositeStep.step3.oldActive,compositeStep.step3.active,compositeStep.step4.newActive,compositeStep.step4.oldActive,compositeStep.step4.active,compositeStep.transition5.fire,compositeStep.transition5.t_start,compositeStep.transition6.fire,compositeStep.transition6.t_start,compositeStep.transition4a.fire,compositeStep.transition4a.t_start,compositeStep.step4a.newActive,compositeStep.step4a.oldActive,compositeStep.step4a.active,compositeStep.transition6a.fire,compositeStep.transition6a.t_start,compositeStep.initStep.outPort[1].reset,compositeStep.initStep.newActive,compositeStep.initStep.oldActive,compositeStep.initStep.active,compositeStep.exitStep.inPort[1].set,compositeStep.exitStep.newActive,compositeStep.exitStep.oldActive,compositeStep.exitStep.active,compositeStep.Alternative1.split[2].available,compositeStep.Alternative1.split[3].available,step0.newActive,step0.oldActive,step0.active,transition1.fire,transition1.t_start,step1.newActive,step1.oldActive,step1.active,transition2.fire,transition2.t_start,step6.newActive,step6.oldActive,step6.active,transition7.enableFire,Parallel1.inPort.occupied,Parallel1.outPort.available,setCondition.y,stateGraphRoot.activeSteps) * Number of discrete states: 10 (compositeStep.step3.newActive,compositeStep.step4.newActive,compositeStep.step4a.newActive,compositeStep.initStep.newActive,compositeStep.exitStep.newActive,compositeStep.newActive,step0.newActive,step1.newActive,step6.newActive,transition7.t_start) * Top-level inputs: 0 Notification: Strong component statistics for simulation (108): * Single equations (assignments): 91 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 17 * 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.0001957/0.449, allocations: 148.8 kB / 0.4909 GB, free: 6.195 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001094/0.4501, allocations: 0.7766 MB / 0.4917 GB, free: 5.422 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.4502, allocations: 3.938 kB / 0.4917 GB, free: 5.418 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005112/0.4507, allocations: 383.6 kB / 0.4921 GB, free: 5.039 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003491/0.451, allocations: 56.75 kB / 0.4921 GB, free: 4.988 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002206/0.4533, allocations: 1.069 MB / 0.4932 GB, free: 3.895 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007588/0.454, allocations: 1.06 MB / 0.4942 GB, free: 2.805 MB / 362.7 MB Notification: Performance of SimCode: time 2.7e-07/0.454, allocations: 0 / 0.4942 GB, free: 2.805 MB / 362.7 MB (rm -f Modelica_trunk_Modelica.StateGraph.Examples.ShowCompositeStep.pipe ; mkfifo Modelica_trunk_Modelica.StateGraph.Examples.ShowCompositeStep.pipe ; head -c 1048576 < Modelica_trunk_Modelica.StateGraph.Examples.ShowCompositeStep.pipe >> ../files/Modelica_trunk_Modelica.StateGraph.Examples.ShowCompositeStep.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.StateGraph.Examples.ShowCompositeStep_res.mat --tempDir=temp_Modelica_trunk_Modelica_StateGraph_Examples_ShowCompositeStep_fmu --startTime=0 --stopTime=15 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_StateGraph_Examples_ShowCompositeStep.fmu > Modelica_trunk_Modelica.StateGraph.Examples.ShowCompositeStep.pipe 2>&1)