Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified6.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.Simplified6,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pmpNorth.m_flow|pmpSouth.m_flow",fileNamePrefix="Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified6") translateModel(Buildings.Fluid.Examples.FlowSystem.Simplified6,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pmpNorth.m_flow|pmpSouth.m_flow",fileNamePrefix="Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified6") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.789/2.789, allocations: 387.4 MB / 394.9 MB, free: 13.41 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.001147/0.001147, allocations: 180.6 kB / 487.4 MB, free: 5.062 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.481/1.481, allocations: 221.5 MB / 0.7824 GB, free: 0.9531 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.001013/0.001013, allocations: 105.4 kB / 0.9219 GB, free: 2.172 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.643e-05/1.645e-05, allocations: 4 kB / 1.067 GB, free: 185.7 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3025/0.3026, allocations: 142.4 MB / 1.206 GB, free: 43.98 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.272/1.575, allocations: 463.6 MB / 1.659 GB, free: 7.508 MB / 1.073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002494/1.575, allocations: 101.3 kB / 1.659 GB, free: 7.457 MB / 1.073 GB Notification: Performance of FrontEnd - DAE generated: time 45.15/46.72, allocations: 10.66 GB / 12.32 GB, free: 43.82 MB / 1.401 GB Notification: Performance of FrontEnd: time 2.425e-06/46.72, allocations: 0 / 12.32 GB, free: 43.82 MB / 1.401 GB Notification: Performance of Transformations before backend: time 0.003824/46.72, allocations: 359.6 kB / 12.32 GB, free: 43.47 MB / 1.401 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1521 * Number of variables: 1521 Notification: Performance of Generate backend data structure: time 0.0485/46.77, allocations: 11.09 MB / 12.33 GB, free: 32.28 MB / 1.401 GB Notification: Performance of prepare preOptimizeDAE: time 5.507e-05/46.77, allocations: 12.03 kB / 12.33 GB, free: 32.27 MB / 1.401 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01733/46.79, allocations: 2.444 MB / 12.33 GB, free: 29.81 MB / 1.401 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.06247/46.85, allocations: 18.52 MB / 12.35 GB, free: 11.23 MB / 1.401 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005473/46.85, allocations: 192 kB / 12.35 GB, free: 11.04 MB / 1.401 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003778/46.86, allocations: 432 kB / 12.35 GB, free: 10.62 MB / 1.401 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01869/46.88, allocations: 6.942 MB / 12.36 GB, free: 3.676 MB / 1.401 GB Notification: Performance of preOpt clockPartitioning (simulation): time 1.557/48.43, allocations: 7.479 MB / 12.36 GB, free: 102.6 MB / 1.401 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003935/48.43, allocations: 17.09 kB / 12.36 GB, free: 102.6 MB / 1.401 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002573/48.44, allocations: 11.28 kB / 12.36 GB, free: 102.6 MB / 1.401 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003208/48.44, allocations: 156.7 kB / 12.36 GB, free: 102.6 MB / 1.401 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.1341/48.57, allocations: 49.06 MB / 12.41 GB, free: 77.09 MB / 1.401 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01073/48.58, allocations: 5.502 MB / 12.42 GB, free: 76.94 MB / 1.401 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007079/48.59, allocations: 3.979 MB / 12.42 GB, free: 76.88 MB / 1.401 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.05148/48.64, allocations: 13.58 MB / 12.43 GB, free: 73.84 MB / 1.401 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.008065/48.65, allocations: 3.176 MB / 12.44 GB, free: 73.74 MB / 1.401 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.01609/48.66, allocations: 2.282 MB / 12.44 GB, free: 73.64 MB / 1.401 GB Notification: Performance of pre-optimization done (n=326): time 4.204e-05/48.66, allocations: 0 / 12.44 GB, free: 73.64 MB / 1.401 GB Notification: Performance of matching and sorting (n=328): time 0.05232/48.72, allocations: 15.82 MB / 12.45 GB, free: 70.89 MB / 1.401 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.903e-05/48.72, allocations: 87.98 kB / 12.45 GB, free: 70.83 MB / 1.401 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02994/48.75, allocations: 11.48 MB / 12.47 GB, free: 70.16 MB / 1.401 GB Notification: Performance of collectPreVariables (initialization): time 0.001848/48.75, allocations: 38.02 kB / 12.47 GB, free: 70.13 MB / 1.401 GB Notification: Performance of collectInitialEqns (initialization): time 0.009157/48.76, allocations: 6.222 MB / 12.47 GB, free: 69.02 MB / 1.401 GB Notification: Performance of collectInitialBindings (initialization): time 0.002348/48.76, allocations: 1.08 MB / 12.47 GB, free: 68.46 MB / 1.401 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001463/48.76, allocations: 0 / 12.47 GB, free: 68.46 MB / 1.401 GB Notification: Performance of setup shared object (initialization): time 0.0005772/48.76, allocations: 0.5343 MB / 12.47 GB, free: 68.15 MB / 1.401 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005393/48.77, allocations: 3.059 MB / 12.48 GB, free: 68.12 MB / 1.401 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006971/48.77, allocations: 5.8 MB / 12.48 GB, free: 64.81 MB / 1.401 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009087/48.78, allocations: 4 MB / 12.49 GB, free: 64.73 MB / 1.401 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001447/48.78, allocations: 16.59 kB / 12.49 GB, free: 64.73 MB / 1.401 GB Notification: Performance of matching and sorting (n=771) (initialization): time 0.02763/48.81, allocations: 10.81 MB / 12.5 GB, free: 63.89 MB / 1.401 GB Notification: Performance of prepare postOptimizeDAE: time 0.01558/48.83, allocations: 38.43 MB / 12.53 GB, free: 56.06 MB / 1.432 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003402/48.83, allocations: 59.97 kB / 12.53 GB, free: 56.06 MB / 1.432 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003552/48.83, allocations: 1.348 MB / 12.54 GB, free: 56 MB / 1.432 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00917/48.84, allocations: 1.433 MB / 12.54 GB, free: 56 MB / 1.432 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01148/48.85, allocations: 9.708 MB / 12.55 GB, free: 50.42 MB / 1.432 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01568/48.87, allocations: 0.7733 MB / 12.55 GB, free: 50.39 MB / 1.432 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002269/48.87, allocations: 417 kB / 12.55 GB, free: 50.39 MB / 1.432 GB Notification: Performance of prepare postOptimizeDAE: time 1.633e-05/48.87, allocations: 5.469 kB / 12.55 GB, free: 50.39 MB / 1.432 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02195/48.89, allocations: 8.559 MB / 12.56 GB, free: 50.2 MB / 1.432 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003345/48.89, allocations: 59.78 kB / 12.56 GB, free: 50.2 MB / 1.432 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004092/48.9, allocations: 1.469 MB / 12.56 GB, free: 50.15 MB / 1.432 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007697/48.9, allocations: 1.421 MB / 12.56 GB, free: 50.15 MB / 1.432 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02289/48.93, allocations: 12.54 MB / 12.57 GB, free: 45.72 MB / 1.432 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01402/48.94, allocations: 0.75 MB / 12.57 GB, free: 45.7 MB / 1.432 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002029/48.94, allocations: 376.9 kB / 12.57 GB, free: 45.7 MB / 1.432 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: pmpNorth.vol.heaFloSen.Q_flow:VARIABLE(unit = "W" protected = true ) "Heat flow from port_a to port_b as output signal" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: pumpHea.vol.heaFloSen.Q_flow:VARIABLE(unit = "W" protected = true ) "Heat flow from port_a to port_b as output signal" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: pumpCoo.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: 269 * 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 (640): * Single equations (assignments): 625 * 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: 5 * 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: 5 {1 4,1 2,1 2,1 2,4 81} Notification: Performance of prepare postOptimizeDAE: time 0.003542/48.95, allocations: 312.4 kB / 12.57 GB, free: 45.59 MB / 1.432 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004761/48.95, allocations: 1.156 MB / 12.57 GB, free: 44.95 MB / 1.432 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02047/48.97, allocations: 7.701 MB / 12.58 GB, free: 44.55 MB / 1.432 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.303e-05/48.97, allocations: 40.61 kB / 12.58 GB, free: 44.55 MB / 1.432 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.664e-05/48.97, allocations: 1.406 kB / 12.58 GB, free: 44.55 MB / 1.432 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01004/48.98, allocations: 5.781 MB / 12.59 GB, free: 44.11 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 postOpt removeSimpleEquations (simulation): time 0.04351/49.03, allocations: 16.35 MB / 12.6 GB, free: 42.68 MB / 1.432 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.455e-05/49.03, allocations: 2.375 kB / 12.6 GB, free: 42.68 MB / 1.432 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003736/49.03, allocations: 0.64 MB / 12.6 GB, free: 42.68 MB / 1.432 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002361/49.03, allocations: 1.129 MB / 12.6 GB, free: 42.62 MB / 1.432 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005986/49.03, allocations: 55.62 kB / 12.6 GB, free: 42.62 MB / 1.432 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008999/49.04, allocations: 8.104 MB / 12.61 GB, free: 53.04 MB / 1.448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.897e-06/49.04, allocations: 7.094 kB / 12.61 GB, free: 53.04 MB / 1.448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01903/49.06, allocations: 10.58 MB / 12.62 GB, free: 51.58 MB / 1.448 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00893/49.07, allocations: 2.187 MB / 12.62 GB, free: 50.84 MB / 1.448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004928/49.07, allocations: 8.516 kB / 12.62 GB, free: 50.84 MB / 1.448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01183/49.09, allocations: 0.6567 MB / 12.63 GB, free: 50.82 MB / 1.448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009485/49.09, allocations: 222.5 kB / 12.63 GB, free: 50.81 MB / 1.448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009311/49.09, allocations: 174.3 kB / 12.63 GB, free: 50.81 MB / 1.448 GB Notification: Performance of sorting global known variables: time 0.02418/49.11, allocations: 8.572 MB / 12.63 GB, free: 50.46 MB / 1.448 GB Notification: Performance of sort global known variables: time 2.9e-07/49.11, allocations: 0 / 12.63 GB, free: 50.46 MB / 1.448 GB Notification: Performance of remove unused functions: time 0.04274/49.16, allocations: 5.209 MB / 12.64 GB, free: 50.46 MB / 1.448 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 3 (valSouth.vol.dynBal.U,valNorth.vol.dynBal.U,heater.outCon.T) * 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 (274): * Single equations (assignments): 251 * 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: 5 * 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: 5 {1 2,1 4,1 2,1 2,5 80} Notification: Performance of Backend phase and start with SimCode phase: time 0.01126/49.17, allocations: 4.717 MB / 12.64 GB, free: 48.64 MB / 1.448 GB Notification: Performance of simCode: created initialization part: time 0.03094/49.2, allocations: 12.02 MB / 12.66 GB, free: 48.13 MB / 1.448 GB Notification: Performance of simCode: created event and clocks part: time 1.086e-05/49.2, allocations: 3.125 kB / 12.66 GB, free: 48.13 MB / 1.448 GB Notification: Performance of simCode: created simulation system equations: time 0.00553/49.2, allocations: 2.692 MB / 12.66 GB, free: 48.1 MB / 1.448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.03389/49.24, allocations: 5.749 MB / 12.66 GB, free: 48.04 MB / 1.448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04369/49.28, allocations: 16.73 MB / 12.68 GB, free: 44.21 MB / 1.448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01519/49.3, allocations: 6.747 MB / 12.69 GB, free: 43.25 MB / 1.448 GB Notification: Performance of simCode: alias equations: time 0.05324/49.35, allocations: 5.912 MB / 12.69 GB, free: 42.95 MB / 1.448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003959/49.35, allocations: 0.5704 MB / 12.69 GB, free: 42.93 MB / 1.448 GB Notification: Performance of SimCode: time 1.413e-06/49.35, allocations: 3.375 kB / 12.69 GB, free: 42.93 MB / 1.448 GB Notification: Performance of Templates: time 2.386/51.74, allocations: 234.5 MB / 12.92 GB, free: 163.6 MB / 1.464 GB make -j1 -f Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified6.makefile (rm -f Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified6.pipe ; mkfifo Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified6.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified6.pipe >> ../files/Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified6.sim & ./Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified6 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified6.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified6_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Examples_FlowSystem_Simplified6.csv","../files/Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified6.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches