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.001585/0.001584, allocations: 178.4 kB / 8.362 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.123/2.123, allocations: 205.3 MB / 214.1 MB, free: 14.15 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001152/0.001152, allocations: 100.5 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.633e-05/2.636e-05, allocations: 4 kB / 314.9 MB, free: 9.086 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3677/0.3678, allocations: 47.57 MB / 362.4 MB, free: 45.85 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.133/0.5008, allocations: 75.69 MB / 438.1 MB, free: 10.64 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003474/0.5013, allocations: 65.47 kB / 438.2 MB, free: 10.57 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.06502/0.5663, allocations: 11.29 MB / 449.5 MB, free: 15.28 MB / 347.1 MB Notification: Performance of FrontEnd: time 2.675e-06/0.5664, allocations: 1.031 kB / 449.5 MB, free: 15.28 MB / 347.1 MB Notification: Performance of Transformations before backend: time 8.192e-05/0.5665, allocations: 27.94 kB / 449.5 MB, free: 15.25 MB / 347.1 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.003393/0.5699, allocations: 0.8997 MB / 450.4 MB, free: 14.28 MB / 347.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.904e-05/0.57, allocations: 8.031 kB / 450.4 MB, free: 14.27 MB / 347.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005403/0.5705, allocations: 94.95 kB / 450.5 MB, free: 14.18 MB / 347.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001495/0.5721, allocations: 434 kB / 450.9 MB, free: 13.71 MB / 347.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001401/0.5722, allocations: 43.98 kB / 451 MB, free: 13.67 MB / 347.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003409/0.5726, allocations: 67.95 kB / 451 MB, free: 13.61 MB / 347.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003019/0.5756, allocations: 0.6326 MB / 451.7 MB, free: 12.97 MB / 347.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003267/0.579, allocations: 0.7933 MB / 452.5 MB, free: 12.16 MB / 347.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.786e-05/0.5791, allocations: 4 kB / 452.5 MB, free: 12.15 MB / 347.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001428/0.5792, allocations: 14.05 kB / 452.5 MB, free: 12.14 MB / 347.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.443e-05/0.5793, allocations: 24 kB / 452.5 MB, free: 12.12 MB / 347.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007741/0.587, allocations: 2.221 MB / 454.7 MB, free: 9.836 MB / 347.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001994/0.5891, allocations: 0.5966 MB / 455.3 MB, free: 9.211 MB / 347.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009856/0.5902, allocations: 303.8 kB / 455.6 MB, free: 8.91 MB / 347.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001211/0.5903, allocations: 20.77 kB / 455.6 MB, free: 8.891 MB / 347.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001262/0.5916, allocations: 395.7 kB / 456 MB, free: 8.484 MB / 347.1 MB Notification: Performance of pre-optimization done (n=99): time 9.809e-06/0.5916, allocations: 3.984 kB / 456 MB, free: 8.48 MB / 347.1 MB Notification: Performance of matching and sorting (n=99): time 0.002279/0.5939, allocations: 0.5387 MB / 456.6 MB, free: 7.938 MB / 347.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001105/0.5941, allocations: 101.9 kB / 456.7 MB, free: 7.816 MB / 347.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006319/0.5947, allocations: 287.6 kB / 456.9 MB, free: 7.527 MB / 347.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002239/0.595, allocations: 57.72 kB / 457 MB, free: 7.465 MB / 347.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004383/0.5954, allocations: 351.5 kB / 457.3 MB, free: 7.117 MB / 347.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004659/0.5959, allocations: 236.9 kB / 457.6 MB, free: 6.883 MB / 347.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.238e-05/0.596, allocations: 0 / 457.6 MB, free: 6.883 MB / 347.1 MB Notification: Performance of setup shared object (initialization): time 0.0002463/0.5963, allocations: 358.8 kB / 457.9 MB, free: 6.523 MB / 347.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009926/0.5973, allocations: 226.6 kB / 458.1 MB, free: 6.305 MB / 347.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001203/0.5985, allocations: 445.1 kB / 458.6 MB, free: 5.789 MB / 347.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001059/0.5996, allocations: 242.3 kB / 458.8 MB, free: 5.559 MB / 347.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.189e-05/0.5996, allocations: 0 / 458.8 MB, free: 5.559 MB / 347.1 MB Notification: Performance of matching and sorting (n=154) (initialization): time 0.002811/0.6025, allocations: 0.7273 MB / 459.5 MB, free: 4.824 MB / 347.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.186e-05/0.6026, allocations: 11.94 kB / 459.5 MB, free: 4.812 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.472e-05/0.6026, allocations: 13.39 kB / 459.6 MB, free: 4.801 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.897e-05/0.6027, allocations: 12 kB / 459.6 MB, free: 4.789 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001006/0.6037, allocations: 119.7 kB / 459.7 MB, free: 4.672 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.952e-05/0.6037, allocations: 12 kB / 459.7 MB, free: 4.66 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000825/0.6046, allocations: 43.72 kB / 459.7 MB, free: 4.617 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001877/0.6048, allocations: 51.94 kB / 459.8 MB, free: 4.566 MB / 347.1 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.0004406/0.6053, allocations: 178.7 kB / 460 MB, free: 4.379 MB / 347.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002114/0.6074, allocations: 0.5349 MB / 460.5 MB, free: 3.84 MB / 347.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001842/0.6076, allocations: 55.33 kB / 460.6 MB, free: 3.785 MB / 347.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002879/0.6105, allocations: 0.6673 MB / 461.2 MB, free: 3.113 MB / 347.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.564e-05/0.6106, allocations: 12 kB / 461.2 MB, free: 3.102 MB / 347.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.47e-05/0.6106, allocations: 0 / 461.2 MB, free: 3.102 MB / 347.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.255e-05/0.6107, allocations: 7.922 kB / 461.2 MB, free: 3.094 MB / 347.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005793/0.6165, allocations: 1.475 MB / 462.7 MB, free: 1.574 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-05/0.6166, allocations: 0 / 462.7 MB, free: 1.574 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007122/0.6173, allocations: 76.52 kB / 462.8 MB, free: 1.5 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.241e-05/0.6173, allocations: 4 kB / 462.8 MB, free: 1.496 MB / 347.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.636e-05/0.6174, allocations: 11.94 kB / 462.8 MB, free: 1.484 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.225e-05/0.6175, allocations: 4 kB / 462.8 MB, free: 1.48 MB / 347.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.564e-06/0.6175, allocations: 4 kB / 462.8 MB, free: 1.477 MB / 347.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002511/0.62, allocations: 0.738 MB / 463.6 MB, free: 0.7109 MB / 347.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001847/0.6202, allocations: 124.4 kB / 463.7 MB, free: 0.5703 MB / 347.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001404/0.6204, allocations: 11.95 kB / 463.7 MB, free: 0.5586 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007163/0.6212, allocations: 31.91 kB / 463.7 MB, free: 0.5273 MB / 347.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005267/0.6217, allocations: 101.2 kB / 463.8 MB, free: 436 kB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001516/0.6219, allocations: 39.92 kB / 463.9 MB, free: 396 kB / 347.1 MB Notification: Performance of sorting global known variables: time 0.0002726/0.6222, allocations: 140.5 kB / 464 MB, free: 256 kB / 347.1 MB Notification: Performance of sort global known variables: time 7.32e-07/0.6222, allocations: 0 / 464 MB, free: 256 kB / 347.1 MB Notification: Performance of remove unused functions: time 0.00145/0.6237, allocations: 131.9 kB / 464.1 MB, free: 124 kB / 347.1 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.003732/0.6274, allocations: 1.401 MB / 465.5 MB, free: 14.69 MB / 363.1 MB Notification: Performance of simCode: created initialization part: time 0.002673/0.6302, allocations: 0.6671 MB / 466.2 MB, free: 14.03 MB / 363.1 MB Notification: Performance of simCode: created event and clocks part: time 7.164e-06/0.6303, allocations: 0 / 466.2 MB, free: 14.03 MB / 363.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001221/0.6315, allocations: 341.1 kB / 466.5 MB, free: 13.7 MB / 363.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009143/0.6324, allocations: 69.19 kB / 466.6 MB, free: 13.63 MB / 363.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00441/0.6369, allocations: 0.9773 MB / 467.6 MB, free: 12.61 MB / 363.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007366/0.6377, allocations: 0.9622 MB / 468.5 MB, free: 11.62 MB / 363.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007395/0.6384, allocations: 271.3 kB / 468.8 MB, free: 11.35 MB / 363.1 MB Notification: Performance of SimCode: time 1.443e-06/0.6385, allocations: 3.938 kB / 468.8 MB, free: 11.35 MB / 363.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.862/3.501, allocations: 11.34 MB / 480.1 MB, free: 24 kB / 363.1 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