Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.Examples.FlowSystem.Simplified6.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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_maint.7.0.x_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_maint.7.0.x_Buildings.Fluid.Examples.FlowSystem.Simplified6") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.443/1.443, allocations: 249.5 MB / 257 MB, free: 6.895 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001075/0.001075, allocations: 176.9 kB / 316.3 MB, free: 3.234 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.607/1.607, allocations: 205.3 MB / 0.5672 GB, free: 15.79 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008534/0.0008534, allocations: 87.45 kB / 0.6714 GB, free: 4.914 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.556e-05/1.559e-05, allocations: 4 kB / 0.7814 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2283/0.2283, allocations: 106.3 MB / 0.8852 GB, free: 12.25 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.68/1.909, allocations: 458.7 MB / 1.333 GB, free: 286.4 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000312/1.909, allocations: 95.94 kB / 1.333 GB, free: 286.3 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 42.74/44.65, allocations: 10.16 GB / 11.49 GB, free: 80.15 MB / 1.135 GB Notification: Performance of FrontEnd: time 2.685e-06/44.65, allocations: 1.688 kB / 11.49 GB, free: 80.15 MB / 1.135 GB Notification: Performance of Transformations before backend: time 0.003367/44.65, allocations: 349.4 kB / 11.49 GB, free: 80.09 MB / 1.135 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.04369/44.7, allocations: 11.05 MB / 11.51 GB, free: 75.25 MB / 1.135 GB Notification: Performance of prepare preOptimizeDAE: time 4.569e-05/44.7, allocations: 11.28 kB / 11.51 GB, free: 75.25 MB / 1.135 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01353/44.71, allocations: 2.07 MB / 11.51 GB, free: 74.46 MB / 1.135 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.06153/44.77, allocations: 18.24 MB / 11.53 GB, free: 72.36 MB / 1.135 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007079/44.77, allocations: 195.9 kB / 11.53 GB, free: 72.36 MB / 1.135 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003943/44.78, allocations: 442.8 kB / 11.53 GB, free: 72.36 MB / 1.135 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01996/44.8, allocations: 6.831 MB / 11.53 GB, free: 72.34 MB / 1.135 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0234/44.82, allocations: 7.4 MB / 11.54 GB, free: 71.29 MB / 1.135 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000161/44.82, allocations: 24.2 kB / 11.54 GB, free: 71.29 MB / 1.135 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007876/44.82, allocations: 13.88 kB / 11.54 GB, free: 71.29 MB / 1.135 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000144/44.82, allocations: 154.6 kB / 11.54 GB, free: 71.29 MB / 1.135 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.08863/44.91, allocations: 48.6 MB / 11.59 GB, free: 44.66 MB / 1.135 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009644/44.92, allocations: 5.384 MB / 11.59 GB, free: 44.52 MB / 1.135 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006155/44.93, allocations: 3.932 MB / 11.6 GB, free: 44.45 MB / 1.135 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.04006/44.97, allocations: 13.38 MB / 11.61 GB, free: 41.3 MB / 1.135 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006221/44.97, allocations: 3.102 MB / 11.61 GB, free: 41.2 MB / 1.135 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.01417/44.99, allocations: 2.284 MB / 11.61 GB, free: 41 MB / 1.135 GB Notification: Performance of pre-optimization done (n=326): time 2.317e-05/44.99, allocations: 0 / 11.61 GB, free: 41 MB / 1.135 GB Notification: Performance of matching and sorting (n=328): time 0.05458/45.04, allocations: 15.6 MB / 11.63 GB, free: 38.18 MB / 1.135 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.769e-05/45.04, allocations: 87.22 kB / 11.63 GB, free: 38.12 MB / 1.135 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.03463/45.08, allocations: 11.32 MB / 11.64 GB, free: 37.39 MB / 1.135 GB Notification: Performance of collectPreVariables (initialization): time 0.001929/45.08, allocations: 39.42 kB / 11.64 GB, free: 37.36 MB / 1.135 GB Notification: Performance of collectInitialEqns (initialization): time 0.009628/45.09, allocations: 6.185 MB / 11.65 GB, free: 35.87 MB / 1.135 GB Notification: Performance of collectInitialBindings (initialization): time 0.002375/45.09, allocations: 1.082 MB / 11.65 GB, free: 35.16 MB / 1.135 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001529/45.09, allocations: 2.875 kB / 11.65 GB, free: 35.16 MB / 1.135 GB Notification: Performance of setup shared object (initialization): time 0.0006116/45.09, allocations: 0.5396 MB / 11.65 GB, free: 34.84 MB / 1.135 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005709/45.1, allocations: 3 MB / 11.65 GB, free: 34.82 MB / 1.135 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007866/45.11, allocations: 5.756 MB / 11.66 GB, free: 31.48 MB / 1.135 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009998/45.12, allocations: 3.956 MB / 11.66 GB, free: 31.31 MB / 1.135 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001514/45.12, allocations: 16.75 kB / 11.66 GB, free: 31.31 MB / 1.135 GB Notification: Performance of matching and sorting (n=771) (initialization): time 0.02894/45.15, allocations: 10.69 MB / 11.67 GB, free: 30.4 MB / 1.135 GB Notification: Performance of prepare postOptimizeDAE: time 0.01147/45.16, allocations: 38.35 MB / 11.71 GB, free: 6.352 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002893/45.16, allocations: 57 kB / 11.71 GB, free: 6.352 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003444/45.16, allocations: 1.35 MB / 11.71 GB, free: 6.27 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00836/45.17, allocations: 1.394 MB / 11.71 GB, free: 6.262 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01098/45.18, allocations: 9.715 MB / 11.72 GB, free: 16.66 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01509/45.2, allocations: 0.741 MB / 11.72 GB, free: 16.55 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002382/45.2, allocations: 412.1 kB / 11.72 GB, free: 16.55 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 2.051e-05/45.2, allocations: 7.625 kB / 11.72 GB, free: 16.55 MB / 1.167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02649/45.23, allocations: 8.45 MB / 11.73 GB, free: 16.29 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002746/45.23, allocations: 59 kB / 11.73 GB, free: 16.29 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004192/45.23, allocations: 1.472 MB / 11.73 GB, free: 16.2 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007173/45.24, allocations: 1.384 MB / 11.73 GB, free: 16.2 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02202/45.26, allocations: 12.54 MB / 11.75 GB, free: 11.72 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01406/45.27, allocations: 0.7088 MB / 11.75 GB, free: 11.63 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002104/45.28, allocations: 380.1 kB / 11.75 GB, free: 11.62 MB / 1.167 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.003785/45.28, allocations: 314 kB / 11.75 GB, free: 11.47 MB / 1.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004342/45.28, allocations: 1.133 MB / 11.75 GB, free: 10.84 MB / 1.167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02139/45.31, allocations: 7.555 MB / 11.76 GB, free: 10.31 MB / 1.167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.025e-05/45.31, allocations: 46.06 kB / 11.76 GB, free: 10.3 MB / 1.167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.747e-05/45.31, allocations: 0 / 11.76 GB, free: 10.3 MB / 1.167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01051/45.32, allocations: 5.697 MB / 11.76 GB, free: 9.77 MB / 1.167 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.04617/45.36, allocations: 16.05 MB / 11.78 GB, free: 8.211 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.167e-05/45.36, allocations: 0 / 11.78 GB, free: 8.211 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003742/45.37, allocations: 0.6079 MB / 11.78 GB, free: 8.18 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002418/45.37, allocations: 1.124 MB / 11.78 GB, free: 8.094 MB / 1.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007934/45.37, allocations: 61.83 kB / 11.78 GB, free: 8.094 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007058/45.38, allocations: 8.1 MB / 11.79 GB, free: 2.496 MB / 1.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.211e-06/45.38, allocations: 2.516 kB / 11.79 GB, free: 2.496 MB / 1.167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0226/45.4, allocations: 10.38 MB / 11.8 GB, free: 14.61 MB / 1.182 GB Notification: Performance of postOpt removeConstants (simulation): time 0.009382/45.41, allocations: 2.134 MB / 11.8 GB, free: 13.41 MB / 1.182 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005219/45.41, allocations: 3.656 kB / 11.8 GB, free: 13.41 MB / 1.182 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01275/45.43, allocations: 0.6162 MB / 11.8 GB, free: 13.06 MB / 1.182 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001417/45.43, allocations: 240.4 kB / 11.8 GB, free: 12.91 MB / 1.182 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001295/45.43, allocations: 164.4 kB / 11.8 GB, free: 12.78 MB / 1.182 GB Notification: Performance of sorting global known variables: time 0.02844/45.46, allocations: 8.454 MB / 11.81 GB, free: 5.469 MB / 1.182 GB Notification: Performance of sort global known variables: time 3.91e-07/45.46, allocations: 4 kB / 11.81 GB, free: 5.465 MB / 1.182 GB Notification: Performance of remove unused functions: time 0.04416/45.5, allocations: 5.116 MB / 11.81 GB, free: 408 kB / 1.182 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 1.035/46.54, allocations: 4.685 MB / 11.82 GB, free: 127.3 MB / 1.182 GB Notification: Performance of simCode: created initialization part: time 0.02941/46.57, allocations: 11.85 MB / 11.83 GB, free: 126.9 MB / 1.182 GB Notification: Performance of simCode: created event and clocks part: time 9.698e-06/46.57, allocations: 2.406 kB / 11.83 GB, free: 126.9 MB / 1.182 GB Notification: Performance of simCode: created simulation system equations: time 0.005694/46.57, allocations: 2.634 MB / 11.83 GB, free: 126.9 MB / 1.182 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.03623/46.61, allocations: 5.826 MB / 11.84 GB, free: 126.8 MB / 1.182 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04217/46.65, allocations: 16.52 MB / 11.85 GB, free: 123 MB / 1.182 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009285/46.66, allocations: 6.683 MB / 11.86 GB, free: 122.1 MB / 1.182 GB Notification: Performance of simCode: alias equations: time 0.02956/46.69, allocations: 5.834 MB / 11.87 GB, free: 122 MB / 1.182 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002913/46.69, allocations: 0.562 MB / 11.87 GB, free: 122 MB / 1.182 GB Notification: Performance of SimCode: time 1.242e-06/46.69, allocations: 0 / 11.87 GB, free: 122 MB / 1.182 GB Notification: Performance of Templates: time 0.3727/47.07, allocations: 233.6 MB / 12.09 GB, free: 103.3 MB / 1.182 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.Examples.FlowSystem.Simplified6.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Examples.FlowSystem.Simplified6.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Examples.FlowSystem.Simplified6.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Examples.FlowSystem.Simplified6.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Examples.FlowSystem.Simplified6.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.Examples.FlowSystem.Simplified6 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.Examples.FlowSystem.Simplified6.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Fluid.Examples.FlowSystem.Simplified6_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Fluid_Examples_FlowSystem_Simplified6.csv","../files/Buildings_maint.7.0.x_Buildings.Fluid.Examples.FlowSystem.Simplified6.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches