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/ModelicaServices 4.0.0+maint.om/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/Buildings 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000928/0.000928, allocations: 91.84 kB / 15.36 MB, free: 0.7383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.005767/0.005767, allocations: 170.7 kB / 16.26 MB, free: 6.676 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.361/1.361, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.367/2.367, allocations: 390.9 MB / 0.6663 GB, free: 2.34 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003595/0.0003597, allocations: 12 kB / 0.8159 GB, free: 13.25 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7392/0.7396, allocations: 142.4 MB / 0.955 GB, free: 7.695 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Examples.Performance.Example3): time 0.03245/0.7721, allocations: 31.78 MB / 0.9861 GB, free: 14.24 MB / 0.7481 GB Notification: Performance of NFInst.instExpressions: time 0.01475/0.7868, allocations: 10.43 MB / 0.9963 GB, free: 5.031 MB / 0.7481 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00159/0.7885, allocations: 43.75 kB / 0.9963 GB, free: 4.988 MB / 0.7481 GB Notification: Performance of NFTyping.typeComponents: time 0.001946/0.7904, allocations: 0.6317 MB / 0.9969 GB, free: 4.355 MB / 0.7481 GB Notification: Performance of NFTyping.typeBindings: time 0.004394/0.7948, allocations: 1.455 MB / 0.9983 GB, free: 2.895 MB / 0.7481 GB Notification: Performance of NFTyping.typeClassSections: time 0.003632/0.7985, allocations: 1.265 MB / 0.9996 GB, free: 1.637 MB / 0.7481 GB Notification: Performance of NFFlatten.flatten: time 0.007427/0.8059, allocations: 6.44 MB / 1.006 GB, free: 11.18 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003072/0.809, allocations: 1.725 MB / 1.008 GB, free: 9.43 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003882/0.8129, allocations: 1.618 MB / 1.009 GB, free: 7.805 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002474/0.8154, allocations: 1.33 MB / 1.01 GB, free: 6.469 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 0.0004186/0.8159, allocations: 68 kB / 1.01 GB, free: 6.402 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00283/0.8187, allocations: 1.076 MB / 1.012 GB, free: 5.324 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 0.0006798/0.8194, allocations: 386.2 kB / 1.012 GB, free: 4.945 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 0.001707/0.8211, allocations: 0.9302 MB / 1.013 GB, free: 4.004 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.00407/0.8252, allocations: 2.795 MB / 1.016 GB, free: 1.199 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.8252, allocations: 0 / 1.016 GB, free: 1.199 MB / 0.7637 GB Notification: Performance of FrontEnd: time 1.513e-06/0.8253, allocations: 4 kB / 1.016 GB, free: 1.195 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 7.837e-05/0.8253, allocations: 0 / 1.016 GB, free: 1.195 MB / 0.7637 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.003578/0.8289, allocations: 2.046 MB / 1.018 GB, free: 15.08 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.901e-05/0.829, allocations: 8.031 kB / 1.018 GB, free: 15.07 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001815/0.8308, allocations: 402.1 kB / 1.018 GB, free: 14.68 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003/0.8338, allocations: 1.684 MB / 1.02 GB, free: 12.95 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.516e-05/0.8339, allocations: 78 kB / 1.02 GB, free: 12.87 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001672/0.8341, allocations: 112 kB / 1.02 GB, free: 12.76 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002209/0.8363, allocations: 1.315 MB / 1.021 GB, free: 11.38 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.306e-05/0.8363, allocations: 11.94 kB / 1.021 GB, free: 11.36 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.889e-05/0.8364, allocations: 36 kB / 1.021 GB, free: 11.33 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.929e-05/0.8365, allocations: 27.94 kB / 1.021 GB, free: 11.3 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002074/0.8386, allocations: 1.042 MB / 1.022 GB, free: 10.25 MB / 0.7794 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.007496/0.8461, allocations: 6.832 MB / 1.029 GB, free: 2.922 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00142/0.8475, allocations: 0.6447 MB / 1.029 GB, free: 2.266 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007786/0.8483, allocations: 425 kB / 1.03 GB, free: 1.852 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002972/0.8513, allocations: 1.71 MB / 1.032 GB, free: 4 kB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008893/0.8522, allocations: 404.7 kB / 1.032 GB, free: 15.6 MB / 0.795 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0005744/0.8528, allocations: 107.2 kB / 1.032 GB, free: 15.49 MB / 0.795 GB Notification: Performance of pre-optimization done (n=46): time 2.685e-06/0.8528, allocations: 0 / 1.032 GB, free: 15.49 MB / 0.795 GB Notification: Performance of matching and sorting (n=46): time 0.003625/0.8564, allocations: 1.387 MB / 1.033 GB, free: 14.07 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.933e-05/0.8565, allocations: 59.41 kB / 1.033 GB, free: 14 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002179/0.8587, allocations: 1.781 MB / 1.035 GB, free: 12.18 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 6.54e-05/0.8587, allocations: 37.7 kB / 1.035 GB, free: 12.14 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007003/0.8594, allocations: 0.8501 MB / 1.036 GB, free: 11.28 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001459/0.8596, allocations: 165.7 kB / 1.036 GB, free: 11.11 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001022/0.8597, allocations: 73.67 kB / 1.036 GB, free: 11.04 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001174/0.8598, allocations: 334 kB / 1.037 GB, free: 10.7 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007327/0.8606, allocations: 337.8 kB / 1.037 GB, free: 10.38 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000996/0.8616, allocations: 0.7674 MB / 1.038 GB, free: 9.406 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001642/0.8632, allocations: 1.034 MB / 1.039 GB, free: 8.223 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.172e-06/0.8632, allocations: 4 kB / 1.039 GB, free: 8.219 MB / 0.795 GB Notification: Performance of matching and sorting (n=99) (initialization): time 0.00289/0.8661, allocations: 1.352 MB / 1.04 GB, free: 6.852 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002617/0.8664, allocations: 431 kB / 1.04 GB, free: 6.281 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.659e-05/0.8664, allocations: 8 kB / 1.04 GB, free: 6.273 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006921/0.8671, allocations: 192.2 kB / 1.041 GB, free: 6.086 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006918/0.8678, allocations: 179.7 kB / 1.041 GB, free: 5.91 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006462/0.8685, allocations: 0.7553 MB / 1.041 GB, free: 5.129 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00121/0.8697, allocations: 108.5 kB / 1.042 GB, free: 5.023 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.33e-05/0.8698, allocations: 51.97 kB / 1.042 GB, free: 4.973 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 9.738e-06/0.8698, allocations: 4 kB / 1.042 GB, free: 4.969 MB / 0.795 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002014/0.8719, allocations: 1.132 MB / 1.043 GB, free: 3.809 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.345e-05/0.8719, allocations: 12.72 kB / 1.043 GB, free: 3.797 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002267/0.8721, allocations: 124.8 kB / 1.043 GB, free: 3.672 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006136/0.8728, allocations: 171.7 kB / 1.043 GB, free: 3.504 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002107/0.8749, allocations: 2.118 MB / 1.045 GB, free: 1.258 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001152/0.876, allocations: 100.6 kB / 1.045 GB, free: 1.156 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.365e-05/0.8761, allocations: 39.98 kB / 1.045 GB, free: 1.117 MB / 0.795 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 46 * Number of states: 0 () * Number of discrete variables: 8 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1,nRes.y,from_dp.y,mergeDp.y) * Number of discrete states: 0 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,12)} Notification: Performance of prepare postOptimizeDAE: time 0.0008891/0.877, allocations: 0.5864 MB / 1.046 GB, free: 0.5195 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002283/0.8773, allocations: 173.8 kB / 1.046 GB, free: 356 kB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002244/0.8795, allocations: 1.051 MB / 1.047 GB, free: 15.29 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.568e-06/0.8795, allocations: 4 kB / 1.047 GB, free: 15.28 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.605e-06/0.8795, allocations: 3.938 kB / 1.047 GB, free: 15.28 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001668/0.8812, allocations: 0.9918 MB / 1.048 GB, free: 14.21 MB / 0.8106 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.003695/0.8849, allocations: 2.226 MB / 1.05 GB, free: 11.9 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.378e-06/0.8849, allocations: 0 / 1.05 GB, free: 11.9 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004884/0.8854, allocations: 87.92 kB / 1.05 GB, free: 11.81 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003009/0.8857, allocations: 132.8 kB / 1.05 GB, free: 11.68 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.095e-05/0.8858, allocations: 15.98 kB / 1.05 GB, free: 11.66 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005209/0.8863, allocations: 0.7357 MB / 1.051 GB, free: 10.9 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.597e-06/0.8863, allocations: 4.031 kB / 1.051 GB, free: 10.9 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002558/0.8889, allocations: 1.437 MB / 1.053 GB, free: 9.434 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005521/0.8895, allocations: 318.8 kB / 1.053 GB, free: 9.102 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001591/0.8896, allocations: 8 kB / 1.053 GB, free: 9.094 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007839/0.8904, allocations: 87.89 kB / 1.053 GB, free: 9.008 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.878e-05/0.8905, allocations: 36.33 kB / 1.053 GB, free: 8.973 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.544e-05/0.8906, allocations: 27.97 kB / 1.053 GB, free: 8.945 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.001568/0.8922, allocations: 1.231 MB / 1.054 GB, free: 7.691 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.31e-07/0.8922, allocations: 0 / 1.054 GB, free: 7.691 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.002101/0.8943, allocations: 0.7877 MB / 1.055 GB, free: 6.902 MB / 0.8106 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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,12)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009249/0.8952, allocations: 391.8 kB / 1.055 GB, free: 6.516 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.003319/0.8986, allocations: 1.533 MB / 1.057 GB, free: 4.949 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 6.282e-06/0.8986, allocations: 4.062 kB / 1.057 GB, free: 4.945 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0008181/0.8994, allocations: 366.3 kB / 1.057 GB, free: 4.586 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003621/0.903, allocations: 0.7348 MB / 1.058 GB, free: 3.855 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005365/0.9084, allocations: 3.536 MB / 1.061 GB, free: 288 kB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001228/0.9097, allocations: 1.491 MB / 1.063 GB, free: 14.76 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.001881/0.9116, allocations: 442.1 kB / 1.063 GB, free: 14.32 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003075/0.9119, allocations: 127.4 kB / 1.063 GB, free: 14.2 MB / 0.8262 GB Notification: Performance of SimCode: time 1.162e-06/0.9119, allocations: 0 / 1.063 GB, free: 14.2 MB / 0.8262 GB Notification: Performance of Templates: time 0.05657/0.9685, allocations: 30.32 MB / 1.093 GB, free: 276 kB / 0.8419 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Examples.Performance.Example3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches