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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001591/0.001591, allocations: 178.4 kB / 8.698 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.606/1.606, allocations: 205.3 MB / 214.4 MB, free: 1.734 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.0009335/0.0009336, allocations: 78.72 kB / 262.4 MB, free: 1.688 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.105e-05/2.111e-05, allocations: 0 / 315.6 MB, free: 22.64 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.131/0.1311, allocations: 47.59 MB / 363.2 MB, free: 6.996 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4756/0.6067, allocations: 75.95 MB / 439.1 MB, free: 3.457 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003195/0.6072, allocations: 64.47 kB / 439.2 MB, free: 3.426 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02953/0.6367, allocations: 11.29 MB / 450.5 MB, free: 9.871 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.434e-06/0.6368, allocations: 0 / 450.5 MB, free: 9.871 MB / 330.7 MB Notification: Performance of Transformations before backend: time 5.061e-05/0.6368, allocations: 31.92 kB / 450.5 MB, free: 9.84 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.001681/0.6385, allocations: 0.8963 MB / 451.4 MB, free: 8.93 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.957e-05/0.6386, allocations: 12.03 kB / 451.4 MB, free: 8.918 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002057/0.6388, allocations: 90.97 kB / 451.5 MB, free: 8.828 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006933/0.6395, allocations: 438.9 kB / 451.9 MB, free: 8.43 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001054/0.6396, allocations: 50.8 kB / 452 MB, free: 8.387 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001218/0.6398, allocations: 67.95 kB / 452 MB, free: 8.32 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001237/0.641, allocations: 0.6269 MB / 452.7 MB, free: 7.922 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00143/0.6424, allocations: 0.802 MB / 453.5 MB, free: 7.312 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.306e-05/0.6425, allocations: 0 / 453.5 MB, free: 7.312 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.586e-05/0.6425, allocations: 7.984 kB / 453.5 MB, free: 7.305 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.485e-05/0.6426, allocations: 20 kB / 453.5 MB, free: 7.285 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00352/0.6461, allocations: 2.227 MB / 455.7 MB, free: 5.469 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008779/0.647, allocations: 0.5992 MB / 456.3 MB, free: 5.074 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000395/0.6474, allocations: 300.1 kB / 456.6 MB, free: 4.887 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.429e-05/0.6475, allocations: 10.11 kB / 456.6 MB, free: 4.879 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005901/0.6481, allocations: 402.5 kB / 457 MB, free: 4.57 MB / 330.7 MB Notification: Performance of pre-optimization done (n=99): time 2.264e-06/0.6481, allocations: 0 / 457 MB, free: 4.57 MB / 330.7 MB Notification: Performance of matching and sorting (n=99): time 0.0009391/0.6491, allocations: 0.5464 MB / 457.5 MB, free: 4.133 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.123e-05/0.6491, allocations: 92.89 kB / 457.6 MB, free: 4.023 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002646/0.6494, allocations: 292.1 kB / 457.9 MB, free: 3.793 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 7.414e-05/0.6495, allocations: 48.5 kB / 458 MB, free: 3.746 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002031/0.6497, allocations: 297.4 kB / 458.3 MB, free: 3.496 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001836/0.6499, allocations: 236.2 kB / 458.5 MB, free: 3.301 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.992e-05/0.6499, allocations: 0 / 458.5 MB, free: 3.301 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001517/0.6501, allocations: 365.5 kB / 458.9 MB, free: 2.957 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003516/0.6504, allocations: 235.3 kB / 459.1 MB, free: 2.816 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004853/0.6509, allocations: 437.5 kB / 459.5 MB, free: 2.418 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004101/0.6514, allocations: 248.2 kB / 459.8 MB, free: 2.254 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.318e-06/0.6514, allocations: 0 / 459.8 MB, free: 2.254 MB / 330.7 MB Notification: Performance of matching and sorting (n=154) (initialization): time 0.001198/0.6526, allocations: 0.7358 MB / 460.5 MB, free: 1.66 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.385e-05/0.6526, allocations: 8 kB / 460.5 MB, free: 1.652 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.222e-05/0.6526, allocations: 7.953 kB / 460.5 MB, free: 1.645 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.673e-05/0.6527, allocations: 12 kB / 460.5 MB, free: 1.633 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004321/0.6531, allocations: 117.4 kB / 460.6 MB, free: 1.527 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.412e-05/0.6531, allocations: 23.91 kB / 460.7 MB, free: 1.504 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002723/0.6534, allocations: 44.08 kB / 460.7 MB, free: 1.461 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.897e-05/0.6535, allocations: 50.8 kB / 460.7 MB, free: 1.422 MB / 330.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.0002152/0.6537, allocations: 182.4 kB / 460.9 MB, free: 1.242 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0008175/0.6546, allocations: 0.539 MB / 461.5 MB, free: 0.8125 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.841e-05/0.6546, allocations: 51.39 kB / 461.5 MB, free: 0.7617 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001196/0.6558, allocations: 0.6656 MB / 462.2 MB, free: 260 kB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.542e-05/0.6559, allocations: 12 kB / 462.2 MB, free: 248 kB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.242e-06/0.6559, allocations: 3.938 kB / 462.2 MB, free: 244 kB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.755e-05/0.6559, allocations: 11.97 kB / 462.2 MB, free: 232 kB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002514/0.6584, allocations: 1.475 MB / 463.7 MB, free: 15.02 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.21e-06/0.6585, allocations: 4 kB / 463.7 MB, free: 15.02 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002805/0.6587, allocations: 70.52 kB / 463.8 MB, free: 14.95 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.738e-06/0.6588, allocations: 4 kB / 463.8 MB, free: 14.95 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.226e-05/0.6588, allocations: 15.38 kB / 463.8 MB, free: 14.94 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.161e-06/0.6588, allocations: 4 kB / 463.8 MB, free: 14.93 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.549e-06/0.6588, allocations: 4 kB / 463.8 MB, free: 14.93 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001109/0.6599, allocations: 0.729 MB / 464.5 MB, free: 14.3 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.558e-05/0.6601, allocations: 131.8 kB / 464.6 MB, free: 14.16 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.859e-05/0.6601, allocations: 7.938 kB / 464.6 MB, free: 14.15 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002091/0.6604, allocations: 27.98 kB / 464.7 MB, free: 14.12 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002107/0.6606, allocations: 109.9 kB / 464.8 MB, free: 14.03 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.973e-05/0.6607, allocations: 34.8 kB / 464.8 MB, free: 14 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001195/0.6608, allocations: 140.2 kB / 465 MB, free: 13.89 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.6608, allocations: 0 / 465 MB, free: 13.89 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0005351/0.6613, allocations: 124 kB / 465.1 MB, free: 13.77 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.001532/0.6629, allocations: 1.401 MB / 466.5 MB, free: 12.48 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001007/0.6639, allocations: 0.6758 MB / 467.1 MB, free: 11.98 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.6639, allocations: 3.938 kB / 467.2 MB, free: 11.98 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004994/0.6644, allocations: 345.8 kB / 467.5 MB, free: 11.74 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003852/0.6648, allocations: 54.03 kB / 467.5 MB, free: 11.7 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001951/0.6668, allocations: 0.9764 MB / 468.5 MB, free: 10.82 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006082/0.6674, allocations: 0.9692 MB / 469.5 MB, free: 9.824 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0003039/0.6677, allocations: 105.9 kB / 469.6 MB, free: 9.719 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004511/0.6682, allocations: 267.3 kB / 469.9 MB, free: 9.629 MB / 346.7 MB Notification: Performance of SimCode: time 4.41e-07/0.6682, allocations: 0 / 469.9 MB, free: 9.629 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0396/0.7078, allocations: 11.68 MB / 481.5 MB, free: 13.95 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002656/0.7081, allocations: 126.6 kB / 481.7 MB, free: 13.76 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.593/3.302, allocations: 0 / 481.7 MB, free: 13.76 MB / 362.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) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.StateGraph.Examples.ExecutionPaths_res.mat does not exist to compare? outputFormat=mat