Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesDpOptimised.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.SeriesDpOptimised,fileNamePrefix="Buildings_9_Buildings_Fluid_Examples_Performance_PressureDrop_SeriesDpOptimised",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Examples.Performance.PressureDrop.SeriesDpOptimised,fileNamePrefix="Buildings_9_Buildings_Fluid_Examples_Performance_PressureDrop_SeriesDpOptimised",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.001179/0.001179, allocations: 99.86 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.001311/0.001311, 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.348/1.348, allocations: 223.2 MB / 239.9 MB, free: 5.348 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.312/2.312, allocations: 390.3 MB / 0.6653 GB, free: 2.996 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004315/0.0004316, allocations: 12 kB / 0.8146 GB, free: 14.26 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.635/0.6355, allocations: 142.3 MB / 0.9536 GB, free: 8.117 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Examples.Performance.PressureDrop.SeriesDpOptimised): time 0.154/0.7895, allocations: 135.7 MB / 1.086 GB, free: 8.152 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.005219/0.7948, allocations: 3.116 MB / 1.089 GB, free: 5.031 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004621/0.7953, allocations: 7.938 kB / 1.089 GB, free: 5.023 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0006768/0.796, allocations: 183.1 kB / 1.089 GB, free: 4.844 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.00167/0.7977, allocations: 0.5016 MB / 1.09 GB, free: 4.344 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.001403/0.7991, allocations: 461.6 kB / 1.09 GB, free: 3.898 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.001967/0.8011, allocations: 1.505 MB / 1.092 GB, free: 2.387 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001077/0.8022, allocations: 0.7033 MB / 1.092 GB, free: 1.672 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001188/0.8034, allocations: 0.6968 MB / 1.093 GB, free: 0.9727 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005822/0.8039, allocations: 489.9 kB / 1.094 GB, free: 0.4922 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 7.255e-05/0.804, allocations: 40 kB / 1.094 GB, free: 464 kB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009615/0.805, allocations: 419.3 kB / 1.094 GB, free: 44 kB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0002667/0.8053, allocations: 259.1 kB / 1.094 GB, free: 15.79 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0002316/0.8055, allocations: 229.1 kB / 1.094 GB, free: 15.56 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.001003/0.8065, allocations: 0.9704 MB / 1.095 GB, free: 14.59 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.256e-06/0.8065, allocations: 3.938 kB / 1.095 GB, free: 14.58 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.114e-06/0.8065, allocations: 0 / 1.095 GB, free: 14.58 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.418e-05/0.8066, allocations: 0 / 1.095 GB, free: 14.58 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: 125 * Number of variables: 125 Notification: Performance of Generate backend data structure: time 0.002221/0.8088, allocations: 1.284 MB / 1.097 GB, free: 13.24 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.521e-05/0.8088, allocations: 12.03 kB / 1.097 GB, free: 13.23 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001181/0.809, allocations: 94.52 kB / 1.097 GB, free: 13.12 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007723/0.8098, allocations: 194.4 kB / 1.097 GB, free: 12.93 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001498/0.8113, allocations: 0.7963 MB / 1.098 GB, free: 12.08 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.999e-05/0.8113, allocations: 45 kB / 1.098 GB, free: 12.04 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.962e-05/0.8114, allocations: 56 kB / 1.098 GB, free: 11.98 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001136/0.8125, allocations: 0.7849 MB / 1.099 GB, free: 11.12 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.872e-05/0.8126, allocations: 11.94 kB / 1.099 GB, free: 11.11 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.714e-05/0.8126, allocations: 23.94 kB / 1.099 GB, free: 11.08 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.564e-05/0.8127, allocations: 16 kB / 1.099 GB, free: 11.07 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009236/0.8136, allocations: 0.5383 MB / 1.099 GB, free: 10.53 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.0041/0.8177, allocations: 4.6 MB / 1.104 GB, free: 5.547 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007228/0.8184, allocations: 434.3 kB / 1.104 GB, free: 5.113 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 5.382e-05/0.8185, allocations: 15.98 kB / 1.104 GB, free: 5.098 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005182/0.819, allocations: 305.6 kB / 1.104 GB, free: 4.777 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=31): time 1.953e-06/0.819, allocations: 0 / 1.104 GB, free: 4.777 MB / 0.8575 GB Notification: Performance of matching and sorting (n=31): time 0.003869/0.8229, allocations: 1.338 MB / 1.106 GB, free: 3.41 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.936e-05/0.823, allocations: 110.8 kB / 1.106 GB, free: 3.277 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001361/0.8244, allocations: 1.11 MB / 1.107 GB, free: 2.148 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 5.258e-05/0.8244, allocations: 41.7 kB / 1.107 GB, free: 2.102 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.000401/0.8248, allocations: 492 kB / 1.107 GB, free: 1.613 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 9.265e-05/0.8249, allocations: 106.8 kB / 1.107 GB, free: 1.508 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.075e-05/0.825, allocations: 12 kB / 1.108 GB, free: 1.496 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001176/0.8251, allocations: 329.9 kB / 1.108 GB, free: 1.168 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003456/0.8255, allocations: 188.7 kB / 1.108 GB, free: 0.9844 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005587/0.826, allocations: 0.4978 MB / 1.108 GB, free: 364 kB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004418/0.8265, allocations: 304 kB / 1.109 GB, free: 56 kB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.008e-06/0.8265, allocations: 0 / 1.109 GB, free: 56 kB / 0.8575 GB Notification: Performance of matching and sorting (n=54) (initialization): time 0.002207/0.8287, allocations: 0.9832 MB / 1.11 GB, free: 15.05 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007853/0.8295, allocations: 2.128 MB / 1.112 GB, free: 12.76 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.209e-05/0.8295, allocations: 4 kB / 1.112 GB, free: 12.75 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001339/0.8309, allocations: 340.4 kB / 1.112 GB, free: 12.42 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000235/0.8311, allocations: 63.89 kB / 1.112 GB, free: 12.36 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001049/0.8322, allocations: 1.015 MB / 1.113 GB, free: 11.32 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008/0.833, allocations: 111.3 kB / 1.113 GB, free: 11.21 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.798e-05/0.8331, allocations: 23.98 kB / 1.113 GB, free: 11.18 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.152e-05/0.8331, allocations: 5.406 kB / 1.113 GB, free: 11.18 MB / 0.8731 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001359/0.8344, allocations: 0.7323 MB / 1.114 GB, free: 10.44 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.734e-06/0.8345, allocations: 8.031 kB / 1.114 GB, free: 10.43 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005675/0.835, allocations: 208.7 kB / 1.114 GB, free: 10.22 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002229/0.8353, allocations: 67.86 kB / 1.114 GB, free: 10.16 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003722/0.839, allocations: 3.18 MB / 1.117 GB, free: 6.828 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008868/0.8399, allocations: 99.52 kB / 1.118 GB, free: 6.73 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.557e-05/0.84, allocations: 31.89 kB / 1.118 GB, free: 6.699 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 (34): * Single equations (assignments): 32 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 19} Notification: Performance of prepare postOptimizeDAE: time 0.0006303/0.8406, allocations: 468.6 kB / 1.118 GB, free: 6.23 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001583/0.8408, allocations: 98.78 kB / 1.118 GB, free: 6.133 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001234/0.842, allocations: 0.6913 MB / 1.119 GB, free: 5.426 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.664e-06/0.842, allocations: 7.953 kB / 1.119 GB, free: 5.418 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.545e-06/0.842, allocations: 0 / 1.119 GB, free: 5.418 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.109e-06/0.8421, allocations: 3.938 kB / 1.119 GB, free: 5.414 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001583/0.8436, allocations: 1.111 MB / 1.12 GB, free: 4.227 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.186e-06/0.8437, allocations: 0 / 1.12 GB, free: 4.227 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000121/0.8438, allocations: 32.14 kB / 1.12 GB, free: 4.195 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004579/0.8443, allocations: 216.6 kB / 1.12 GB, free: 3.98 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.298e-05/0.8443, allocations: 8 kB / 1.12 GB, free: 3.973 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008644/0.8452, allocations: 0.9853 MB / 1.121 GB, free: 2.961 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.248e-06/0.8452, allocations: 4.031 kB / 1.121 GB, free: 2.957 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001199/0.8464, allocations: 0.8531 MB / 1.122 GB, free: 2.023 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003697/0.8468, allocations: 215.8 kB / 1.122 GB, free: 1.793 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001064/0.8469, allocations: 15.92 kB / 1.122 GB, free: 1.777 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000505/0.8474, allocations: 55.8 kB / 1.122 GB, free: 1.723 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.373e-05/0.8475, allocations: 31.91 kB / 1.122 GB, free: 1.691 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.682e-05/0.8475, allocations: 20 kB / 1.122 GB, free: 1.672 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0009378/0.8485, allocations: 0.7877 MB / 1.123 GB, free: 0.875 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8485, allocations: 0 / 1.123 GB, free: 0.875 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.00121/0.8497, allocations: 443.4 kB / 1.123 GB, free: 452 kB / 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 (12): * Single equations (assignments): 9 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 19} Notification: Performance of Backend phase and start with SimCode phase: time 0.001785/0.8515, allocations: 1.861 MB / 1.125 GB, free: 14.5 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.001904/0.8534, allocations: 1.066 MB / 1.126 GB, free: 13.4 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 3.005e-06/0.8534, allocations: 0 / 1.126 GB, free: 13.4 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 0.0004999/0.8539, allocations: 234.5 kB / 1.127 GB, free: 13.17 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00185/0.8558, allocations: 465.3 kB / 1.127 GB, free: 12.72 MB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01283/0.8686, allocations: 9.876 MB / 1.137 GB, free: 2.52 MB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007464/0.8694, allocations: 1.204 MB / 1.138 GB, free: 1.285 MB / 0.8887 GB Notification: Performance of simCode: alias equations: time 0.001002/0.8704, allocations: 335.5 kB / 1.138 GB, free: 0.9531 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003762/0.8708, allocations: 307.3 kB / 1.138 GB, free: 0.6523 MB / 0.8887 GB Notification: Performance of SimCode: time 1.082e-06/0.8708, allocations: 3.938 kB / 1.138 GB, free: 0.6484 MB / 0.8887 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04591/0.9167, allocations: 27.98 MB / 1.166 GB, free: 5.137 MB / 0.92 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002123/0.917, allocations: 265.1 kB / 1.166 GB, free: 4.785 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.25/3.167, allocations: 4.062 kB / 1.166 GB, free: 4.781 MB / 0.92 GB (rm -f Buildings_9_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesDpOptimised.pipe ; mkfifo Buildings_9_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesDpOptimised.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesDpOptimised.pipe >> ../files/Buildings_9_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesDpOptimised.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesDpOptimised_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Examples_Performance_PressureDrop_SeriesDpOptimised_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Examples_Performance_PressureDrop_SeriesDpOptimised.fmu > Buildings_9_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesDpOptimised.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesDpOptimised_res.mat does not exist to compare? outputFormat=mat