Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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: translateModel(Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sin.ports.1..m_flow",fileNamePrefix="Buildings_latest_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised") translateModel(Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sin.ports.1..m_flow",fileNamePrefix="Buildings_latest_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001161/0.001161, allocations: 100.1 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.001372/0.001372, allocations: 177.3 kB / 15.95 MB, free: 216 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.378/1.378, allocations: 223.2 MB / 239.9 MB, free: 5.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.511/2.511, allocations: 436.5 MB / 0.7104 GB, free: 7.867 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003182/0.0003182, allocations: 12 kB / 0.8708 GB, free: 4.805 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6291/0.6294, allocations: 153.7 MB / 1.021 GB, free: 1.117 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised): time 0.1405/0.7699, allocations: 135.7 MB / 1.153 GB, free: 9.059 MB / 0.9044 GB Notification: Performance of NFInst.instExpressions: time 0.002563/0.7725, allocations: 1.684 MB / 1.155 GB, free: 7.371 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002151/0.7728, allocations: 15.88 kB / 1.155 GB, free: 7.355 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.0005385/0.7733, allocations: 175.2 kB / 1.155 GB, free: 7.184 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.001142/0.7745, allocations: 0.4986 MB / 1.156 GB, free: 6.684 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009709/0.7755, allocations: 401.5 kB / 1.156 GB, free: 6.297 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.00174/0.7772, allocations: 1.499 MB / 1.158 GB, free: 4.797 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009057/0.7781, allocations: 0.6916 MB / 1.158 GB, free: 4.098 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0009572/0.7791, allocations: 0.7007 MB / 1.159 GB, free: 3.395 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005644/0.7797, allocations: 0.49 MB / 1.159 GB, free: 2.902 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 7.174e-05/0.7797, allocations: 32 kB / 1.159 GB, free: 2.871 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007945/0.7805, allocations: 411.4 kB / 1.16 GB, free: 2.469 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0002285/0.7808, allocations: 255.1 kB / 1.16 GB, free: 2.219 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.0002038/0.781, allocations: 241.1 kB / 1.16 GB, free: 1.977 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.0008874/0.7819, allocations: 0.9626 MB / 1.161 GB, free: 1.012 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 2.214e-06/0.7819, allocations: 0 / 1.161 GB, free: 1.012 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.653e-06/0.7819, allocations: 0 / 1.161 GB, free: 1.012 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 1.472e-05/0.7819, allocations: 0 / 1.161 GB, free: 1.012 MB / 0.9044 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.002/0.7839, allocations: 1.284 MB / 1.162 GB, free: 15.67 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.762e-05/0.784, allocations: 15.98 kB / 1.162 GB, free: 15.65 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007189/0.7847, allocations: 182.5 kB / 1.163 GB, free: 15.47 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001427/0.7861, allocations: 0.7962 MB / 1.163 GB, free: 14.62 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.441e-05/0.7862, allocations: 45 kB / 1.163 GB, free: 14.57 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.936e-05/0.7863, allocations: 60 kB / 1.163 GB, free: 14.52 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001074/0.7874, allocations: 0.7888 MB / 1.164 GB, free: 13.65 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.059e-05/0.7874, allocations: 7.938 kB / 1.164 GB, free: 13.64 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.749e-05/0.7875, allocations: 23.95 kB / 1.164 GB, free: 13.62 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.56e-05/0.7875, allocations: 16 kB / 1.164 GB, free: 13.61 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009116/0.7884, allocations: 0.55 MB / 1.165 GB, free: 13.05 MB / 0.92 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.003806/0.7922, allocations: 4.595 MB / 1.169 GB, free: 8.078 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007072/0.7929, allocations: 446.3 kB / 1.17 GB, free: 7.633 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 5.676e-05/0.793, allocations: 15.98 kB / 1.17 GB, free: 7.617 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005061/0.7935, allocations: 297.6 kB / 1.17 GB, free: 7.305 MB / 0.92 GB Notification: Performance of pre-optimization done (n=31): time 1.974e-06/0.7935, allocations: 0 / 1.17 GB, free: 7.305 MB / 0.92 GB Notification: Performance of matching and sorting (n=31): time 0.00131/0.7949, allocations: 0.6415 MB / 1.171 GB, free: 6.656 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.85e-05/0.7949, allocations: 114.8 kB / 1.171 GB, free: 6.52 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001226/0.7962, allocations: 1.11 MB / 1.172 GB, free: 5.391 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 4.603e-05/0.7962, allocations: 37.69 kB / 1.172 GB, free: 5.348 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003697/0.7966, allocations: 496.1 kB / 1.172 GB, free: 4.855 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 8.993e-05/0.7967, allocations: 98.56 kB / 1.172 GB, free: 4.758 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.573e-05/0.7967, allocations: 16 kB / 1.172 GB, free: 4.742 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 9.504e-05/0.7968, allocations: 326 kB / 1.173 GB, free: 4.418 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003518/0.7972, allocations: 184.7 kB / 1.173 GB, free: 4.238 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005403/0.7977, allocations: 0.494 MB / 1.173 GB, free: 3.605 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004296/0.7982, allocations: 298.6 kB / 1.174 GB, free: 3.309 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.268e-06/0.7982, allocations: 0 / 1.174 GB, free: 3.309 MB / 0.92 GB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001053/0.7992, allocations: 0.6792 MB / 1.174 GB, free: 2.617 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006879/0.7999, allocations: 2.135 MB / 1.177 GB, free: 324 kB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.066e-05/0.8, allocations: 4 kB / 1.177 GB, free: 320 kB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.358e-05/0.8, allocations: 8 kB / 1.177 GB, free: 312 kB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004266/0.8004, allocations: 119.8 kB / 1.177 GB, free: 192 kB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.233e-05/0.8005, allocations: 8 kB / 1.177 GB, free: 184 kB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007049/0.8012, allocations: 115.2 kB / 1.177 GB, free: 68 kB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.171e-05/0.8012, allocations: 24 kB / 1.177 GB, free: 44 kB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 8.215e-06/0.8012, allocations: 4 kB / 1.177 GB, free: 40 kB / 0.92 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008808/0.8021, allocations: 0.5443 MB / 1.177 GB, free: 15.48 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.787e-06/0.8021, allocations: 8 kB / 1.177 GB, free: 15.48 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.887e-06/0.8022, allocations: 8 kB / 1.177 GB, free: 15.47 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003706/0.8025, allocations: 107.8 kB / 1.177 GB, free: 15.36 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.307e-06/0.8026, allocations: 8 kB / 1.177 GB, free: 15.36 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006393/0.8032, allocations: 95.75 kB / 1.178 GB, free: 15.26 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.849e-05/0.8033, allocations: 31.92 kB / 1.178 GB, free: 15.23 MB / 0.9356 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.00044/0.8037, allocations: 462.5 kB / 1.178 GB, free: 14.77 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001125/0.8038, allocations: 106.7 kB / 1.178 GB, free: 14.66 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008099/0.8046, allocations: 488.1 kB / 1.179 GB, free: 14.18 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.302e-06/0.8047, allocations: 4 kB / 1.179 GB, free: 14.17 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.199e-06/0.8047, allocations: 0 / 1.179 GB, free: 14.17 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.869e-06/0.8047, allocations: 3.938 kB / 1.179 GB, free: 14.17 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001478/0.8062, allocations: 1.102 MB / 1.18 GB, free: 12.99 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.036e-06/0.8062, allocations: 0 / 1.18 GB, free: 12.99 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002569/0.8064, allocations: 67.89 kB / 1.18 GB, free: 12.93 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.103e-06/0.8064, allocations: 4 kB / 1.18 GB, free: 12.92 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.184e-05/0.8065, allocations: 8 kB / 1.18 GB, free: 12.91 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.358e-06/0.8065, allocations: 4.203 kB / 1.18 GB, free: 12.91 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.016e-06/0.8065, allocations: 11.98 kB / 1.18 GB, free: 12.9 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008152/0.8073, allocations: 0.6324 MB / 1.18 GB, free: 12.19 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003474/0.8077, allocations: 223.8 kB / 1.181 GB, free: 11.95 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001215/0.8078, allocations: 11.98 kB / 1.181 GB, free: 11.94 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004772/0.8083, allocations: 55.8 kB / 1.181 GB, free: 11.88 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.484e-05/0.8084, allocations: 35.84 kB / 1.181 GB, free: 11.85 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.118e-05/0.8084, allocations: 8 kB / 1.181 GB, free: 11.84 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0009462/0.8094, allocations: 0.7875 MB / 1.181 GB, free: 11.04 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.41e-07/0.8094, allocations: 4 kB / 1.181 GB, free: 11.04 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.001039/0.8104, allocations: 403.4 kB / 1.182 GB, free: 10.64 MB / 0.9356 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.000389/0.8108, allocations: 177.8 kB / 1.182 GB, free: 10.47 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.001281/0.8121, allocations: 0.8011 MB / 1.183 GB, free: 9.645 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 3.326e-06/0.8121, allocations: 0 / 1.183 GB, free: 9.645 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0003702/0.8125, allocations: 204.2 kB / 1.183 GB, free: 9.445 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001897/0.8144, allocations: 463.2 kB / 1.183 GB, free: 9 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002637/0.8171, allocations: 1.954 MB / 1.185 GB, free: 6.992 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006931/0.8178, allocations: 1.208 MB / 1.187 GB, free: 5.75 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 0.001037/0.8188, allocations: 419.5 kB / 1.187 GB, free: 5.336 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001711/0.819, allocations: 75.42 kB / 1.187 GB, free: 5.266 MB / 0.9356 GB Notification: Performance of SimCode: time 4.5e-07/0.819, allocations: 0 / 1.187 GB, free: 5.266 MB / 0.9356 GB Notification: Performance of Templates: time 0.02657/0.8456, allocations: 15.99 MB / 1.203 GB, free: 5.48 MB / 0.9512 GB make -j1 -f Buildings_latest_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised.makefile (rm -f Buildings_latest_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised.pipe >> ../files/Buildings_latest_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised.sim & ./Buildings_latest_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Examples_Performance_PressureDrop_SeriesFlowOptimised.csv","../files/Buildings_latest_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches