Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_Modelica_StateGraph_Examples_ExecutionPaths",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.ExecutionPaths,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_StateGraph_Examples_ExecutionPaths",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001564/0.001564, allocations: 186.5 kB / 16.41 MB, free: 5.727 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.989/1.989, allocations: 205.4 MB / 222.5 MB, free: 9.137 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001138/0.001138, allocations: 100.6 kB / 270.9 MB, free: 8.395 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006008/0.0006008, allocations: 8 kB / 327 MB, free: 152 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3386/0.3393, allocations: 47.57 MB / 374.6 MB, free: 45.31 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1234/0.4627, allocations: 76.44 MB / 451.1 MB, free: 4.234 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002652/0.463, allocations: 75.97 kB / 451.1 MB, free: 4.16 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06864/0.5317, allocations: 11.6 MB / 462.7 MB, free: 8.492 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.686e-06/0.5317, allocations: 3.938 kB / 462.7 MB, free: 8.488 MB / 346.7 MB Notification: Performance of Transformations before backend: time 8.806e-05/0.5318, allocations: 27.94 kB / 462.8 MB, free: 8.461 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: 241 * Number of variables: 241 Notification: Performance of Generate backend data structure: time 0.003619/0.5355, allocations: 0.9251 MB / 463.7 MB, free: 7.453 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.718e-05/0.5356, allocations: 8.031 kB / 463.7 MB, free: 7.445 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005629/0.5361, allocations: 152 kB / 463.9 MB, free: 7.289 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004304/0.5366, allocations: 90.97 kB / 463.9 MB, free: 7.199 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001445/0.5381, allocations: 438.6 kB / 464.4 MB, free: 6.73 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001998/0.5383, allocations: 85.95 kB / 464.5 MB, free: 6.648 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003541/0.5387, allocations: 116 kB / 464.6 MB, free: 6.535 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003991/0.5427, allocations: 0.9416 MB / 465.5 MB, free: 5.566 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.464e-05/0.5428, allocations: 3.938 kB / 465.5 MB, free: 5.562 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001819/0.543, allocations: 43.98 kB / 465.6 MB, free: 5.52 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.938e-05/0.5431, allocations: 20 kB / 465.6 MB, free: 5.5 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003449/0.5465, allocations: 0.7105 MB / 466.3 MB, free: 4.789 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008354/0.5549, allocations: 2.38 MB / 468.7 MB, free: 2.332 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002523/0.5575, allocations: 0.6765 MB / 469.3 MB, free: 1.641 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001569/0.5577, allocations: 14.33 kB / 469.4 MB, free: 1.629 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001568/0.5593, allocations: 429.8 kB / 469.8 MB, free: 1.191 MB / 346.7 MB Notification: Performance of pre-optimization done (n=99): time 8.516e-06/0.5594, allocations: 0 / 469.8 MB, free: 1.191 MB / 346.7 MB Notification: Performance of matching and sorting (n=99): time 0.003576/0.563, allocations: 0.8396 MB / 470.6 MB, free: 356 kB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001302/0.5632, allocations: 102.1 kB / 470.7 MB, free: 232 kB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007591/0.5639, allocations: 303.2 kB / 471 MB, free: 15.92 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002807/0.5642, allocations: 69.69 kB / 471.1 MB, free: 15.85 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000546/0.5648, allocations: 363.5 kB / 471.4 MB, free: 15.49 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000579/0.5654, allocations: 241.1 kB / 471.7 MB, free: 15.25 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001293/0.5656, allocations: 27.94 kB / 471.7 MB, free: 15.22 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002947/0.5659, allocations: 358.8 kB / 472 MB, free: 14.86 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001289/0.5672, allocations: 262.5 kB / 472.3 MB, free: 14.61 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001699/0.5689, allocations: 476.3 kB / 472.8 MB, free: 14.06 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003078/0.5721, allocations: 282.3 kB / 473 MB, free: 13.79 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.566e-05/0.5721, allocations: 0 / 473 MB, free: 13.79 MB / 362.7 MB Notification: Performance of matching and sorting (n=154) (initialization): time 0.003267/0.5754, allocations: 0.8591 MB / 473.9 MB, free: 12.93 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.341e-05/0.5755, allocations: 8 kB / 473.9 MB, free: 12.92 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.17e-05/0.5756, allocations: 4 kB / 473.9 MB, free: 12.91 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.704e-05/0.5756, allocations: 12.75 kB / 473.9 MB, free: 12.9 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001039/0.5767, allocations: 107.7 kB / 474 MB, free: 12.8 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.81e-05/0.5768, allocations: 23.92 kB / 474.1 MB, free: 12.77 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008427/0.5776, allocations: 71.67 kB / 474.1 MB, free: 12.7 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001794/0.5778, allocations: 47.98 kB / 474.2 MB, free: 12.66 MB / 362.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 () * Number of clocked 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.0009149/0.5787, allocations: 307.5 kB / 474.5 MB, free: 12.34 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002198/0.579, allocations: 51.39 kB / 474.5 MB, free: 12.29 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002933/0.5819, allocations: 0.7495 MB / 475.3 MB, free: 11.54 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.445e-05/0.582, allocations: 8 kB / 475.3 MB, free: 11.53 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.198e-05/0.582, allocations: 4 kB / 475.3 MB, free: 11.52 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.437e-05/0.5821, allocations: 11.97 kB / 475.3 MB, free: 11.51 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005852/0.5879, allocations: 1.664 MB / 477 MB, free: 9.793 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.327e-05/0.588, allocations: 4 kB / 477 MB, free: 9.789 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006972/0.5887, allocations: 67.78 kB / 477 MB, free: 9.723 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.107e-05/0.5888, allocations: 4 kB / 477 MB, free: 9.719 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001049/0.5889, allocations: 31.88 kB / 477.1 MB, free: 9.688 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.432e-05/0.5889, allocations: 4 kB / 477.1 MB, free: 9.684 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.631e-06/0.5889, allocations: 4 kB / 477.1 MB, free: 9.68 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002458/0.5914, allocations: 0.7912 MB / 477.9 MB, free: 8.863 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001838/0.5916, allocations: 124.5 kB / 478 MB, free: 8.723 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001515/0.5918, allocations: 19.95 kB / 478 MB, free: 8.703 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005651/0.5924, allocations: 43.97 kB / 478 MB, free: 8.66 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004499/0.5928, allocations: 100.8 kB / 478.1 MB, free: 8.562 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001228/0.593, allocations: 35.98 kB / 478.2 MB, free: 8.527 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002878/0.5933, allocations: 156.5 kB / 478.3 MB, free: 8.375 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.91e-07/0.5933, allocations: 3.938 kB / 478.3 MB, free: 8.371 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001345/0.5947, allocations: 171.8 kB / 478.5 MB, free: 8.203 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: 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) * Number of clocked states: 0 () * 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.00324/0.5979, allocations: 1.476 MB / 480 MB, free: 6.691 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.00285/0.6008, allocations: 0.7404 MB / 480.7 MB, free: 5.953 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.833e-06/0.6009, allocations: 9.438 kB / 480.7 MB, free: 5.945 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001321/0.6022, allocations: 369.6 kB / 481.1 MB, free: 5.586 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008526/0.6031, allocations: 72.45 kB / 481.2 MB, free: 5.516 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01262/0.6157, allocations: 6.914 MB / 488.1 MB, free: 14.44 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009531/0.6168, allocations: 0.9549 MB / 489 MB, free: 13.46 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000739/0.6175, allocations: 267.3 kB / 489.3 MB, free: 13.2 MB / 378.7 MB Notification: Performance of SimCode: time 1.502e-06/0.6175, allocations: 0 / 489.3 MB, free: 13.2 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.729/3.347, allocations: 11.18 MB / 0.4887 GB, free: 1.992 MB / 378.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.ExecutionPaths.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.ExecutionPaths.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.ExecutionPaths.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.ExecutionPaths.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.ExecutionPaths_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_StateGraph_Examples_ExecutionPaths_fmu --startTime=0 --stopTime=15 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_StateGraph_Examples_ExecutionPaths.fmu > Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.ExecutionPaths.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.ExecutionPaths_res.mat does not exist to compare? outputFormat=mat