Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified4.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.FlowSystem.Simplified4,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pmpNorth.m_flow|pmpSouth.m_flow",fileNamePrefix="Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified4") translateModel(Buildings.Fluid.Examples.FlowSystem.Simplified4,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pmpNorth.m_flow|pmpSouth.m_flow",fileNamePrefix="Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified4") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.405/2.405, allocations: 387.4 MB / 394.9 MB, free: 13.43 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.001051/0.001051, allocations: 184.2 kB / 487.4 MB, free: 5.055 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.568/1.568, allocations: 221.5 MB / 0.7824 GB, free: 0.9375 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009247/0.0009247, allocations: 103 kB / 0.9219 GB, free: 2.172 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.579e-05/1.565e-05, allocations: 4 kB / 1.067 GB, free: 185.7 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2938/0.2938, allocations: 142.4 MB / 1.206 GB, free: 43.95 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.29/1.584, allocations: 462.3 MB / 1.657 GB, free: 8.68 MB / 1.073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002384/1.585, allocations: 90.2 kB / 1.658 GB, free: 8.637 MB / 1.073 GB Notification: Performance of FrontEnd - DAE generated: time 44.57/46.15, allocations: 10.5 GB / 12.16 GB, free: 96.56 MB / 1.432 GB Notification: Performance of FrontEnd: time 1.673e-06/46.15, allocations: 0 / 12.16 GB, free: 96.56 MB / 1.432 GB Notification: Performance of Transformations before backend: time 0.0033/46.16, allocations: 392.3 kB / 12.16 GB, free: 96.49 MB / 1.432 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1775 * Number of variables: 1775 Notification: Performance of Generate backend data structure: time 0.05042/46.21, allocations: 12.15 MB / 12.17 GB, free: 91.2 MB / 1.432 GB Notification: Performance of prepare preOptimizeDAE: time 4.324e-05/46.21, allocations: 13.28 kB / 12.17 GB, free: 91.2 MB / 1.432 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0195/46.23, allocations: 2.55 MB / 12.17 GB, free: 90.32 MB / 1.432 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.06675/46.29, allocations: 20.41 MB / 12.19 GB, free: 88.04 MB / 1.432 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005797/46.29, allocations: 226 kB / 12.19 GB, free: 88.04 MB / 1.432 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004454/46.3, allocations: 490 kB / 12.19 GB, free: 88.04 MB / 1.432 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03295/46.33, allocations: 18.4 MB / 12.21 GB, free: 88 MB / 1.432 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03776/46.37, allocations: 13.01 MB / 12.22 GB, free: 87.25 MB / 1.432 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005088/46.37, allocations: 14.14 kB / 12.22 GB, free: 87.25 MB / 1.432 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003786/46.37, allocations: 10.5 kB / 12.22 GB, free: 87.25 MB / 1.432 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002058/46.37, allocations: 184.8 kB / 12.22 GB, free: 87.25 MB / 1.432 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.1402/46.51, allocations: 73.45 MB / 12.29 GB, free: 53.19 MB / 1.432 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01484/46.53, allocations: 10.34 MB / 12.3 GB, free: 53.04 MB / 1.432 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01182/46.54, allocations: 8.832 MB / 12.31 GB, free: 52.95 MB / 1.432 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 evalFunc (simulation): time 0.06745/46.61, allocations: 30.26 MB / 12.34 GB, free: 44.07 MB / 1.432 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01306/46.62, allocations: 8.004 MB / 12.35 GB, free: 42.17 MB / 1.432 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0433/46.67, allocations: 14.85 MB / 12.36 GB, free: 40.84 MB / 1.432 GB Notification: Performance of pre-optimization done (n=427): time 4.471e-05/46.67, allocations: 0 / 12.36 GB, free: 40.84 MB / 1.432 GB Notification: Performance of matching and sorting (n=429): time 0.09405/46.76, allocations: 37.08 MB / 12.4 GB, free: 25.61 MB / 1.432 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.926e-05/46.76, allocations: 96.66 kB / 12.4 GB, free: 25.54 MB / 1.432 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.03112/46.79, allocations: 12.02 MB / 12.41 GB, free: 21.11 MB / 1.432 GB Notification: Performance of collectPreVariables (initialization): time 0.004354/46.8, allocations: 41.7 kB / 12.41 GB, free: 21.07 MB / 1.432 GB Notification: Performance of collectInitialEqns (initialization): time 0.009948/46.81, allocations: 6.648 MB / 12.42 GB, free: 14.98 MB / 1.432 GB Notification: Performance of collectInitialBindings (initialization): time 0.004276/46.81, allocations: 1.417 MB / 12.42 GB, free: 13.67 MB / 1.432 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00335/46.81, allocations: 0 / 12.42 GB, free: 13.67 MB / 1.432 GB Notification: Performance of setup shared object (initialization): time 0.0006698/46.81, allocations: 0.5624 MB / 12.42 GB, free: 13.18 MB / 1.432 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01121/46.82, allocations: 6.96 MB / 12.43 GB, free: 7.07 MB / 1.432 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01396/46.84, allocations: 9.561 MB / 12.44 GB, free: 13.32 MB / 1.448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01761/46.86, allocations: 8.084 MB / 12.45 GB, free: 6.48 MB / 1.448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000133/46.86, allocations: 16 kB / 12.45 GB, free: 6.465 MB / 1.448 GB Notification: Performance of matching and sorting (n=851) (initialization): time 0.06226/46.92, allocations: 22.86 MB / 12.47 GB, free: 3.395 MB / 1.464 GB Notification: Performance of prepare postOptimizeDAE: time 1.064/47.98, allocations: 34.75 MB / 12.5 GB, free: 102.8 MB / 1.464 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001781/47.98, allocations: 52.06 kB / 12.5 GB, free: 102.8 MB / 1.464 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.6469/48.63, allocations: 143.5 MB / 12.64 GB, free: 102.8 MB / 1.464 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008764/48.64, allocations: 1.532 MB / 12.64 GB, free: 102.8 MB / 1.464 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04307/48.68, allocations: 23.29 MB / 12.67 GB, free: 98.84 MB / 1.464 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02464/48.71, allocations: 0.9157 MB / 12.67 GB, free: 98.84 MB / 1.464 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004031/48.71, allocations: 0.7486 MB / 12.67 GB, free: 98.84 MB / 1.464 GB Notification: Performance of prepare postOptimizeDAE: time 1.569e-05/48.71, allocations: 3.781 kB / 12.67 GB, free: 98.84 MB / 1.464 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.5985/49.31, allocations: 103 MB / 12.77 GB, free: 96.12 MB / 1.464 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002678/49.31, allocations: 52.16 kB / 12.77 GB, free: 96.12 MB / 1.464 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.636/49.95, allocations: 143.6 MB / 12.91 GB, free: 38.38 MB / 1.464 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007487/49.95, allocations: 1.521 MB / 12.91 GB, free: 36.98 MB / 1.464 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04954/50, allocations: 25.94 MB / 12.94 GB, free: 18.12 MB / 1.464 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01872/50.02, allocations: 0.8863 MB / 12.94 GB, free: 17.3 MB / 1.464 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003994/50.03, allocations: 0.7031 MB / 12.94 GB, free: 16.65 MB / 1.464 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: pmpSouth.vol.heaFloSen.Q_flow:VARIABLE(unit = "W" protected = true ) "Heat flow from port_a to port_b as output signal" type: Real pmpNorth.vol.heaFloSen.Q_flow:VARIABLE(unit = "W" protected = true ) "Heat flow from port_a to port_b as output signal" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 237 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition1,$whenCondition2,booleanToInteger.u,booleanToInteger.y,$PRE.stepPump.pulseStart,stepPump.pulseStart,$PRE.stepValve.T_start,stepValve.T_start,$PRE.stepValve.count,stepValve.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (661): * Single equations (assignments): 649 * Array equations: 4 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 5 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 5 {1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {32 38,5 80} Notification: Performance of prepare postOptimizeDAE: time 0.005711/50.03, allocations: 307.1 kB / 12.94 GB, free: 16.48 MB / 1.464 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005644/50.04, allocations: 1.233 MB / 12.94 GB, free: 15.92 MB / 1.464 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04015/50.08, allocations: 17.11 MB / 12.96 GB, free: 5.645 MB / 1.464 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.713e-05/50.08, allocations: 52 kB / 12.96 GB, free: 5.594 MB / 1.464 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.628e-05/50.08, allocations: 0.625 kB / 12.96 GB, free: 5.594 MB / 1.464 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02054/50.1, allocations: 12.25 MB / 12.97 GB, free: 14.77 MB / 1.479 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 postOpt removeSimpleEquations (simulation): time 0.07306/50.17, allocations: 33.65 MB / 13 GB, free: 9.336 MB / 1.495 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.171e-05/50.17, allocations: 1.5 kB / 13 GB, free: 9.336 MB / 1.495 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005145/50.18, allocations: 0.8372 MB / 13 GB, free: 8.555 MB / 1.495 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.457/51.63, allocations: 40.71 MB / 13.04 GB, free: 172.7 MB / 1.51 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001899/51.63, allocations: 80.62 kB / 13.04 GB, free: 172.7 MB / 1.51 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01816/51.65, allocations: 11.92 MB / 13.05 GB, free: 168.7 MB / 1.51 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.546e-06/51.65, allocations: 2.578 kB / 13.05 GB, free: 168.7 MB / 1.51 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0883/51.74, allocations: 28.62 MB / 13.08 GB, free: 167.8 MB / 1.51 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01231/51.75, allocations: 2.746 MB / 13.08 GB, free: 167.7 MB / 1.51 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.006772/51.76, allocations: 7.234 kB / 13.08 GB, free: 167.7 MB / 1.51 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01714/51.78, allocations: 0.7097 MB / 13.08 GB, free: 167.7 MB / 1.51 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002463/51.78, allocations: 315.6 kB / 13.08 GB, free: 167.7 MB / 1.51 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002191/51.78, allocations: 220.4 kB / 13.08 GB, free: 167.7 MB / 1.51 GB Notification: Performance of sorting global known variables: time 0.02948/51.81, allocations: 8.998 MB / 13.09 GB, free: 167.3 MB / 1.51 GB Notification: Performance of sort global known variables: time 1.302e-06/51.81, allocations: 0 / 13.09 GB, free: 167.3 MB / 1.51 GB Notification: Performance of remove unused functions: time 0.05656/51.87, allocations: 6.333 MB / 13.1 GB, free: 167.3 MB / 1.51 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 8 (valSouth.vol.dynBal.U,valNorth.vol.dynBal.U,spl.vol.dynBal.U,spl1.vol.dynBal.U,pumpHea.vol.dynBal.U,spl2.vol.dynBal.U,spl3.vol.dynBal.U,pumpCoo.vol.dynBal.U) * Number of discrete variables: 7 ($whenCondition2,$whenCondition1,booleanToInteger.u,booleanToInteger.y,stepPump.pulseStart,stepValve.T_start,stepValve.count) * Number of discrete states: 1 (stepValve.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (373): * Single equations (assignments): 353 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 10 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 5 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 5 {1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {30 38,5 80} Notification: Performance of Backend phase and start with SimCode phase: time 0.01358/51.88, allocations: 5.236 MB / 13.1 GB, free: 165.4 MB / 1.51 GB Notification: Performance of simCode: created initialization part: time 0.0671/51.95, allocations: 28.19 MB / 13.13 GB, free: 164.8 MB / 1.51 GB Notification: Performance of simCode: created event and clocks part: time 1.627e-05/51.95, allocations: 2.875 kB / 13.13 GB, free: 164.8 MB / 1.51 GB Notification: Performance of simCode: created simulation system equations: time 0.01563/51.97, allocations: 6.987 MB / 13.14 GB, free: 164.7 MB / 1.51 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0423/52.01, allocations: 6.567 MB / 13.14 GB, free: 164.6 MB / 1.51 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06372/52.07, allocations: 20.18 MB / 13.16 GB, free: 160.4 MB / 1.51 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01756/52.09, allocations: 7.341 MB / 13.17 GB, free: 159.4 MB / 1.51 GB Notification: Performance of simCode: alias equations: time 0.03753/52.13, allocations: 6.194 MB / 13.18 GB, free: 159.3 MB / 1.51 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003791/52.13, allocations: 0.6904 MB / 13.18 GB, free: 159.3 MB / 1.51 GB Notification: Performance of SimCode: time 1.383e-06/52.13, allocations: 0 / 13.18 GB, free: 159.3 MB / 1.51 GB Notification: Performance of Templates: time 0.5309/52.66, allocations: 380.5 MB / 13.55 GB, free: 10.66 MB / 1.51 GB make -j1 -f Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified4.makefile (rm -f Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified4.pipe ; mkfifo Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified4.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified4.pipe >> ../files/Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified4.sim & ./Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified4 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified4.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified4_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Examples_FlowSystem_Simplified4.csv","../files/Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified4.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches