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.001352/0.001352, allocations: 99.55 kB / 15.05 MB, free: 1.105 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.001402/0.001402, allocations: 177.3 kB / 15.94 MB, free: 228 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.323/1.323, allocations: 223.2 MB / 239.9 MB, free: 5.375 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.275/2.275, allocations: 390.3 MB / 0.6653 GB, free: 2.961 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003473/0.0003476, allocations: 16 kB / 0.8146 GB, free: 14.23 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6317/0.6321, allocations: 142.3 MB / 0.9536 GB, free: 8.117 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised): time 0.161/0.7932, allocations: 135.7 MB / 1.086 GB, free: 8.137 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.002636/0.7959, allocations: 1.674 MB / 1.088 GB, free: 6.461 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002011/0.7961, allocations: 11.94 kB / 1.088 GB, free: 6.449 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0005119/0.7966, allocations: 183.2 kB / 1.088 GB, free: 6.27 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.001139/0.7978, allocations: 0.4976 MB / 1.088 GB, free: 5.773 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009745/0.7987, allocations: 423.2 kB / 1.089 GB, free: 5.363 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.001739/0.8005, allocations: 1.488 MB / 1.09 GB, free: 3.871 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008535/0.8014, allocations: 0.7072 MB / 1.091 GB, free: 3.152 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001094/0.8025, allocations: 0.6968 MB / 1.092 GB, free: 2.453 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005659/0.803, allocations: 489.8 kB / 1.092 GB, free: 1.973 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 8.173e-05/0.8031, allocations: 36 kB / 1.092 GB, free: 1.938 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008079/0.8039, allocations: 411.4 kB / 1.093 GB, free: 1.535 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0002432/0.8042, allocations: 259.1 kB / 1.093 GB, free: 1.281 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0002147/0.8044, allocations: 229.1 kB / 1.093 GB, free: 1.051 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0009219/0.8053, allocations: 0.9781 MB / 1.094 GB, free: 72 kB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 2.815e-06/0.8054, allocations: 0 / 1.094 GB, free: 72 kB / 0.8419 GB Notification: Performance of FrontEnd: time 1.904e-06/0.8054, allocations: 0 / 1.094 GB, free: 72 kB / 0.8419 GB Notification: Performance of Transformations before backend: time 1.248e-05/0.8054, allocations: 0 / 1.094 GB, free: 72 kB / 0.8419 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.002042/0.8074, allocations: 1.284 MB / 1.095 GB, free: 14.73 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.673e-05/0.8075, allocations: 8.031 kB / 1.095 GB, free: 14.72 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001077/0.8076, allocations: 94.52 kB / 1.095 GB, free: 14.62 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007241/0.8083, allocations: 182.5 kB / 1.095 GB, free: 14.44 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001466/0.8098, allocations: 0.8 MB / 1.096 GB, free: 13.58 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.817e-05/0.8098, allocations: 45 kB / 1.096 GB, free: 13.54 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.65e-05/0.8099, allocations: 63.98 kB / 1.096 GB, free: 13.47 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001119/0.8111, allocations: 0.7888 MB / 1.097 GB, free: 12.61 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.391e-05/0.8111, allocations: 3.938 kB / 1.097 GB, free: 12.6 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.101e-05/0.8111, allocations: 24 kB / 1.097 GB, free: 12.58 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.479e-05/0.8112, allocations: 12 kB / 1.097 GB, free: 12.57 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008913/0.8121, allocations: 0.5383 MB / 1.098 GB, free: 12.03 MB / 0.8575 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.003982/0.8161, allocations: 4.595 MB / 1.102 GB, free: 7.051 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007117/0.8168, allocations: 438.2 kB / 1.103 GB, free: 6.613 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 5.845e-05/0.8169, allocations: 15.97 kB / 1.103 GB, free: 6.598 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004875/0.8173, allocations: 309.7 kB / 1.103 GB, free: 6.273 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=31): time 1.793e-06/0.8174, allocations: 0 / 1.103 GB, free: 6.273 MB / 0.8575 GB Notification: Performance of matching and sorting (n=31): time 0.001348/0.8187, allocations: 0.6506 MB / 1.104 GB, free: 5.617 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.984e-05/0.8188, allocations: 106.8 kB / 1.104 GB, free: 5.488 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001262/0.8201, allocations: 1.118 MB / 1.105 GB, free: 4.352 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 4.694e-05/0.8201, allocations: 33.7 kB / 1.105 GB, free: 4.312 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003916/0.8205, allocations: 496.1 kB / 1.105 GB, free: 3.82 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 8.337e-05/0.8206, allocations: 110.5 kB / 1.105 GB, free: 3.711 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.313e-05/0.8206, allocations: 8 kB / 1.105 GB, free: 3.703 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001107/0.8207, allocations: 322 kB / 1.106 GB, free: 3.383 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000332/0.8211, allocations: 184.7 kB / 1.106 GB, free: 3.203 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005478/0.8216, allocations: 0.494 MB / 1.106 GB, free: 2.578 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004236/0.8221, allocations: 299.9 kB / 1.107 GB, free: 2.281 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.859e-06/0.8221, allocations: 7.938 kB / 1.107 GB, free: 2.273 MB / 0.8575 GB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001064/0.8232, allocations: 0.6797 MB / 1.107 GB, free: 1.582 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008748/0.824, allocations: 2.136 MB / 1.109 GB, free: 15.28 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.16e-05/0.8241, allocations: 8 kB / 1.109 GB, free: 15.27 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.728e-05/0.8241, allocations: 8 kB / 1.109 GB, free: 15.26 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00043/0.8245, allocations: 111.8 kB / 1.11 GB, free: 15.15 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.508e-05/0.8245, allocations: 15.92 kB / 1.11 GB, free: 15.14 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006937/0.8252, allocations: 111.3 kB / 1.11 GB, free: 15.03 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.987e-05/0.8253, allocations: 27.98 kB / 1.11 GB, free: 15 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 7.694e-06/0.8253, allocations: 4 kB / 1.11 GB, free: 15 MB / 0.8731 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008542/0.8262, allocations: 0.5364 MB / 1.11 GB, free: 14.45 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.566e-06/0.8262, allocations: 4 kB / 1.11 GB, free: 14.45 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.496e-06/0.8262, allocations: 8 kB / 1.11 GB, free: 14.44 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003762/0.8266, allocations: 107.8 kB / 1.11 GB, free: 14.34 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.321e-05/0.8266, allocations: 15.89 kB / 1.11 GB, free: 14.32 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006195/0.8272, allocations: 95.86 kB / 1.11 GB, free: 14.23 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.596e-05/0.8273, allocations: 24 kB / 1.11 GB, free: 14.2 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.0004675/0.8278, allocations: 472.7 kB / 1.111 GB, free: 13.73 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001061/0.8279, allocations: 98.78 kB / 1.111 GB, free: 13.63 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008137/0.8287, allocations: 474.4 kB / 1.111 GB, free: 13.16 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.027e-06/0.8287, allocations: 7.953 kB / 1.111 GB, free: 13.15 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.76e-06/0.8287, allocations: 0 / 1.111 GB, free: 13.15 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.487e-06/0.8287, allocations: 7.984 kB / 1.111 GB, free: 13.14 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001476/0.8302, allocations: 1.098 MB / 1.113 GB, free: 11.97 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.712e-06/0.8302, allocations: 4 kB / 1.113 GB, free: 11.96 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002636/0.8305, allocations: 71.83 kB / 1.113 GB, free: 11.89 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.771e-06/0.8305, allocations: 4 kB / 1.113 GB, free: 11.89 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.762e-05/0.8306, allocations: 8 kB / 1.113 GB, free: 11.88 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.911e-06/0.8306, allocations: 12.16 kB / 1.113 GB, free: 11.87 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.8306, allocations: 0 / 1.113 GB, free: 11.87 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008516/0.8314, allocations: 0.6255 MB / 1.113 GB, free: 11.17 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003343/0.8318, allocations: 223.7 kB / 1.113 GB, free: 10.93 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001074/0.8319, allocations: 8 kB / 1.113 GB, free: 10.92 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004598/0.8324, allocations: 59.78 kB / 1.113 GB, free: 10.86 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.608e-05/0.8325, allocations: 35.92 kB / 1.114 GB, free: 10.83 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.389e-05/0.8325, allocations: 11.98 kB / 1.114 GB, free: 10.82 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0009279/0.8334, allocations: 0.7797 MB / 1.114 GB, free: 10.03 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.7e-07/0.8334, allocations: 4 kB / 1.114 GB, free: 10.02 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.001022/0.8345, allocations: 415.4 kB / 1.115 GB, free: 9.617 MB / 0.8731 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.001566/0.836, allocations: 1.734 MB / 1.116 GB, free: 7.812 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.001292/0.8373, allocations: 0.807 MB / 1.117 GB, free: 6.984 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.8374, allocations: 0 / 1.117 GB, free: 6.984 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0003597/0.8377, allocations: 205.2 kB / 1.117 GB, free: 6.785 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001883/0.8396, allocations: 458.2 kB / 1.118 GB, free: 6.348 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0124/0.852, allocations: 9.536 MB / 1.127 GB, free: 12.49 MB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008223/0.8529, allocations: 1.208 MB / 1.128 GB, free: 11.25 MB / 0.8887 GB Notification: Performance of simCode: alias equations: time 0.001127/0.854, allocations: 431.5 kB / 1.129 GB, free: 10.82 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004164/0.8545, allocations: 323.3 kB / 1.129 GB, free: 10.51 MB / 0.8887 GB Notification: Performance of SimCode: time 5.41e-07/0.8545, allocations: 0 / 1.129 GB, free: 10.51 MB / 0.8887 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04392/0.8984, allocations: 25.5 MB / 1.154 GB, free: 1.402 MB / 0.9044 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001997/0.8986, allocations: 239.2 kB / 1.154 GB, free: 1.164 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.145/3.044, allocations: 0 / 1.154 GB, free: 1.164 MB / 0.9044 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