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.375/1.375, allocations: 251.9 MB / 266.9 MB, free: 11.01 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001131/0.001131, allocations: 190 kB / 326.5 MB, free: 2.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.917/1.917, allocations: 205.4 MB / 0.5775 GB, free: 20.29 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.000819/0.0008191, allocations: 83.88 kB / 0.6821 GB, free: 12.89 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0004176/0.0004176, allocations: 9.125 kB / 0.7962 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2626/0.263, allocations: 106.3 MB / 0.9001 GB, free: 63.95 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.056/1.319, allocations: 458.5 MB / 1.348 GB, free: 6.543 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002952/1.319, allocations: 107.4 kB / 1.348 GB, free: 6.484 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 43.6/44.92, allocations: 10.24 GB / 11.59 GB, free: 84.73 MB / 1.135 GB Notification: Performance of FrontEnd: time 3.396e-06/44.92, allocations: 0 / 11.59 GB, free: 84.73 MB / 1.135 GB Notification: Performance of Transformations before backend: time 0.003926/44.92, allocations: 340.3 kB / 11.59 GB, free: 84.63 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.07431/45, allocations: 17.44 MB / 11.6 GB, free: 77.77 MB / 1.135 GB Notification: Performance of prepare preOptimizeDAE: time 4.897e-05/45, allocations: 7.312 kB / 11.6 GB, free: 77.77 MB / 1.135 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01462/45.01, allocations: 2.077 MB / 11.61 GB, free: 76.95 MB / 1.135 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.06485/45.08, allocations: 18.45 MB / 11.62 GB, free: 65.38 MB / 1.135 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001146/45.08, allocations: 0.5273 MB / 11.62 GB, free: 64.85 MB / 1.135 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004662/45.08, allocations: 0.707 MB / 11.63 GB, free: 64.14 MB / 1.135 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02948/45.11, allocations: 8.459 MB / 11.63 GB, free: 56.24 MB / 1.135 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004557/45.11, allocations: 18.27 kB / 11.63 GB, free: 56.22 MB / 1.135 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003035/45.12, allocations: 252 kB / 11.63 GB, free: 55.98 MB / 1.135 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001929/45.12, allocations: 156 kB / 11.63 GB, free: 55.82 MB / 1.135 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01994/45.14, allocations: 6.893 MB / 11.64 GB, free: 48.92 MB / 1.135 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.09543/45.23, allocations: 49.71 MB / 11.69 GB, free: 11.77 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01173/45.24, allocations: 4.847 MB / 11.69 GB, free: 6.93 MB / 1.151 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 evalFunc (simulation): time 1.099/46.34, allocations: 13.39 MB / 11.71 GB, free: 108.3 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007815/46.35, allocations: 3.322 MB / 11.71 GB, free: 108.2 MB / 1.151 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0143/46.36, allocations: 2.445 MB / 11.71 GB, free: 108.2 MB / 1.151 GB Notification: Performance of pre-optimization done (n=327): time 4.241e-05/46.36, allocations: 0.9375 kB / 11.71 GB, free: 108.2 MB / 1.151 GB Notification: Performance of matching and sorting (n=516): time 0.1604/46.52, allocations: 44.67 MB / 11.76 GB, free: 101.7 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001064/46.52, allocations: 108 kB / 11.76 GB, free: 101.6 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.03557/46.56, allocations: 12.18 MB / 11.77 GB, free: 100.9 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 0.002553/46.56, allocations: 177.6 kB / 11.77 GB, free: 100.9 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.01127/46.57, allocations: 6.222 MB / 11.77 GB, free: 99.82 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.003618/46.58, allocations: 1.744 MB / 11.78 GB, free: 98.93 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002071/46.58, allocations: 143.2 kB / 11.78 GB, free: 98.93 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 0.0007956/46.58, allocations: 0.6007 MB / 11.78 GB, free: 98.61 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01123/46.59, allocations: 4.385 MB / 11.78 GB, free: 98.6 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01451/46.61, allocations: 7.311 MB / 11.79 GB, free: 95.25 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0133/46.62, allocations: 5.19 MB / 11.79 GB, free: 95.09 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001562/46.62, allocations: 15.03 kB / 11.79 GB, free: 95.09 MB / 1.151 GB Notification: Performance of matching and sorting (n=959) (initialization): time 0.04187/46.66, allocations: 14.89 MB / 11.81 GB, free: 94.05 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.009087/46.67, allocations: 38.51 MB / 11.85 GB, free: 54.2 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002433/46.67, allocations: 61.31 kB / 11.85 GB, free: 54.2 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008887/46.68, allocations: 3.511 MB / 11.85 GB, free: 54.11 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01194/46.69, allocations: 1.788 MB / 11.85 GB, free: 54.11 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01439/46.71, allocations: 12.37 MB / 11.86 GB, free: 47.36 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01719/46.72, allocations: 1.125 MB / 11.86 GB, free: 47.34 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003448/46.73, allocations: 490.8 kB / 11.86 GB, free: 47.34 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.933e-05/46.73, allocations: 6.188 kB / 11.86 GB, free: 47.34 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.04322/46.77, allocations: 13.89 MB / 11.88 GB, free: 46.98 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004619/46.77, allocations: 63.73 kB / 11.88 GB, free: 46.98 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009447/46.78, allocations: 3.792 MB / 11.88 GB, free: 46.89 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009808/46.79, allocations: 1.773 MB / 11.88 GB, free: 46.89 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03183/46.82, allocations: 17.36 MB / 11.9 GB, free: 41.11 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01802/46.84, allocations: 1.106 MB / 11.9 GB, free: 41.09 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002694/46.84, allocations: 447.3 kB / 11.9 GB, free: 41.09 MB / 1.151 GB 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (738): * Single equations (assignments): 721 * Array equations: 4 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 6 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 6 {1,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: 6 {1 2,1 4,1 2,1 2,6 82,6 82} Notification: Performance of prepare postOptimizeDAE: time 0.01123/46.85, allocations: 3.116 MB / 11.9 GB, free: 40.9 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005069/46.86, allocations: 1.203 MB / 11.91 GB, free: 40.23 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03542/46.89, allocations: 13.31 MB / 11.92 GB, free: 39.66 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001004/46.9, allocations: 62.27 kB / 11.92 GB, free: 39.66 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.676e-05/46.9, allocations: 2.438 kB / 11.92 GB, free: 39.66 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02407/46.92, allocations: 10.69 MB / 11.93 GB, free: 39.08 MB / 1.151 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 postOpt removeSimpleEquations (simulation): time 0.07326/46.99, allocations: 25.03 MB / 11.95 GB, free: 36.89 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.254e-05/46.99, allocations: 6.344 kB / 11.95 GB, free: 36.89 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007043/47, allocations: 1.089 MB / 11.96 GB, free: 36.88 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006319/47.01, allocations: 2.386 MB / 11.96 GB, free: 36.71 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001388/47.01, allocations: 174.1 kB / 11.96 GB, free: 36.7 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009024/47.02, allocations: 10.98 MB / 11.97 GB, free: 29.97 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.195e-05/47.02, allocations: 10.81 kB / 11.97 GB, free: 29.97 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04224/47.06, allocations: 19.94 MB / 11.99 GB, free: 25.69 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01227/47.07, allocations: 2.525 MB / 11.99 GB, free: 24.91 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00653/47.08, allocations: 107.4 kB / 11.99 GB, free: 24.91 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0144/47.09, allocations: 0.9128 MB / 11.99 GB, free: 24.83 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001855/47.09, allocations: 389.8 kB / 11.99 GB, free: 24.82 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001545/47.1, allocations: 258.5 kB / 11.99 GB, free: 24.82 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.02704/47.12, allocations: 9.288 MB / 12 GB, free: 24.46 MB / 1.151 GB Notification: Performance of sort global known variables: time 7.71e-07/47.12, allocations: 5.844 kB / 12 GB, free: 24.46 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.04811/47.17, allocations: 5.957 MB / 12.01 GB, free: 24.46 MB / 1.151 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 29 * 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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (439): * Single equations (assignments): 414 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 10 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 6 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 6 {1,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: 6 {5 77,1 2,1 4,1 2,1 2,6 82} Notification: Performance of Backend phase and start with SimCode phase: time 0.01019/47.18, allocations: 4.982 MB / 12.01 GB, free: 22.23 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.0418/47.22, allocations: 17.72 MB / 12.03 GB, free: 21.13 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 2.36e-05/47.22, allocations: 3.875 kB / 12.03 GB, free: 21.13 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.01246/47.24, allocations: 4.989 MB / 12.03 GB, free: 20.93 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.03649/47.27, allocations: 5.947 MB / 12.04 GB, free: 20.54 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06703/47.34, allocations: 27.38 MB / 12.07 GB, free: 4.555 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01594/47.36, allocations: 7.068 MB / 12.07 GB, free: 216 kB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.02746/47.38, allocations: 3.936 MB / 12.08 GB, free: 13.61 MB / 1.167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006328/47.39, allocations: 0.9476 MB / 12.08 GB, free: 12.83 MB / 1.167 GB Notification: Performance of SimCode: time 1.072e-06/47.39, allocations: 0 / 12.08 GB, free: 12.83 MB / 1.167 GB Notification: Performance of Templates: time 2.348/49.74, allocations: 272.5 MB / 12.34 GB, free: 136.2 MB / 1.198 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