Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Examples.Performance.Example3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: translateModel(Buildings.Fluid.Examples.Performance.Example3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pump.m_flow",fileNamePrefix="Buildings_9_Buildings.Fluid.Examples.Performance.Example3") translateModel(Buildings.Fluid.Examples.Performance.Example3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pump.m_flow",fileNamePrefix="Buildings_9_Buildings.Fluid.Examples.Performance.Example3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.238/2.238, allocations: 387.1 MB / 399.7 MB, free: 9.484 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001079/0.001079, allocations: 180.9 kB / 492.3 MB, free: 0.625 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.643/1.643, allocations: 221.3 MB / 0.7871 GB, free: 12.95 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009656/0.0009654, allocations: 92.23 kB / 0.9267 GB, free: 14.02 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.196e-05/3.207e-05, allocations: 7.938 kB / 1.073 GB, free: 180.4 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3061/0.3061, allocations: 142.3 MB / 1.212 GB, free: 38.52 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.383/1.689, allocations: 402.7 MB / 1.606 GB, free: 10.76 MB / 1.026 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002641/1.689, allocations: 88.64 kB / 1.606 GB, free: 10.72 MB / 1.026 GB Notification: Performance of FrontEnd - DAE generated: time 2.928/4.617, allocations: 0.7044 GB / 2.31 GB, free: 304 MB / 1.151 GB Notification: Performance of FrontEnd: time 1.462e-06/4.617, allocations: 1.969 kB / 2.31 GB, free: 304 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0003378/4.618, allocations: 55.89 kB / 2.31 GB, free: 304 MB / 1.151 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 235 * Number of variables: 235 Notification: Performance of Generate backend data structure: time 0.005571/4.623, allocations: 1.846 MB / 2.312 GB, free: 303 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 5.458e-05/4.623, allocations: 10.41 kB / 2.312 GB, free: 303 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002552/4.626, allocations: 378.2 kB / 2.312 GB, free: 302.8 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008144/4.634, allocations: 2.558 MB / 2.315 GB, free: 301.8 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001299/4.634, allocations: 79.34 kB / 2.315 GB, free: 301.7 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004309/4.635, allocations: 107.3 kB / 2.315 GB, free: 301.7 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00279/4.637, allocations: 1.218 MB / 2.316 GB, free: 301.1 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.734e-05/4.637, allocations: 6.656 kB / 2.316 GB, free: 301.1 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001432/4.638, allocations: 46.22 kB / 2.316 GB, free: 301 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.329e-05/4.638, allocations: 27.58 kB / 2.316 GB, free: 301 MB / 1.151 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001669/4.639, allocations: 0.8846 MB / 2.317 GB, free: 300.7 MB / 1.151 GB Warning: The model contains alias variables with conflicting start and/or 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.009053/4.648, allocations: 6.667 MB / 2.324 GB, free: 295.8 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009282/4.649, allocations: 0.56 MB / 2.324 GB, free: 295.5 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005469/4.65, allocations: 375.4 kB / 2.325 GB, free: 295.4 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00365/4.654, allocations: 1.638 MB / 2.326 GB, free: 294.3 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005775/4.654, allocations: 345.3 kB / 2.327 GB, free: 294.1 MB / 1.151 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001175/4.655, allocations: 142.6 kB / 2.327 GB, free: 294.1 MB / 1.151 GB Notification: Performance of pre-optimization done (n=47): time 5.42e-06/4.655, allocations: 0 / 2.327 GB, free: 294.1 MB / 1.151 GB Notification: Performance of matching and sorting (n=47): time 0.001583/4.657, allocations: 0.7548 MB / 2.327 GB, free: 293.8 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.154e-05/4.657, allocations: 62.94 kB / 2.328 GB, free: 293.7 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002665/4.66, allocations: 1.562 MB / 2.329 GB, free: 293.1 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 9.569e-05/4.66, allocations: 44.58 kB / 2.329 GB, free: 293 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007291/4.661, allocations: 0.8498 MB / 2.33 GB, free: 292.4 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001673/4.661, allocations: 166.9 kB / 2.33 GB, free: 292.2 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.278e-05/4.661, allocations: 15.59 kB / 2.33 GB, free: 292.2 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 7.176e-05/4.661, allocations: 336.4 kB / 2.33 GB, free: 291.9 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003924/4.661, allocations: 255 kB / 2.331 GB, free: 291.8 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006056/4.662, allocations: 0.6915 MB / 2.331 GB, free: 291.1 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005629/4.662, allocations: 398.5 kB / 2.332 GB, free: 291 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.01e-05/4.662, allocations: 3.906 kB / 2.332 GB, free: 291 MB / 1.151 GB Notification: Performance of matching and sorting (n=99) (initialization): time 0.002032/4.665, allocations: 1.151 MB / 2.333 GB, free: 290.5 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.001138/4.666, allocations: 4.123 MB / 2.337 GB, free: 286.1 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.206e-05/4.666, allocations: 11.47 kB / 2.337 GB, free: 286.1 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004317/4.666, allocations: 137.5 kB / 2.337 GB, free: 286.1 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007728/4.667, allocations: 185.6 kB / 2.337 GB, free: 286.1 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006063/4.668, allocations: 0.7614 MB / 2.338 GB, free: 285.5 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001547/4.669, allocations: 109.4 kB / 2.338 GB, free: 285.5 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001136/4.669, allocations: 53 kB / 2.338 GB, free: 285.5 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.312e-05/4.669, allocations: 4.406 kB / 2.338 GB, free: 285.5 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001618/4.671, allocations: 1.012 MB / 2.339 GB, free: 285 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.271e-05/4.671, allocations: 10.59 kB / 2.339 GB, free: 285 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000224/4.671, allocations: 128.4 kB / 2.339 GB, free: 285 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005966/4.672, allocations: 174.5 kB / 2.339 GB, free: 285 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001836/4.674, allocations: 2.124 MB / 2.341 GB, free: 283.3 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001491/4.675, allocations: 108.7 kB / 2.342 GB, free: 283.3 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001076/4.675, allocations: 49.22 kB / 2.342 GB, free: 283.3 MB / 1.151 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 45 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count,from_dp.y,mergeDp.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (85): * Single equations (assignments): 82 * Array equations: 1 * 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 12} Notification: Performance of prepare postOptimizeDAE: time 0.0002998/4.676, allocations: 164.7 kB / 2.342 GB, free: 283.1 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004438/4.676, allocations: 171.1 kB / 2.342 GB, free: 283 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001932/4.678, allocations: 0.9541 MB / 2.343 GB, free: 282.6 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.203e-05/4.678, allocations: 9.219 kB / 2.343 GB, free: 282.6 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/4.678, allocations: 3.953 kB / 2.343 GB, free: 282.6 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001002/4.679, allocations: 0.8992 MB / 2.344 GB, free: 282.1 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00384/4.683, allocations: 2.139 MB / 2.346 GB, free: 281.1 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.11e-06/4.683, allocations: 0 / 2.346 GB, free: 281.1 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004719/4.683, allocations: 98.14 kB / 2.346 GB, free: 281.1 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002677/4.684, allocations: 119.8 kB / 2.346 GB, free: 281 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.814e-05/4.684, allocations: 16.52 kB / 2.346 GB, free: 281 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004348/4.684, allocations: 0.7282 MB / 2.347 GB, free: 280.4 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.215e-06/4.684, allocations: 2.562 kB / 2.347 GB, free: 280.4 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001695/4.686, allocations: 1.33 MB / 2.348 GB, free: 279.8 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008639/4.687, allocations: 324.6 kB / 2.348 GB, free: 279.5 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000426/4.687, allocations: 11.62 kB / 2.348 GB, free: 279.5 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00108/4.688, allocations: 90.34 kB / 2.348 GB, free: 279.5 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001164/4.688, allocations: 43.27 kB / 2.349 GB, free: 279.5 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.404e-05/4.688, allocations: 28.09 kB / 2.349 GB, free: 279.5 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.001816/4.69, allocations: 1.215 MB / 2.35 GB, free: 279 MB / 1.151 GB Notification: Performance of sort global known variables: time 2.1e-07/4.69, allocations: 3.938 kB / 2.35 GB, free: 279 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.003569/4.694, allocations: 0.8702 MB / 2.351 GB, free: 278.8 MB / 1.151 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (pump.vol.dynBal.U) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (41): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.001957/4.696, allocations: 0.7943 MB / 2.351 GB, free: 278.6 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.002495/4.698, allocations: 1.427 MB / 2.353 GB, free: 277.9 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 4.429e-06/4.698, allocations: 2.875 kB / 2.353 GB, free: 277.9 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.000552/4.699, allocations: 314.8 kB / 2.353 GB, free: 277.8 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003447/4.702, allocations: 0.7392 MB / 2.354 GB, free: 277.5 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00451/4.707, allocations: 2.27 MB / 2.356 GB, free: 276.3 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001233/4.708, allocations: 1.532 MB / 2.357 GB, free: 275.2 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.003153/4.711, allocations: 0.8844 MB / 2.358 GB, free: 274.9 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002809/4.712, allocations: 94.25 kB / 2.358 GB, free: 274.8 MB / 1.151 GB Notification: Performance of SimCode: time 1.333e-06/4.712, allocations: 7.781 kB / 2.358 GB, free: 274.8 MB / 1.151 GB Notification: Performance of Templates: time 0.05712/4.769, allocations: 38.27 MB / 2.396 GB, free: 237.6 MB / 1.151 GB make -j1 -f Buildings_9_Buildings.Fluid.Examples.Performance.Example3.makefile (rm -f Buildings_9_Buildings.Fluid.Examples.Performance.Example3.pipe ; mkfifo Buildings_9_Buildings.Fluid.Examples.Performance.Example3.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Examples.Performance.Example3.pipe >> ../files/Buildings_9_Buildings.Fluid.Examples.Performance.Example3.sim & ./Buildings_9_Buildings.Fluid.Examples.Performance.Example3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Examples.Performance.Example3.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Examples.Performance.Example3_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Examples_Performance_Example3.csv","../files/Buildings_9_Buildings.Fluid.Examples.Performance.Example3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches