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.001576/0.001575, allocations: 181.6 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.108/2.108, allocations: 205.2 MB / 219.4 MB, free: 14.22 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.00122/0.00122, allocations: 82.66 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.537e-05/3.54e-05, allocations: 0 / 321.6 MB, free: 17.76 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09649/0.09656, allocations: 47.57 MB / 369.2 MB, free: 2.117 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4472/0.5438, allocations: 76.35 MB / 445.5 MB, free: 0.8203 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002147/0.5441, allocations: 64.59 kB / 445.6 MB, free: 0.7891 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05009/0.5942, allocations: 11.57 MB / 457.1 MB, free: 6.824 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.254e-06/0.5942, allocations: 0 / 457.1 MB, free: 6.824 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.000109/0.5943, allocations: 31.92 kB / 457.2 MB, free: 6.793 MB / 330.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.002457/0.5968, allocations: 0.9025 MB / 458.1 MB, free: 5.875 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.412e-05/0.5969, allocations: 8.031 kB / 458.1 MB, free: 5.867 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003572/0.5973, allocations: 150.8 kB / 458.2 MB, free: 5.77 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000273/0.5975, allocations: 94.97 kB / 458.3 MB, free: 5.676 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001035/0.5986, allocations: 444.3 kB / 458.8 MB, free: 5.273 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001269/0.5987, allocations: 84.83 kB / 458.8 MB, free: 5.227 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002257/0.599, allocations: 116.5 kB / 459 MB, free: 5.148 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002675/0.6017, allocations: 0.9291 MB / 459.9 MB, free: 4.219 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.883e-05/0.6018, allocations: 0 / 459.9 MB, free: 4.219 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001234/0.6019, allocations: 36 kB / 459.9 MB, free: 4.184 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.448e-05/0.6019, allocations: 24 kB / 459.9 MB, free: 4.16 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002329/0.6043, allocations: 0.695 MB / 460.6 MB, free: 3.465 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006133/0.6105, allocations: 2.392 MB / 463 MB, free: 0.9922 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001668/0.6122, allocations: 0.6485 MB / 463.7 MB, free: 324 kB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000861/0.6131, allocations: 332.1 kB / 464 MB, free: 15.98 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001108/0.6132, allocations: 14.09 kB / 464 MB, free: 15.97 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00105/0.6143, allocations: 421 kB / 464.4 MB, free: 15.54 MB / 346.7 MB Notification: Performance of pre-optimization done (n=99): time 7.584e-06/0.6143, allocations: 3.984 kB / 464.4 MB, free: 15.54 MB / 346.7 MB Notification: Performance of matching and sorting (n=99): time 0.001766/0.6161, allocations: 0.6012 MB / 465 MB, free: 14.93 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.547e-05/0.6162, allocations: 97.88 kB / 465.1 MB, free: 14.81 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005219/0.6168, allocations: 292.2 kB / 465.4 MB, free: 14.52 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000215/0.617, allocations: 73.69 kB / 465.5 MB, free: 14.45 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003713/0.6174, allocations: 363.4 kB / 465.8 MB, free: 14.09 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000352/0.6177, allocations: 244.9 kB / 466.1 MB, free: 13.84 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.878e-05/0.6178, allocations: 28 kB / 466.1 MB, free: 13.82 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002073/0.618, allocations: 358.8 kB / 466.5 MB, free: 13.46 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008596/0.6189, allocations: 254.6 kB / 466.7 MB, free: 13.21 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001045/0.62, allocations: 471.7 kB / 467.2 MB, free: 12.67 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008235/0.6208, allocations: 264.9 kB / 467.4 MB, free: 12.41 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.163e-05/0.6209, allocations: 4 kB / 467.4 MB, free: 12.41 MB / 346.7 MB Notification: Performance of matching and sorting (n=154) (initialization): time 0.002265/0.6231, allocations: 0.8357 MB / 468.3 MB, free: 11.57 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.71e-05/0.6232, allocations: 8 kB / 468.3 MB, free: 11.56 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.638e-05/0.6232, allocations: 4.75 kB / 468.3 MB, free: 11.55 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.783e-05/0.6233, allocations: 12 kB / 468.3 MB, free: 11.54 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008233/0.6241, allocations: 123.7 kB / 468.4 MB, free: 11.42 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.374e-05/0.6242, allocations: 15.94 kB / 468.4 MB, free: 11.41 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005988/0.6248, allocations: 63.73 kB / 468.5 MB, free: 11.34 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001403/0.625, allocations: 47.98 kB / 468.5 MB, free: 11.3 MB / 346.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.0003618/0.6253, allocations: 218.7 kB / 468.8 MB, free: 11.07 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001486/0.6255, allocations: 51.39 kB / 468.8 MB, free: 11.02 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002021/0.6275, allocations: 0.7299 MB / 469.5 MB, free: 10.29 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.251e-05/0.6276, allocations: 8 kB / 469.5 MB, free: 10.28 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.136e-05/0.6276, allocations: 11.94 kB / 469.6 MB, free: 10.27 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.692e-05/0.6277, allocations: 3.984 kB / 469.6 MB, free: 10.27 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004557/0.6322, allocations: 1.651 MB / 471.2 MB, free: 8.559 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.198e-05/0.6323, allocations: 3.984 kB / 471.2 MB, free: 8.555 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005394/0.6328, allocations: 75.84 kB / 471.3 MB, free: 8.48 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.792e-05/0.6329, allocations: 8 kB / 471.3 MB, free: 8.473 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.829e-05/0.6329, allocations: 23.94 kB / 471.3 MB, free: 8.449 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.124e-05/0.633, allocations: 4 kB / 471.3 MB, free: 8.445 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.325e-06/0.633, allocations: 0 / 471.3 MB, free: 8.445 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001797/0.6348, allocations: 0.7834 MB / 472.1 MB, free: 7.637 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001626/0.635, allocations: 128.4 kB / 472.2 MB, free: 7.492 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001139/0.6351, allocations: 24 kB / 472.3 MB, free: 7.469 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004328/0.6356, allocations: 39.97 kB / 472.3 MB, free: 7.43 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003253/0.6359, allocations: 100.8 kB / 472.4 MB, free: 7.332 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.909e-05/0.636, allocations: 35.98 kB / 472.4 MB, free: 7.297 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002235/0.6363, allocations: 153.4 kB / 472.6 MB, free: 7.148 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.6363, allocations: 4 kB / 472.6 MB, free: 7.145 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0009261/0.6372, allocations: 171.9 kB / 472.7 MB, free: 6.977 MB / 346.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.002417/0.6396, allocations: 1.456 MB / 474.2 MB, free: 5.484 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001983/0.6417, allocations: 0.7225 MB / 474.9 MB, free: 4.762 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.518e-06/0.6417, allocations: 0 / 474.9 MB, free: 4.762 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009641/0.6427, allocations: 365.7 kB / 475.3 MB, free: 4.406 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006433/0.6434, allocations: 76.5 kB / 475.4 MB, free: 4.332 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003369/0.6467, allocations: 1.072 MB / 476.4 MB, free: 3.207 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007473/0.6475, allocations: 0.9469 MB / 477.4 MB, free: 2.23 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007576/0.6483, allocations: 275.3 kB / 477.6 MB, free: 1.961 MB / 346.7 MB Notification: Performance of SimCode: time 1.472e-06/0.6483, allocations: 0 / 477.6 MB, free: 1.961 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.724/3.372, allocations: 11.38 MB / 489 MB, free: 6.547 MB / 362.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