Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised,fileNamePrefix="Buildings_9_Buildings_Fluid_Examples_Performance_PressureDrop_SeriesFlowOptimised",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised,fileNamePrefix="Buildings_9_Buildings_Fluid_Examples_Performance_PressureDrop_SeriesFlowOptimised",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009227/0.0009227, allocations: 90.75 kB / 15.06 MB, free: 1.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001183/0.001183, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.373/1.373, allocations: 223.2 MB / 240 MB, free: 5.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.343/2.343, allocations: 390.4 MB / 0.6655 GB, free: 2.988 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003253/0.0003253, allocations: 19.98 kB / 0.8149 GB, free: 14.15 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6617/0.6621, allocations: 142.3 MB / 0.9539 GB, free: 8.125 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised): time 0.1762/0.8383, allocations: 146.7 MB / 1.097 GB, free: 13.01 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.003179/0.8416, allocations: 1.644 MB / 1.099 GB, free: 11.36 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000321/0.8419, allocations: 7.938 kB / 1.099 GB, free: 11.36 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0004912/0.8424, allocations: 115.2 kB / 1.099 GB, free: 11.24 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.001213/0.8437, allocations: 398.1 kB / 1.099 GB, free: 10.85 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.001012/0.8447, allocations: 332.5 kB / 1.1 GB, free: 10.53 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.003138/0.8478, allocations: 2.987 MB / 1.102 GB, free: 7.531 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001197/0.8491, allocations: 0.6953 MB / 1.103 GB, free: 6.824 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00189/0.851, allocations: 0.8559 MB / 1.104 GB, free: 5.965 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001059/0.852, allocations: 0.7079 MB / 1.105 GB, free: 5.254 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 8.702e-05/0.8521, allocations: 32 kB / 1.105 GB, free: 5.223 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001365/0.8535, allocations: 0.5574 MB / 1.105 GB, free: 4.664 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0003349/0.8538, allocations: 278.9 kB / 1.106 GB, free: 4.391 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0003739/0.8542, allocations: 229.1 kB / 1.106 GB, free: 4.16 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.001264/0.8555, allocations: 1.021 MB / 1.107 GB, free: 3.137 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.641e-06/0.8555, allocations: 0 / 1.107 GB, free: 3.137 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.104e-06/0.8555, allocations: 0 / 1.107 GB, free: 3.137 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.245e-05/0.8555, allocations: 3.938 kB / 1.107 GB, free: 3.133 MB / 0.8575 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 126 * Number of variables: 126 Notification: Performance of Generate backend data structure: time 0.002157/0.8577, allocations: 1.307 MB / 1.108 GB, free: 1.766 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.685e-05/0.8578, allocations: 12.03 kB / 1.108 GB, free: 1.754 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001257/0.8579, allocations: 98.52 kB / 1.108 GB, free: 1.648 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007212/0.8586, allocations: 186.5 kB / 1.108 GB, free: 1.465 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001383/0.86, allocations: 0.7923 MB / 1.109 GB, free: 0.6133 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.526e-05/0.8601, allocations: 48.98 kB / 1.109 GB, free: 0.5664 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.373e-05/0.8602, allocations: 64 kB / 1.109 GB, free: 0.5039 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001203/0.8614, allocations: 0.7889 MB / 1.11 GB, free: 15.63 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.794e-05/0.8614, allocations: 7.938 kB / 1.11 GB, free: 15.62 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.866e-05/0.8615, allocations: 24 kB / 1.11 GB, free: 15.6 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.61e-05/0.8615, allocations: 16 kB / 1.11 GB, free: 15.59 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009532/0.8625, allocations: 0.5344 MB / 1.111 GB, free: 15.05 MB / 0.8731 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004637/0.8671, allocations: 4.615 MB / 1.115 GB, free: 10.06 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007456/0.8679, allocations: 423 kB / 1.115 GB, free: 9.637 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004013/0.8683, allocations: 252.7 kB / 1.116 GB, free: 9.387 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003701/0.8687, allocations: 190.2 kB / 1.116 GB, free: 9.164 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000558/0.8692, allocations: 305.1 kB / 1.116 GB, free: 8.848 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=31): time 2.244e-06/0.8692, allocations: 0 / 1.116 GB, free: 8.848 MB / 0.8731 GB Notification: Performance of matching and sorting (n=31): time 0.001429/0.8707, allocations: 0.6523 MB / 1.117 GB, free: 8.191 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.398e-05/0.8708, allocations: 81.11 kB / 1.117 GB, free: 8.094 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001471/0.8722, allocations: 1.11 MB / 1.118 GB, free: 6.965 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 5.4e-05/0.8723, allocations: 33.7 kB / 1.118 GB, free: 6.926 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005068/0.8728, allocations: 496.1 kB / 1.118 GB, free: 6.434 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001314/0.873, allocations: 110.5 kB / 1.119 GB, free: 6.324 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.618e-05/0.873, allocations: 12 kB / 1.119 GB, free: 6.312 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001498/0.8731, allocations: 326 kB / 1.119 GB, free: 5.988 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003346/0.8735, allocations: 184.7 kB / 1.119 GB, free: 5.809 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005815/0.8741, allocations: 0.5017 MB / 1.12 GB, free: 5.176 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004418/0.8745, allocations: 302.5 kB / 1.12 GB, free: 4.875 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.228e-06/0.8745, allocations: 0 / 1.12 GB, free: 4.875 MB / 0.8731 GB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001132/0.8757, allocations: 0.6792 MB / 1.121 GB, free: 4.184 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001947/0.8759, allocations: 275.1 kB / 1.121 GB, free: 3.832 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.409e-05/0.8759, allocations: 8 kB / 1.121 GB, free: 3.824 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.243e-05/0.8759, allocations: 8 kB / 1.121 GB, free: 3.816 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004369/0.8764, allocations: 115.8 kB / 1.121 GB, free: 3.703 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.632e-05/0.8764, allocations: 11.94 kB / 1.121 GB, free: 3.691 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006946/0.8771, allocations: 107.6 kB / 1.121 GB, free: 3.586 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.351e-05/0.8772, allocations: 31.92 kB / 1.121 GB, free: 3.555 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 7.955e-06/0.8772, allocations: 8.875 kB / 1.121 GB, free: 3.547 MB / 0.8731 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008607/0.8781, allocations: 0.5365 MB / 1.122 GB, free: 3.004 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.5e-06/0.8781, allocations: 8.125 kB / 1.122 GB, free: 2.996 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.095e-05/0.8781, allocations: 8 kB / 1.122 GB, free: 2.988 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003548/0.8785, allocations: 107.8 kB / 1.122 GB, free: 2.883 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.097e-05/0.8785, allocations: 11.94 kB / 1.122 GB, free: 2.871 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006147/0.8791, allocations: 91.61 kB / 1.122 GB, free: 2.781 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.708e-05/0.8791, allocations: 24 kB / 1.122 GB, free: 2.758 MB / 0.8731 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.pulse_p.T_start,pulse_p.T_start,$PRE.pulse_p.count,pulse_p.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (53): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 1 * 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.0005896/0.8797, allocations: 472.7 kB / 1.122 GB, free: 2.285 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001201/0.8799, allocations: 98.78 kB / 1.122 GB, free: 2.188 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000909/0.8808, allocations: 0.495 MB / 1.123 GB, free: 1.688 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.325e-06/0.8808, allocations: 7.953 kB / 1.123 GB, free: 1.68 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.56e-06/0.8808, allocations: 0 / 1.123 GB, free: 1.68 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.125e-06/0.8808, allocations: 3.984 kB / 1.123 GB, free: 1.676 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001969/0.8828, allocations: 1.396 MB / 1.124 GB, free: 208 kB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.26e-06/0.8828, allocations: 4 kB / 1.124 GB, free: 204 kB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002484/0.8831, allocations: 68.11 kB / 1.124 GB, free: 136 kB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.486e-06/0.8831, allocations: 8 kB / 1.124 GB, free: 128 kB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.262e-05/0.8831, allocations: 8 kB / 1.124 GB, free: 120 kB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.896e-06/0.8831, allocations: 11.98 kB / 1.124 GB, free: 108 kB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.8831, allocations: 0 / 1.124 GB, free: 108 kB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008435/0.884, allocations: 0.6038 MB / 1.125 GB, free: 15.46 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003383/0.8843, allocations: 227.8 kB / 1.125 GB, free: 15.22 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001141/0.8845, allocations: 11.98 kB / 1.125 GB, free: 15.21 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004478/0.8849, allocations: 55.8 kB / 1.125 GB, free: 15.16 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.431e-05/0.885, allocations: 31.89 kB / 1.125 GB, free: 15.12 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.089e-05/0.885, allocations: 8 kB / 1.125 GB, free: 15.12 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 0.001001/0.886, allocations: 0.7875 MB / 1.126 GB, free: 14.32 MB / 0.8887 GB Notification: Performance of sort global known variables: time 1.21e-07/0.886, allocations: 0 / 1.126 GB, free: 14.32 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.001211/0.8873, allocations: 403.4 kB / 1.126 GB, free: 13.93 MB / 0.8887 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,pulse_p.T_start,pulse_p.count) * Number of discrete states: 1 (pulse_p.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.001541/0.8888, allocations: 1.236 MB / 1.128 GB, free: 12.65 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.001436/0.8903, allocations: 0.8089 MB / 1.128 GB, free: 11.82 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 7.945e-06/0.8903, allocations: 0 / 1.128 GB, free: 11.82 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 0.0003686/0.8907, allocations: 211.6 kB / 1.129 GB, free: 11.61 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00218/0.8928, allocations: 463.4 kB / 1.129 GB, free: 11.16 MB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01176/0.9046, allocations: 6.239 MB / 1.135 GB, free: 4.633 MB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007947/0.9055, allocations: 1.173 MB / 1.136 GB, free: 3.43 MB / 0.8887 GB Notification: Performance of simCode: alias equations: time 0.001263/0.9067, allocations: 427.5 kB / 1.137 GB, free: 3.008 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004415/0.9072, allocations: 319.3 kB / 1.137 GB, free: 2.695 MB / 0.8887 GB Notification: Performance of SimCode: time 8.02e-07/0.9072, allocations: 8 kB / 1.137 GB, free: 2.688 MB / 0.8887 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04789/0.9551, allocations: 25.53 MB / 1.162 GB, free: 9.551 MB / 0.92 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002602/0.9554, allocations: 255.5 kB / 1.162 GB, free: 9.211 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.308/3.264, allocations: 0 / 1.162 GB, free: 9.211 MB / 0.92 GB (rm -f Buildings_9_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised.pipe ; mkfifo Buildings_9_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised.pipe >> ../files/Buildings_9_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Examples_Performance_PressureDrop_SeriesFlowOptimised_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Examples_Performance_PressureDrop_SeriesFlowOptimised.fmu > Buildings_9_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised_res.mat does not exist to compare? outputFormat=mat