Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.StateGraph.Examples.ExecutionPaths.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.StateGraph.Examples.ExecutionPaths,fileNamePrefix="Modelica_3_2_3_Modelica_StateGraph_Examples_ExecutionPaths",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.ExecutionPaths,fileNamePrefix="Modelica_3_2_3_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 3.2.3+maint.om/package.mo): time 0.001173/0.001173, allocations: 179.6 kB / 8.48 MB, free: 1.867 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.161/1.161, allocations: 205.2 MB / 214.1 MB, free: 5.453 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008781/0.0008781, allocations: 83.33 kB / 262.1 MB, free: 5.516 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2778/0.2787, allocations: 52.96 MB / 315 MB, free: 41.47 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06237/0.3411, allocations: 47.57 MB / 362.6 MB, free: 9.941 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1965/0.5376, allocations: 75.62 MB / 438.2 MB, free: 10.94 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001874/0.5378, allocations: 64.23 kB / 438.3 MB, free: 10.94 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 241 * Number of variables: 241 Notification: Performance of Generate backend data structure: time 0.02602/0.5639, allocations: 11.88 MB / 450.2 MB, free: 7.859 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.424e-05/0.5639, allocations: 7.469 kB / 450.2 MB, free: 7.859 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002492/0.5642, allocations: 92.75 kB / 450.3 MB, free: 7.816 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005838/0.5648, allocations: 434.4 kB / 450.7 MB, free: 7.512 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.472e-05/0.5648, allocations: 44.23 kB / 450.7 MB, free: 7.508 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000129/0.565, allocations: 64.97 kB / 450.8 MB, free: 7.508 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001047/0.566, allocations: 0.6404 MB / 451.5 MB, free: 7.453 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001126/0.5672, allocations: 0.81 MB / 452.3 MB, free: 7.215 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.153e-05/0.5672, allocations: 0 / 452.3 MB, free: 7.215 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.602e-05/0.5673, allocations: 7.672 kB / 452.3 MB, free: 7.211 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.938e-05/0.5673, allocations: 22.44 kB / 452.3 MB, free: 7.211 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002461/0.5698, allocations: 2.198 MB / 454.5 MB, free: 5.945 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006351/0.5704, allocations: 0.5436 MB / 455 MB, free: 5.855 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003142/0.5707, allocations: 303.6 kB / 455.3 MB, free: 5.828 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.866e-05/0.5708, allocations: 19.89 kB / 455.3 MB, free: 5.82 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004359/0.5713, allocations: 384.8 kB / 455.7 MB, free: 5.676 MB / 314.7 MB Notification: Performance of pre-optimization done (n=99): time 2.535e-06/0.5713, allocations: 0 / 455.7 MB, free: 5.676 MB / 314.7 MB Notification: Performance of matching and sorting (n=99): time 0.0007594/0.572, allocations: 0.5038 MB / 456.2 MB, free: 5.555 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.406e-05/0.5721, allocations: 100.9 kB / 456.3 MB, free: 5.453 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001941/0.5723, allocations: 284.5 kB / 456.6 MB, free: 5.293 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 7.944e-05/0.5724, allocations: 51.75 kB / 456.7 MB, free: 5.258 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001223/0.5725, allocations: 287 kB / 456.9 MB, free: 5.059 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001487/0.5726, allocations: 233.8 kB / 457.2 MB, free: 4.91 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.341e-05/0.5727, allocations: 3.875 kB / 457.2 MB, free: 4.91 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.387e-05/0.5728, allocations: 361.3 kB / 457.5 MB, free: 4.582 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003249/0.5731, allocations: 232.2 kB / 457.7 MB, free: 4.57 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003814/0.5735, allocations: 442.6 kB / 458.2 MB, free: 4.332 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004109/0.5739, allocations: 241.1 kB / 458.4 MB, free: 4.277 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.589e-06/0.5739, allocations: 1.25 kB / 458.4 MB, free: 4.277 MB / 314.7 MB Notification: Performance of matching and sorting (n=154) (initialization): time 0.001038/0.575, allocations: 0.7365 MB / 459.2 MB, free: 4.098 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.513e-05/0.575, allocations: 11.67 kB / 459.2 MB, free: 4.094 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.178e-05/0.575, allocations: 4.594 kB / 459.2 MB, free: 4.094 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.938e-05/0.575, allocations: 11.5 kB / 459.2 MB, free: 4.094 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003865/0.5754, allocations: 126.2 kB / 459.3 MB, free: 4.051 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.667e-05/0.5754, allocations: 11.09 kB / 459.3 MB, free: 4.051 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003538/0.5758, allocations: 50.41 kB / 459.4 MB, free: 4.027 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.454e-05/0.5759, allocations: 47.92 kB / 459.4 MB, free: 4.023 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 124 ($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,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 (154): * Single equations (assignments): 154 * 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.0001711/0.5761, allocations: 187.2 kB / 459.6 MB, free: 3.867 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.715e-05/0.5762, allocations: 54 kB / 459.6 MB, free: 3.836 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001049/0.5772, allocations: 0.6288 MB / 460.3 MB, free: 3.668 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.247e-06/0.5772, allocations: 11.5 kB / 460.3 MB, free: 3.668 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.412e-06/0.5772, allocations: 3.906 kB / 460.3 MB, free: 3.664 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.05e-05/0.5773, allocations: 3.984 kB / 460.3 MB, free: 3.66 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002383/0.5796, allocations: 1.437 MB / 461.7 MB, free: 3.062 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.198e-06/0.5797, allocations: 1.344 kB / 461.7 MB, free: 3.062 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000265/0.5799, allocations: 75.45 kB / 461.8 MB, free: 3.039 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.155e-05/0.5799, allocations: 4 kB / 461.8 MB, free: 3.039 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.962e-05/0.58, allocations: 7.953 kB / 461.8 MB, free: 3.035 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.821e-06/0.58, allocations: 4.75 kB / 461.8 MB, free: 3.035 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.534e-06/0.58, allocations: 3.906 kB / 461.8 MB, free: 3.031 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0009776/0.581, allocations: 0.6888 MB / 462.5 MB, free: 2.766 MB / 314.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0009613/0.582, allocations: 1.066 MB / 463.6 MB, free: 2.125 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.797e-05/0.582, allocations: 121 kB / 463.7 MB, free: 2.004 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.245e-05/0.5821, allocations: 10.84 kB / 463.7 MB, free: 2 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002335/0.5824, allocations: 30.66 kB / 463.7 MB, free: 1.988 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001749/0.5825, allocations: 97.52 kB / 463.8 MB, free: 1.945 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.779e-05/0.5826, allocations: 34.52 kB / 463.9 MB, free: 1.941 MB / 314.7 MB Notification: Performance of sort global known variables: time 8.49e-05/0.5827, allocations: 146 kB / 464 MB, free: 1.852 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.00109/0.5838, allocations: 126.9 kB / 464.1 MB, free: 1.848 MB / 314.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: 84 (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: 8 (step0.newActive,step1.newActive,step6.newActive,step2.newActive,step3.newActive,step4.newActive,step5.newActive,step4a.newActive) * Top-level inputs: 0 Notification: Strong component statistics for simulation (110): * Single equations (assignments): 94 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 16 * 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.0001948/0.584, allocations: 152 kB / 464.3 MB, free: 1.73 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0009277/0.5849, allocations: 0.6746 MB / 465 MB, free: 1.672 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.5849, allocations: 4.125 kB / 465 MB, free: 1.668 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005963/0.5855, allocations: 356.5 kB / 465.3 MB, free: 1.641 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003467/0.5859, allocations: 53.03 kB / 465.4 MB, free: 1.629 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001604/0.5875, allocations: 0.8847 MB / 466.2 MB, free: 1.289 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005632/0.5881, allocations: 1.04 MB / 467.3 MB, free: 468 kB / 314.7 MB Notification: Performance of SimCode: time 2.81e-07/0.5881, allocations: 0 / 467.3 MB, free: 468 kB / 314.7 MB (rm -f Modelica_3.2.3_Modelica.StateGraph.Examples.ExecutionPaths.pipe ; mkfifo Modelica_3.2.3_Modelica.StateGraph.Examples.ExecutionPaths.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.StateGraph.Examples.ExecutionPaths.pipe >> ../files/Modelica_3.2.3_Modelica.StateGraph.Examples.ExecutionPaths.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.StateGraph.Examples.ExecutionPaths_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_StateGraph_Examples_ExecutionPaths_fmu --startTime=0 --stopTime=15 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_StateGraph_Examples_ExecutionPaths.fmu > Modelica_3.2.3_Modelica.StateGraph.Examples.ExecutionPaths.pipe 2>&1)