Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.StateGraph.Examples.ExecutionPaths.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.StateGraph.Examples.ExecutionPaths,fileNamePrefix="Modelica_trunk_Modelica_StateGraph_Examples_ExecutionPaths",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.ExecutionPaths,fileNamePrefix="Modelica_trunk_Modelica_StateGraph_Examples_ExecutionPaths",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001096/0.001096, allocations: 198.3 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.22/1.22, allocations: 227.2 MB / 245 MB, free: 7.672 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008028/0.0008027, allocations: 95.7 kB / 297.3 MB, free: 6.219 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002037/0.0002037, allocations: 8 kB / 358 MB, free: 9.469 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1764/0.1766, allocations: 51.46 MB / 409.5 MB, free: 26.75 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08175/0.2584, allocations: 78.2 MB / 487.7 MB, free: 12.44 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000192/0.2586, allocations: 72.73 kB / 487.8 MB, free: 12.37 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0284/0.287, allocations: 11.92 MB / 499.7 MB, free: 356 kB / 362.7 MB Notification: Performance of FrontEnd: time 2.505e-06/0.2871, allocations: 4 kB / 499.7 MB, free: 352 kB / 362.7 MB Notification: Performance of Transformations before backend: time 3.356e-05/0.2871, allocations: 31.92 kB / 499.7 MB, free: 320 kB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 243 * Number of variables: 243 Notification: Performance of Generate backend data structure: time 0.001341/0.2885, allocations: 0.933 MB / 0.4889 GB, free: 15.3 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.445e-05/0.2885, allocations: 8.031 kB / 0.4889 GB, free: 15.29 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001697/0.2887, allocations: 148 kB / 0.4891 GB, free: 15.14 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001482/0.2888, allocations: 90.97 kB / 0.4891 GB, free: 15.05 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005772/0.2894, allocations: 449.7 kB / 0.4896 GB, free: 14.57 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.38e-05/0.2895, allocations: 89.95 kB / 0.4897 GB, free: 14.48 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001213/0.2896, allocations: 112 kB / 0.4898 GB, free: 14.37 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00145/0.2911, allocations: 0.958 MB / 0.4907 GB, free: 13.38 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.926e-05/0.2911, allocations: 0 / 0.4907 GB, free: 13.38 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.419e-05/0.2912, allocations: 36 kB / 0.4907 GB, free: 13.35 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.033e-05/0.2912, allocations: 24 kB / 0.4908 GB, free: 13.32 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001253/0.2925, allocations: 0.7105 MB / 0.4915 GB, free: 12.61 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003169/0.2957, allocations: 2.49 MB / 0.4939 GB, free: 10.04 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009159/0.2966, allocations: 0.6841 MB / 0.4946 GB, free: 9.332 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.547e-05/0.2967, allocations: 21.45 kB / 0.4946 GB, free: 9.312 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006132/0.2973, allocations: 439.6 kB / 0.495 GB, free: 8.863 MB / 378.7 MB Notification: Performance of pre-optimization done (n=100): time 3.026e-06/0.2973, allocations: 0 / 0.495 GB, free: 8.863 MB / 378.7 MB Notification: Performance of matching and sorting (n=100): time 0.001355/0.2987, allocations: 0.8474 MB / 0.4958 GB, free: 8.008 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.143e-05/0.2987, allocations: 127.8 kB / 0.4959 GB, free: 7.859 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002591/0.299, allocations: 299.6 kB / 0.4962 GB, free: 7.562 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 9.634e-05/0.2991, allocations: 77.69 kB / 0.4963 GB, free: 7.48 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001837/0.2993, allocations: 293 kB / 0.4966 GB, free: 7.188 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000187/0.2995, allocations: 252.9 kB / 0.4968 GB, free: 6.938 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.973e-05/0.2995, allocations: 24 kB / 0.4968 GB, free: 6.914 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001659/0.2997, allocations: 366.8 kB / 0.4972 GB, free: 6.547 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004482/0.3002, allocations: 262.5 kB / 0.4974 GB, free: 6.289 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005743/0.3008, allocations: 496.5 kB / 0.4979 GB, free: 5.723 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004587/0.3012, allocations: 278.4 kB / 0.4982 GB, free: 5.453 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.058e-06/0.3012, allocations: 0 / 0.4982 GB, free: 5.453 MB / 378.7 MB Notification: Performance of matching and sorting (n=156) (initialization): time 0.001238/0.3025, allocations: 0.8792 MB / 0.499 GB, free: 4.566 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.422e-05/0.3025, allocations: 10.19 kB / 0.4991 GB, free: 4.559 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.096e-05/0.3025, allocations: 8 kB / 0.4991 GB, free: 4.551 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.202e-05/0.3026, allocations: 12 kB / 0.4991 GB, free: 4.539 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000373/0.3029, allocations: 115.7 kB / 0.4992 GB, free: 4.426 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.13e-05/0.303, allocations: 23.86 kB / 0.4992 GB, free: 4.402 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003324/0.3033, allocations: 67.83 kB / 0.4993 GB, free: 4.336 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.578e-05/0.3034, allocations: 47.98 kB / 0.4993 GB, free: 4.289 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 26 * Number of states: 0 () * Number of discrete variables: 126 ($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,$PRE.transition7.t_start,transition7.t_start,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 (156): * Single equations (assignments): 156 * 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.0003664/0.3038, allocations: 307.7 kB / 0.4996 GB, free: 3.973 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.893e-05/0.3038, allocations: 55.38 kB / 0.4997 GB, free: 3.918 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001114/0.305, allocations: 0.7533 MB / 0.5004 GB, free: 3.16 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.888e-06/0.305, allocations: 11.98 kB / 0.5004 GB, free: 3.148 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.551e-06/0.305, allocations: 4 kB / 0.5004 GB, free: 3.145 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.528e-06/0.305, allocations: 3.984 kB / 0.5004 GB, free: 3.141 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002283/0.3073, allocations: 1.679 MB / 0.5021 GB, free: 1.406 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.218e-06/0.3073, allocations: 4 kB / 0.5021 GB, free: 1.402 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002648/0.3076, allocations: 75.77 kB / 0.5021 GB, free: 1.328 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.185e-06/0.3076, allocations: 4 kB / 0.5021 GB, free: 1.324 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.316e-05/0.3077, allocations: 27.94 kB / 0.5022 GB, free: 1.297 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.929e-06/0.3077, allocations: 4 kB / 0.5022 GB, free: 1.293 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.432e-06/0.3077, allocations: 0 / 0.5022 GB, free: 1.293 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009357/0.3086, allocations: 0.8134 MB / 0.503 GB, free: 456 kB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.168e-05/0.3087, allocations: 132.3 kB / 0.5031 GB, free: 304 kB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.176e-05/0.3088, allocations: 20 kB / 0.5031 GB, free: 284 kB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002296/0.309, allocations: 47.97 kB / 0.5032 GB, free: 236 kB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001799/0.3092, allocations: 100.8 kB / 0.5032 GB, free: 132 kB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.635e-05/0.3093, allocations: 32 kB / 0.5033 GB, free: 100 kB / 378.7 MB Notification: Performance of sorting global known variables: time 0.1525/0.4617, allocations: 151.5 kB / 0.5034 GB, free: 92.55 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.61e-07/0.4618, allocations: 0 / 0.5034 GB, free: 92.55 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008201/0.4626, allocations: 171 kB / 0.5036 GB, free: 92.55 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 85 (transition7.t_start,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: 9 (step0.newActive,step1.newActive,step6.newActive,step2.newActive,step3.newActive,step4.newActive,step5.newActive,step4a.newActive,transition7.t_start) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (111): * Single equations (assignments): 94 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 17 * 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.001457/0.4641, allocations: 1.563 MB / 0.5051 GB, free: 91.7 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001124/0.4652, allocations: 0.7534 MB / 0.5058 GB, free: 91.68 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.4652, allocations: 0.9062 kB / 0.5058 GB, free: 91.68 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000479/0.4657, allocations: 388.5 kB / 0.5062 GB, free: 91.66 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003598/0.4661, allocations: 79.59 kB / 0.5063 GB, free: 91.66 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004847/0.4709, allocations: 7.085 MB / 0.5132 GB, free: 86.68 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004167/0.4714, allocations: 0.9697 MB / 0.5142 GB, free: 85.98 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003298/0.4717, allocations: 105.4 kB / 0.5143 GB, free: 85.97 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003171/0.472, allocations: 280.4 kB / 0.5145 GB, free: 85.96 MB / 378.7 MB Notification: Performance of SimCode: time 1.052e-06/0.472, allocations: 0 / 0.5145 GB, free: 85.96 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02055/0.4926, allocations: 11.99 MB / 0.5262 GB, free: 81.88 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001183/0.4927, allocations: 168 kB / 0.5264 GB, free: 81.64 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.094/2.587, allocations: 3.375 kB / 0.5264 GB, free: 81.64 MB / 378.7 MB (rm -f Modelica_trunk_Modelica.StateGraph.Examples.ExecutionPaths.pipe ; mkfifo Modelica_trunk_Modelica.StateGraph.Examples.ExecutionPaths.pipe ; head -c 1048576 < Modelica_trunk_Modelica.StateGraph.Examples.ExecutionPaths.pipe >> ../files/Modelica_trunk_Modelica.StateGraph.Examples.ExecutionPaths.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.StateGraph.Examples.ExecutionPaths_res.mat --tempDir=temp_Modelica_trunk_Modelica_StateGraph_Examples_ExecutionPaths_fmu --startTime=0 --stopTime=15.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_StateGraph_Examples_ExecutionPaths.fmu > Modelica_trunk_Modelica.StateGraph.Examples.ExecutionPaths.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.StateGraph.Examples.ExecutionPaths_res.mat does not exist to compare? outputFormat=mat