Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.StateGraph.Examples.ExecutionPaths.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.ExecutionPaths,fileNamePrefix="Modelica_trunk_Modelica_StateGraph_Examples_ExecutionPaths",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.ExecutionPaths,fileNamePrefix="Modelica_trunk_Modelica_StateGraph_Examples_ExecutionPaths",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.001738/0.001738, allocations: 198.6 kB / 8.539 MB, free: 1.801 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.324 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009036/0.0009036, allocations: 88.61 kB / 286.3 MB, free: 5.324 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09247/0.09341, allocations: 56.89 MB / 343.2 MB, free: 8.594 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08028/0.1737, allocations: 51.47 MB / 394.7 MB, free: 5.078 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2044/0.3781, allocations: 77.41 MB / 472.1 MB, free: 14.09 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001592/0.3783, allocations: 63.86 kB / 472.2 MB, free: 14.07 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: 243 * Number of variables: 243 Notification: Performance of Generate backend data structure: time 0.02634/0.4047, allocations: 12.21 MB / 484.4 MB, free: 5.277 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.142e-05/0.4047, allocations: 8 kB / 484.4 MB, free: 5.27 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001824/0.4049, allocations: 94.88 kB / 484.5 MB, free: 5.176 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005127/0.4054, allocations: 442.2 kB / 484.9 MB, free: 4.777 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.799e-05/0.4055, allocations: 41.61 kB / 485 MB, free: 4.742 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001049/0.4056, allocations: 68 kB / 485 MB, free: 4.676 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001038/0.4066, allocations: 0.6387 MB / 485.7 MB, free: 4.266 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001182/0.4078, allocations: 0.8164 MB / 486.5 MB, free: 3.641 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.256e-05/0.4079, allocations: 0 / 486.5 MB, free: 3.641 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.354e-05/0.4079, allocations: 6.797 kB / 486.5 MB, free: 3.637 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.413e-05/0.408, allocations: 25.69 kB / 486.5 MB, free: 3.613 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002429/0.4104, allocations: 2.292 MB / 488.8 MB, free: 1.727 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006809/0.4111, allocations: 0.5629 MB / 489.4 MB, free: 1.301 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003346/0.4114, allocations: 307.8 kB / 489.7 MB, free: 1.102 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.563e-05/0.4115, allocations: 12.66 kB / 489.7 MB, free: 1.09 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004498/0.412, allocations: 396.2 kB / 490.1 MB, free: 0.7852 MB / 346.7 MB Notification: Performance of pre-optimization done (n=100): time 2.645e-06/0.412, allocations: 7.938 kB / 490.1 MB, free: 0.7773 MB / 346.7 MB Notification: Performance of matching and sorting (n=100): time 0.0008517/0.4128, allocations: 0.5047 MB / 490.6 MB, free: 380 kB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.842e-05/0.4129, allocations: 130 kB / 490.7 MB, free: 232 kB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002233/0.4131, allocations: 285.5 kB / 491 MB, free: 4 kB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001173/0.4133, allocations: 52.44 kB / 491 MB, free: 15.95 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002224/0.4135, allocations: 273.9 kB / 491.3 MB, free: 15.71 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002222/0.4137, allocations: 235.8 kB / 491.5 MB, free: 15.51 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.579e-05/0.4138, allocations: 0 / 491.5 MB, free: 15.51 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001692/0.4139, allocations: 371.2 kB / 491.9 MB, free: 15.16 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004684/0.4144, allocations: 236.5 kB / 492.1 MB, free: 15.02 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000573/0.415, allocations: 440.3 kB / 492.6 MB, free: 14.62 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005019/0.4155, allocations: 247 kB / 492.8 MB, free: 14.45 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.791e-06/0.4155, allocations: 5.781 kB / 492.8 MB, free: 14.45 MB / 362.7 MB Notification: Performance of matching and sorting (n=156) (initialization): time 0.001274/0.4168, allocations: 0.7474 MB / 493.5 MB, free: 13.85 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.921e-05/0.4168, allocations: 11.94 kB / 493.6 MB, free: 13.84 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.38e-05/0.4169, allocations: 4 kB / 493.6 MB, free: 13.83 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.352e-05/0.4169, allocations: 12.78 kB / 493.6 MB, free: 13.82 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004504/0.4174, allocations: 113.5 kB / 493.7 MB, free: 13.72 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.306e-05/0.4174, allocations: 23.92 kB / 493.7 MB, free: 13.7 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004107/0.4178, allocations: 47.67 kB / 493.8 MB, free: 13.65 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001099/0.4179, allocations: 53.73 kB / 493.8 MB, free: 13.61 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 26 * Number of states: 0 () * Number of discrete variables: 126 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,$PRE.transition3.enableFire,$PRE.transition4.enableFire,$PRE.transition5.enableFire,$PRE.transition6.enableFire,$PRE.transition7.enableFire,$PRE.transition4a.enableFire,$PRE.transition6a.enableFire,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$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,$PRE.step2.localActive,step2.localActive,step2.outPort[1].reset,$PRE.step2.newActive,step2.newActive,$PRE.step2.oldActive,step2.oldActive,step2.active,transition3.enableFire,transition3.fire,$PRE.transition3.t_start,transition3.t_start,transition4.enableFire,transition4.fire,$PRE.transition4.t_start,transition4.t_start,$PRE.step3.localActive,step3.localActive,$PRE.step3.newActive,step3.newActive,$PRE.step3.oldActive,step3.oldActive,step3.active,$PRE.step4.localActive,step4.localActive,$PRE.step4.newActive,step4.newActive,$PRE.step4.oldActive,step4.oldActive,step4.active,transition5.enableFire,transition5.fire,$PRE.transition5.t_start,transition5.t_start,transition6.enableFire,transition6.fire,$PRE.transition6.t_start,transition6.t_start,$PRE.step5.localActive,step5.localActive,step5.inPort[1].set,$PRE.step5.newActive,step5.newActive,$PRE.step5.oldActive,step5.oldActive,step5.active,transition7.enableFire,setCondition.y,transition4a.enableFire,transition4a.fire,$PRE.transition4a.t_start,transition4a.t_start,$PRE.step4a.localActive,step4a.localActive,$PRE.step4a.newActive,step4a.newActive,$PRE.step4a.oldActive,step4a.oldActive,step4a.active,transition6a.enableFire,transition6a.fire,$PRE.transition6a.t_start,transition6a.t_start,alternative.split[2].available,alternative.split[3].available,Parallel1.inPort.occupied,Parallel1.outPort.available,stateGraphRoot.activeSteps,$PRE.transition7.t_start,transition7.t_start,stateGraphRoot.resume,stateGraphRoot.suspend,transition6a.condition,transition4a.condition,transition6.condition,transition5.condition,transition4.condition,transition3.condition,transition2.condition,transition1.condition) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (156): * Single equations (assignments): 156 * 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.0002414/0.4182, allocations: 185.5 kB / 494 MB, free: 13.42 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.519e-05/0.4183, allocations: 48.06 kB / 494 MB, free: 13.38 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001238/0.4195, allocations: 0.6288 MB / 494.7 MB, free: 12.9 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.31e-05/0.4196, allocations: 11.91 kB / 494.7 MB, free: 12.89 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.636e-06/0.4196, allocations: 4 kB / 494.7 MB, free: 12.89 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.205e-05/0.4196, allocations: 11.91 kB / 494.7 MB, free: 12.88 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002399/0.422, allocations: 1.435 MB / 496.1 MB, free: 11.71 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.727e-06/0.422, allocations: 0 / 496.1 MB, free: 11.71 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002854/0.4223, allocations: 67.22 kB / 496.2 MB, free: 11.65 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.476e-06/0.4223, allocations: 4 kB / 496.2 MB, free: 11.64 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.44e-05/0.4224, allocations: 21.02 kB / 496.2 MB, free: 11.63 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.31e-06/0.4224, allocations: 4 kB / 496.2 MB, free: 11.62 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.879e-06/0.4224, allocations: 7.922 kB / 496.2 MB, free: 11.62 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001029/0.4234, allocations: 0.7077 MB / 496.9 MB, free: 11.01 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.00114/0.4246, allocations: 1.084 MB / 498 MB, free: 10.02 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.777e-05/0.4247, allocations: 132.3 kB / 498.2 MB, free: 9.871 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.117e-05/0.4248, allocations: 19.28 kB / 498.2 MB, free: 9.855 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002383/0.425, allocations: 31.91 kB / 498.2 MB, free: 9.824 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000188/0.4252, allocations: 95.84 kB / 498.3 MB, free: 9.746 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.999e-05/0.4253, allocations: 33.17 kB / 498.3 MB, free: 9.719 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0001078/0.4254, allocations: 144.8 kB / 498.5 MB, free: 9.594 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001196/0.4266, allocations: 131.1 kB / 498.6 MB, free: 9.469 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 85 (transition7.t_start,transition4a.enableFire,transition4.enableFire,transition6a.enableFire,step4a.localActive,transition2.enableFire,step5.localActive,transition5.enableFire,transition6.enableFire,step4.localActive,step3.localActive,transition3.enableFire,transition1.enableFire,step2.localActive,step6.localActive,step1.localActive,step0.localActive,$cse1,$cse2,$cse3,$cse4,$cse5,$cse6,$cse7,$cse8,$cse9,$cse10,$cse11,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,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,step2.outPort[1].reset,step2.newActive,step2.oldActive,step2.active,transition3.fire,transition3.t_start,transition4.fire,transition4.t_start,step3.newActive,step3.oldActive,step3.active,step4.newActive,step4.oldActive,step4.active,transition5.fire,transition5.t_start,transition6.fire,transition6.t_start,step5.inPort[1].set,step5.newActive,step5.oldActive,step5.active,transition7.enableFire,setCondition.y,transition4a.fire,transition4a.t_start,step4a.newActive,step4a.oldActive,step4a.active,transition6a.fire,transition6a.t_start,alternative.split[2].available,alternative.split[3].available,Parallel1.inPort.occupied,Parallel1.outPort.available,stateGraphRoot.activeSteps) * Number of discrete states: 9 (step0.newActive,step1.newActive,step6.newActive,step2.newActive,step3.newActive,step4.newActive,step5.newActive,step4a.newActive,transition7.t_start) * Top-level inputs: 0 Notification: Strong component statistics for simulation (111): * Single equations (assignments): 94 * 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.0002127/0.4268, allocations: 153.7 kB / 498.7 MB, free: 9.316 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0009089/0.4277, allocations: 0.6773 MB / 499.4 MB, free: 8.824 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.4277, allocations: 0 / 499.4 MB, free: 8.824 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004481/0.4282, allocations: 367.1 kB / 499.8 MB, free: 8.566 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003491/0.4286, allocations: 47.84 kB / 499.8 MB, free: 8.531 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001564/0.4301, allocations: 0.8972 MB / 0.489 GB, free: 7.734 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007029/0.4308, allocations: 1.038 MB / 0.49 GB, free: 6.68 MB / 362.7 MB Notification: Performance of SimCode: time 4.61e-07/0.4309, allocations: 2.531 kB / 0.49 GB, free: 6.68 MB / 362.7 MB (rm -f Modelica_trunk_Modelica.StateGraph.Examples.ExecutionPaths.pipe ; mkfifo Modelica_trunk_Modelica.StateGraph.Examples.ExecutionPaths.pipe ; head -c 1048576 < Modelica_trunk_Modelica.StateGraph.Examples.ExecutionPaths.pipe >> ../files/Modelica_trunk_Modelica.StateGraph.Examples.ExecutionPaths.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.StateGraph.Examples.ExecutionPaths_res.mat --tempDir=temp_Modelica_trunk_Modelica_StateGraph_Examples_ExecutionPaths_fmu --startTime=0 --stopTime=15.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_StateGraph_Examples_ExecutionPaths.fmu > Modelica_trunk_Modelica.StateGraph.Examples.ExecutionPaths.pipe 2>&1)