Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.StateGraph.Examples.ExecutionPaths.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.StateGraph.Examples.ExecutionPaths,fileNamePrefix="Modelica_4_0_0_Modelica_StateGraph_Examples_ExecutionPaths",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.ExecutionPaths,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.0009402/0.00094, allocations: 183.4 kB / 8.13 MB, free: 2.219 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.063/1.063, allocations: 221.4 MB / 229.9 MB, free: 3.023 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008346/0.0008346, allocations: 92.36 kB / 280.8 MB, free: 1.258 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08883/0.0897, allocations: 55.81 MB / 336.6 MB, free: 9.441 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1811/0.2708, allocations: 50.39 MB / 387 MB, free: 37.98 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.07761/0.3484, allocations: 76.6 MB / 463.6 MB, free: 10.18 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001821/0.3487, allocations: 67.91 kB / 463.7 MB, free: 10.11 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.02878/0.3775, allocations: 12.22 MB / 475.9 MB, free: 13.77 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.298e-05/0.3775, allocations: 8 kB / 475.9 MB, free: 13.76 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000158/0.3777, allocations: 98.88 kB / 476 MB, free: 13.66 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005654/0.3782, allocations: 450.2 kB / 476.4 MB, free: 13.18 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.612e-05/0.3783, allocations: 47.89 kB / 476.5 MB, free: 13.14 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001008/0.3784, allocations: 64 kB / 476.5 MB, free: 13.07 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001088/0.3795, allocations: 0.6404 MB / 477.2 MB, free: 12.43 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00125/0.3808, allocations: 0.8136 MB / 478 MB, free: 11.59 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.974e-05/0.3808, allocations: 4 kB / 478 MB, free: 11.59 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.6e-05/0.3809, allocations: 7.984 kB / 478 MB, free: 11.58 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.084e-05/0.3809, allocations: 24 kB / 478 MB, free: 11.56 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002651/0.3835, allocations: 2.283 MB / 480.3 MB, free: 9.215 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007658/0.3843, allocations: 0.5744 MB / 480.9 MB, free: 8.613 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004069/0.3847, allocations: 304.9 kB / 481.2 MB, free: 8.309 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.937e-05/0.3848, allocations: 24.69 kB / 481.2 MB, free: 8.281 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005107/0.3853, allocations: 396.8 kB / 481.6 MB, free: 7.875 MB / 362.7 MB Notification: Performance of pre-optimization done (n=100): time 2.575e-06/0.3853, allocations: 0 / 481.6 MB, free: 7.875 MB / 362.7 MB Notification: Performance of matching and sorting (n=100): time 0.0008628/0.3862, allocations: 0.5098 MB / 482.1 MB, free: 7.355 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.048e-05/0.3863, allocations: 123.6 kB / 482.2 MB, free: 7.211 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002334/0.3865, allocations: 291.5 kB / 482.5 MB, free: 6.914 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 7.845e-05/0.3866, allocations: 53.62 kB / 482.5 MB, free: 6.855 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001903/0.3868, allocations: 281.1 kB / 482.8 MB, free: 6.574 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001968/0.387, allocations: 229 kB / 483 MB, free: 6.348 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.152e-05/0.3871, allocations: 0 / 483 MB, free: 6.348 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001507/0.3872, allocations: 370.7 kB / 483.4 MB, free: 5.977 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003894/0.3876, allocations: 230.6 kB / 483.6 MB, free: 5.75 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005292/0.3881, allocations: 450.1 kB / 484.1 MB, free: 5.23 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004399/0.3886, allocations: 242.2 kB / 484.3 MB, free: 4.996 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.547e-06/0.3886, allocations: 4 kB / 484.3 MB, free: 4.992 MB / 362.7 MB Notification: Performance of matching and sorting (n=156) (initialization): time 0.001149/0.3898, allocations: 0.7478 MB / 485.1 MB, free: 4.238 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.4e-05/0.3898, allocations: 7.938 kB / 485.1 MB, free: 4.23 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.18e-05/0.3898, allocations: 8 kB / 485.1 MB, free: 4.223 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.579e-05/0.3898, allocations: 12 kB / 485.1 MB, free: 4.211 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004035/0.3903, allocations: 115.7 kB / 485.2 MB, free: 4.098 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.86e-05/0.3903, allocations: 19.92 kB / 485.2 MB, free: 4.078 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003191/0.3906, allocations: 47.92 kB / 485.3 MB, free: 4.031 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.81e-05/0.3907, allocations: 55.92 kB / 485.3 MB, free: 3.977 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.0002251/0.3909, allocations: 186.9 kB / 485.5 MB, free: 3.781 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.407e-05/0.391, allocations: 51.34 kB / 485.6 MB, free: 3.73 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00119/0.3922, allocations: 0.6227 MB / 486.2 MB, free: 3.105 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.286e-05/0.3922, allocations: 12 kB / 486.2 MB, free: 3.094 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.394e-06/0.3922, allocations: 3.906 kB / 486.2 MB, free: 3.09 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.195e-05/0.3923, allocations: 11.97 kB / 486.2 MB, free: 3.078 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002414/0.3947, allocations: 1.438 MB / 487.6 MB, free: 1.594 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.298e-06/0.3947, allocations: 0 / 487.6 MB, free: 1.594 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002711/0.395, allocations: 75.84 kB / 487.7 MB, free: 1.52 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.268e-06/0.395, allocations: 4 kB / 487.7 MB, free: 1.516 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.988e-05/0.395, allocations: 7.984 kB / 487.7 MB, free: 1.508 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.312e-06/0.3951, allocations: 7.906 kB / 487.7 MB, free: 1.5 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.825e-06/0.3951, allocations: 0 / 487.7 MB, free: 1.5 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001041/0.3961, allocations: 0.7136 MB / 488.4 MB, free: 0.7539 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001199/0.3973, allocations: 1.089 MB / 489.5 MB, free: 15.62 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.739e-05/0.3974, allocations: 128.3 kB / 489.7 MB, free: 15.48 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.358e-05/0.3975, allocations: 7.984 kB / 489.7 MB, free: 15.47 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002344/0.3977, allocations: 35.97 kB / 489.7 MB, free: 15.44 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001976/0.3979, allocations: 96.78 kB / 489.8 MB, free: 15.34 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.01e-05/0.398, allocations: 35.92 kB / 489.8 MB, free: 15.31 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0001117/0.3981, allocations: 144.5 kB / 490 MB, free: 15.17 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001072/0.3992, allocations: 131.9 kB / 490.1 MB, free: 15.04 MB / 378.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.0002344/0.3995, allocations: 154 kB / 490.3 MB, free: 14.88 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0009809/0.4004, allocations: 0.6827 MB / 490.9 MB, free: 14.2 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.4005, allocations: 192 / 490.9 MB, free: 14.2 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004668/0.4009, allocations: 363.6 kB / 491.3 MB, free: 13.85 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003437/0.4013, allocations: 48.41 kB / 491.3 MB, free: 13.8 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001544/0.4028, allocations: 0.9033 MB / 492.2 MB, free: 12.86 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006946/0.4035, allocations: 1.044 MB / 493.3 MB, free: 11.79 MB / 378.7 MB Notification: Performance of SimCode: time 2.71e-07/0.4036, allocations: 0 / 493.3 MB, free: 11.79 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.StateGraph.Examples.ExecutionPaths.pipe ; mkfifo Modelica_4.0.0_Modelica.StateGraph.Examples.ExecutionPaths.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.StateGraph.Examples.ExecutionPaths.pipe >> ../files/Modelica_4.0.0_Modelica.StateGraph.Examples.ExecutionPaths.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.StateGraph.Examples.ExecutionPaths_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_StateGraph_Examples_ExecutionPaths_fmu --startTime=0 --stopTime=15.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_StateGraph_Examples_ExecutionPaths.fmu > Modelica_4.0.0_Modelica.StateGraph.Examples.ExecutionPaths.pipe 2>&1)