Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Fluid.Examples.Performance.Example2.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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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.Example2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pump_dp.m_flow",fileNamePrefix="Buildings_10_Buildings.Fluid.Examples.Performance.Example2") translateModel(Buildings.Fluid.Examples.Performance.Example2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pump_dp.m_flow",fileNamePrefix="Buildings_10_Buildings.Fluid.Examples.Performance.Example2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001623/0.001623, allocations: 101.6 kB / 16.27 MB, free: 5.949 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.001638/0.001638, allocations: 190.6 kB / 17.2 MB, free: 5.586 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.403/1.403, allocations: 222.9 MB / 240.9 MB, free: 15.22 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.48/2.48, allocations: 437.1 MB / 0.711 GB, free: 4.41 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.00203/0.00203, allocations: 64.16 kB / 0.8699 GB, free: 2.145 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.312/0.3141, allocations: 151.6 MB / 1.018 GB, free: 10.58 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Examples.Performance.Example2): time 0.03494/0.3491, allocations: 30.07 MB / 1.047 GB, free: 12.41 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.01865/0.3678, allocations: 11.73 MB / 1.059 GB, free: 0.6484 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001931/0.3697, allocations: 47.75 kB / 1.059 GB, free: 0.6016 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.008424/0.3782, allocations: 3.924 MB / 1.063 GB, free: 12.67 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.004642/0.3829, allocations: 1.512 MB / 1.064 GB, free: 11.15 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.003987/0.3869, allocations: 1.4 MB / 1.065 GB, free: 9.758 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.01042/0.3973, allocations: 6.612 MB / 1.072 GB, free: 3.137 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002683/0.4001, allocations: 1.377 MB / 1.073 GB, free: 1.719 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003778/0.4039, allocations: 1.452 MB / 1.075 GB, free: 268 kB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.5234/0.9273, allocations: 1.075 MB / 1.076 GB, free: 19.71 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 0.0005421/0.9279, allocations: 121.4 kB / 1.076 GB, free: 19.71 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003336/0.9312, allocations: 1.301 MB / 1.077 GB, free: 19.71 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0007863/0.932, allocations: 0.5175 MB / 1.078 GB, free: 19.71 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.001574/0.9336, allocations: 0.9594 MB / 1.079 GB, free: 19.52 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.005861/0.9395, allocations: 2.971 MB / 1.081 GB, free: 19.19 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/0.9395, allocations: 0 / 1.081 GB, free: 19.19 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.373e-06/0.9395, allocations: 1.062 kB / 1.081 GB, free: 19.19 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 7.098e-05/0.9396, allocations: 0 / 1.081 GB, free: 19.19 MB / 0.8419 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 192 * Number of variables: 192 Notification: Performance of Generate backend data structure: time 0.005773/0.9454, allocations: 2.346 MB / 1.084 GB, free: 17.92 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.754e-05/0.9455, allocations: 16.88 kB / 1.084 GB, free: 17.92 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002232/0.9477, allocations: 383.5 kB / 1.084 GB, free: 17.81 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005132/0.9529, allocations: 2.298 MB / 1.086 GB, free: 17.34 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001412/0.953, allocations: 66.98 kB / 1.086 GB, free: 17.34 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002693/0.9533, allocations: 92.89 kB / 1.087 GB, free: 17.34 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002768/0.9561, allocations: 1.004 MB / 1.088 GB, free: 17.14 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.261e-05/0.9561, allocations: 5.172 kB / 1.088 GB, free: 17.14 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001017/0.9562, allocations: 37.06 kB / 1.088 GB, free: 17.14 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.405e-05/0.9563, allocations: 23.5 kB / 1.088 GB, free: 17.14 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002295/0.9586, allocations: 0.7544 MB / 1.088 GB, free: 17.13 MB / 0.8419 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.009132/0.9677, allocations: 5.254 MB / 1.093 GB, free: 14.25 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001474/0.9692, allocations: 0.5692 MB / 1.094 GB, free: 14.21 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000756/0.97, allocations: 328.3 kB / 1.094 GB, free: 14.2 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00296/0.973, allocations: 1.653 MB / 1.096 GB, free: 13.25 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008022/0.9738, allocations: 325.2 kB / 1.096 GB, free: 13.2 MB / 0.8419 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00059/0.9744, allocations: 56.11 kB / 1.096 GB, free: 13.16 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=42): time 2.595e-06/0.9744, allocations: 0.5625 kB / 1.096 GB, free: 13.16 MB / 0.8419 GB Notification: Performance of matching and sorting (n=42): time 0.003684/0.9781, allocations: 1.245 MB / 1.098 GB, free: 12.89 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.435e-05/0.9782, allocations: 57.34 kB / 1.098 GB, free: 12.83 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00318/0.9814, allocations: 1.853 MB / 1.099 GB, free: 12.59 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 9.129e-05/0.9815, allocations: 40.58 kB / 1.099 GB, free: 12.56 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006981/0.9822, allocations: 0.7832 MB / 1.1 GB, free: 12.31 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001433/0.9823, allocations: 152.2 kB / 1.1 GB, free: 12.22 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003764/0.9827, allocations: 264.8 kB / 1.101 GB, free: 12.2 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 8.941e-05/0.9828, allocations: 357.8 kB / 1.101 GB, free: 11.89 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009007/0.9837, allocations: 460 kB / 1.101 GB, free: 11.88 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001128/0.9848, allocations: 0.8394 MB / 1.102 GB, free: 11.44 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00181/0.9867, allocations: 1.163 MB / 1.103 GB, free: 11.07 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.037e-06/0.9867, allocations: 3.297 kB / 1.103 GB, free: 11.07 MB / 0.8419 GB Notification: Performance of matching and sorting (n=150) (initialization): time 0.003365/0.99, allocations: 1.597 MB / 1.105 GB, free: 10.87 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 4.742e-05/0.9901, allocations: 40.48 kB / 1.105 GB, free: 10.84 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.642e-05/0.9901, allocations: 8.688 kB / 1.105 GB, free: 10.84 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006889/0.9908, allocations: 204.7 kB / 1.105 GB, free: 10.82 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008123/0.9917, allocations: 194.5 kB / 1.105 GB, free: 10.82 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007101/0.9924, allocations: 0.7703 MB / 1.106 GB, free: 10.29 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001561/0.9939, allocations: 69.98 kB / 1.106 GB, free: 10.28 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001338/0.9941, allocations: 48.23 kB / 1.106 GB, free: 10.28 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001807/0.9959, allocations: 0.8711 MB / 1.107 GB, free: 10.08 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001029/0.9969, allocations: 0.8159 MB / 1.108 GB, free: 9.469 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001594/0.9986, allocations: 1.131 MB / 1.109 GB, free: 8.793 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.343e-06/0.9986, allocations: 3.062 kB / 1.109 GB, free: 8.793 MB / 0.8419 GB Notification: Performance of matching and sorting (n=150) (initialization_lambda0): time 0.003096/1.002, allocations: 1.583 MB / 1.11 GB, free: 8.141 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 4.049e-05/1.002, allocations: 42.23 kB / 1.111 GB, free: 8.105 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.575e-05/1.002, allocations: 14 kB / 1.111 GB, free: 8.102 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000235/1.002, allocations: 105.8 kB / 1.111 GB, free: 8.074 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007017/1.003, allocations: 194.3 kB / 1.111 GB, free: 8.066 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00206/1.005, allocations: 2.356 MB / 1.113 GB, free: 6.168 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00165/1.006, allocations: 74.91 kB / 1.113 GB, free: 6.148 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001057/1.007, allocations: 48.38 kB / 1.113 GB, free: 6.141 MB / 0.8419 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 38 * Number of states: 0 () * Number of discrete variables: 7 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1,nRes.y,from_dp.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (105): * Single equations (assignments): 101 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 1 * 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 {(5,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0003621/1.007, allocations: 241.7 kB / 1.113 GB, free: 5.934 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00031/1.007, allocations: 165.1 kB / 1.114 GB, free: 5.844 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002286/1.01, allocations: 0.9153 MB / 1.115 GB, free: 5.516 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.345e-05/1.01, allocations: 9.125 kB / 1.115 GB, free: 5.512 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.196e-06/1.01, allocations: 1.312 kB / 1.115 GB, free: 5.512 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00149/1.011, allocations: 0.9032 MB / 1.115 GB, free: 4.969 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004231/1.015, allocations: 1.989 MB / 1.117 GB, free: 4.059 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.974e-06/1.015, allocations: 2.266 kB / 1.117 GB, free: 4.059 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004556/1.016, allocations: 85.53 kB / 1.117 GB, free: 4.055 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002785/1.016, allocations: 121.8 kB / 1.118 GB, free: 4.02 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.208e-05/1.016, allocations: 16.38 kB / 1.118 GB, free: 4.012 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000526/1.017, allocations: 0.7529 MB / 1.118 GB, free: 3.414 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.537e-06/1.017, allocations: 2.281 kB / 1.118 GB, free: 3.414 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00265/1.019, allocations: 1.254 MB / 1.12 GB, free: 2.84 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000789/1.02, allocations: 310.4 kB / 1.12 GB, free: 2.613 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000204/1.02, allocations: 15.56 kB / 1.12 GB, free: 2.602 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006767/1.021, allocations: 44.23 kB / 1.12 GB, free: 2.594 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001423/1.021, allocations: 33.12 kB / 1.12 GB, free: 2.59 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.658e-05/1.021, allocations: 26.11 kB / 1.12 GB, free: 2.582 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.002123/1.023, allocations: 1.26 MB / 1.121 GB, free: 2.09 MB / 0.8419 GB Notification: Performance of sort global known variables: time 2.51e-07/1.023, allocations: 0 / 1.121 GB, free: 2.09 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.003124/1.027, allocations: 0.8069 MB / 1.122 GB, free: 1.953 MB / 0.8419 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (pump_dp.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 (37): * Single equations (assignments): 31 * 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 {(5,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001439/1.028, allocations: 0.4979 MB / 1.122 GB, free: 1.789 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.004033/1.032, allocations: 1.933 MB / 1.124 GB, free: 1.039 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 4.929e-06/1.032, allocations: 0 / 1.124 GB, free: 1.039 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.000845/1.033, allocations: 338.8 kB / 1.125 GB, free: 0.9531 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004308/1.037, allocations: 0.8007 MB / 1.125 GB, free: 0.6914 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007289/1.045, allocations: 3.117 MB / 1.129 GB, free: 15.22 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001275/1.046, allocations: 1.434 MB / 1.13 GB, free: 14.4 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000701/1.047, allocations: 140 kB / 1.13 GB, free: 14.38 MB / 0.8575 GB Notification: Performance of SimCode: time 8.82e-07/1.047, allocations: 0 / 1.13 GB, free: 14.38 MB / 0.8575 GB Notification: Performance of Templates: time 0.05722/1.104, allocations: 36.73 MB / 1.166 GB, free: 7.781 MB / 0.8731 GB make -j1 -f Buildings_10_Buildings.Fluid.Examples.Performance.Example2.makefile (rm -f Buildings_10_Buildings.Fluid.Examples.Performance.Example2.pipe ; mkfifo Buildings_10_Buildings.Fluid.Examples.Performance.Example2.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Examples.Performance.Example2.pipe >> ../files/Buildings_10_Buildings.Fluid.Examples.Performance.Example2.sim & ./Buildings_10_Buildings.Fluid.Examples.Performance.Example2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.Examples.Performance.Example2.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.Examples.Performance.Example2_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_Examples_Performance_Example2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.Examples.Performance.Example2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches