Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Examples.Performance.Example1v1.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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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.Example1v1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pump.m_flow",fileNamePrefix="Buildings_latest_Buildings.Fluid.Examples.Performance.Example1v1") translateModel(Buildings.Fluid.Examples.Performance.Example1v1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pump.m_flow",fileNamePrefix="Buildings_latest_Buildings.Fluid.Examples.Performance.Example1v1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00112/0.00112, allocations: 102.5 kB / 16.27 MB, free: 5.98 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.001043/0.001043, allocations: 189.8 kB / 17.19 MB, free: 5.605 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.322/1.322, allocations: 222.9 MB / 240.9 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.528/2.528, allocations: 469.4 MB / 0.7427 GB, free: 3.633 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001365/0.001365, allocations: 60.98 kB / 0.9088 GB, free: 14.14 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3695/0.3709, allocations: 159.1 MB / 1.064 GB, free: 15.02 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Examples.Performance.Example1v1): time 0.7225/1.094, allocations: 72.76 MB / 1.135 GB, free: 8.438 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.0324/1.126, allocations: 18.81 MB / 1.154 GB, free: 11.11 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005896/1.132, allocations: 91.44 kB / 1.154 GB, free: 11.07 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.01151/1.144, allocations: 4.236 MB / 1.158 GB, free: 9.633 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.01004/1.154, allocations: 2.424 MB / 1.16 GB, free: 8.207 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.006806/1.16, allocations: 2.088 MB / 1.162 GB, free: 7.098 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.01631/1.177, allocations: 10.82 MB / 1.173 GB, free: 1.594 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.009244/1.186, allocations: 6.138 MB / 1.179 GB, free: 13.62 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.009178/1.195, allocations: 3.244 MB / 1.182 GB, free: 11.84 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.006058/1.201, allocations: 2.532 MB / 1.184 GB, free: 10.33 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.001278/1.203, allocations: 259.3 kB / 1.185 GB, free: 10.33 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006209/1.209, allocations: 1.541 MB / 1.186 GB, free: 9.645 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.001764/1.211, allocations: 0.9034 MB / 1.187 GB, free: 8.973 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.0045/1.215, allocations: 1.945 MB / 1.189 GB, free: 7.691 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.009544/1.225, allocations: 5.261 MB / 1.194 GB, free: 4.199 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 7.685e-06/1.225, allocations: 0 / 1.194 GB, free: 4.199 MB / 0.9044 GB Notification: Performance of FrontEnd: time 2.285e-06/1.225, allocations: 0 / 1.194 GB, free: 4.199 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 0.0001618/1.225, allocations: 0 / 1.194 GB, free: 4.199 MB / 0.9044 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 402 * Number of variables: 402 Notification: Performance of Generate backend data structure: time 0.009777/1.235, allocations: 4.354 MB / 1.198 GB, free: 15.81 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 5.031e-05/1.235, allocations: 12.62 kB / 1.198 GB, free: 15.8 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003133/1.238, allocations: 0.6744 MB / 1.199 GB, free: 15.12 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007376/1.245, allocations: 3.621 MB / 1.203 GB, free: 11.44 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000172/1.246, allocations: 143.8 kB / 1.203 GB, free: 11.3 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004631/1.246, allocations: 188 kB / 1.203 GB, free: 11.12 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004196/1.25, allocations: 2.363 MB / 1.205 GB, free: 8.594 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.086e-05/1.25, allocations: 7.938 kB / 1.205 GB, free: 8.586 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001764/1.251, allocations: 64 kB / 1.205 GB, free: 8.523 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.271e-05/1.251, allocations: 40 kB / 1.205 GB, free: 8.484 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003899/1.254, allocations: 1.919 MB / 1.207 GB, free: 6.559 MB / 0.92 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.01659/1.271, allocations: 11.55 MB / 1.218 GB, free: 10.51 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002951/1.274, allocations: 1.36 MB / 1.22 GB, free: 9.145 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00167/1.276, allocations: 1.011 MB / 1.221 GB, free: 8.133 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006885/1.283, allocations: 3.71 MB / 1.224 GB, free: 4.145 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001501/1.284, allocations: 0.7779 MB / 1.225 GB, free: 3.355 MB / 0.9356 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00147/1.286, allocations: 250.7 kB / 1.225 GB, free: 3.109 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=94): time 3.697e-06/1.286, allocations: 0 / 1.225 GB, free: 3.109 MB / 0.9356 GB Notification: Performance of matching and sorting (n=94): time 0.0121/1.298, allocations: 4.24 MB / 1.23 GB, free: 14.82 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.178e-05/1.298, allocations: 64.41 kB / 1.23 GB, free: 14.75 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005212/1.303, allocations: 3.455 MB / 1.233 GB, free: 11.27 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 0.000305/1.303, allocations: 53.7 kB / 1.233 GB, free: 11.21 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.001531/1.305, allocations: 1.582 MB / 1.235 GB, free: 9.613 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 0.000441/1.305, allocations: 343.2 kB / 1.235 GB, free: 9.273 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006942/1.306, allocations: 455.5 kB / 1.235 GB, free: 8.82 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001144/1.306, allocations: 301.1 kB / 1.236 GB, free: 8.523 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001649/1.308, allocations: 0.8683 MB / 1.236 GB, free: 7.652 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002245/1.31, allocations: 1.674 MB / 1.238 GB, free: 5.617 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003611/1.314, allocations: 2.275 MB / 1.24 GB, free: 3.113 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.086e-05/1.314, allocations: 4 kB / 1.24 GB, free: 3.109 MB / 0.9512 GB Notification: Performance of matching and sorting (n=249) (initialization): time 0.00724/1.321, allocations: 3.346 MB / 1.244 GB, free: 15.74 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 6.238e-05/1.321, allocations: 37.89 kB / 1.244 GB, free: 15.7 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.709e-05/1.321, allocations: 20 kB / 1.244 GB, free: 15.68 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002366/1.324, allocations: 0.6959 MB / 1.244 GB, free: 14.98 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001437/1.325, allocations: 353.3 kB / 1.245 GB, free: 14.63 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001887/1.327, allocations: 1.908 MB / 1.247 GB, free: 12.67 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002612/1.33, allocations: 125 kB / 1.247 GB, free: 12.55 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002418/1.33, allocations: 95.95 kB / 1.247 GB, free: 12.46 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.00317/1.333, allocations: 1.589 MB / 1.248 GB, free: 10.86 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002121/1.335, allocations: 1.641 MB / 1.25 GB, free: 8.863 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003291/1.338, allocations: 2.21 MB / 1.252 GB, free: 6.418 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 8.997e-06/1.338, allocations: 4 kB / 1.252 GB, free: 6.414 MB / 0.9669 GB Notification: Performance of matching and sorting (n=249) (initialization_lambda0): time 0.005922/1.344, allocations: 3.229 MB / 1.255 GB, free: 3.137 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 4.367e-05/1.344, allocations: 37.7 kB / 1.255 GB, free: 3.094 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.13e-05/1.344, allocations: 16 kB / 1.255 GB, free: 3.078 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008944/1.345, allocations: 477.5 kB / 1.256 GB, free: 2.605 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001271/1.347, allocations: 353.3 kB / 1.256 GB, free: 2.262 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0069/1.354, allocations: 6.326 MB / 1.262 GB, free: 11.64 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002578/1.356, allocations: 145.4 kB / 1.262 GB, free: 11.5 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002051/1.356, allocations: 95.95 kB / 1.262 GB, free: 11.41 MB / 0.9825 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 70 * Number of states: 0 () * Number of discrete variables: 8 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1,from_dp.y,nRes.y,allowFlowReversal.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (169): * Single equations (assignments): 164 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,40), (2,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0005089/1.357, allocations: 308 kB / 1.263 GB, free: 11.1 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006699/1.358, allocations: 327.8 kB / 1.263 GB, free: 10.77 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005/1.363, allocations: 2.478 MB / 1.266 GB, free: 8.27 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.048e-05/1.363, allocations: 12 kB / 1.266 GB, free: 8.258 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.347e-06/1.363, allocations: 0 / 1.266 GB, free: 8.258 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003475/1.366, allocations: 2.086 MB / 1.268 GB, free: 6.098 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008206/1.374, allocations: 4.577 MB / 1.272 GB, free: 1.441 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.552e-06/1.374, allocations: 0 / 1.272 GB, free: 1.441 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008757/1.375, allocations: 181.7 kB / 1.272 GB, free: 1.266 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001036/1.376, allocations: 485 kB / 1.273 GB, free: 0.7852 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.354e-05/1.376, allocations: 39.97 kB / 1.273 GB, free: 0.7461 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001763/1.378, allocations: 1.838 MB / 1.274 GB, free: 14.86 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.97e-06/1.378, allocations: 8.016 kB / 1.275 GB, free: 14.85 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005956/1.384, allocations: 3.191 MB / 1.278 GB, free: 11.62 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001389/1.386, allocations: 0.5278 MB / 1.278 GB, free: 11.07 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004392/1.386, allocations: 20 kB / 1.278 GB, free: 11.05 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001239/1.387, allocations: 79.91 kB / 1.278 GB, free: 10.97 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001801/1.387, allocations: 76.89 kB / 1.278 GB, free: 10.89 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.359e-05/1.388, allocations: 43.97 kB / 1.278 GB, free: 10.85 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.003446/1.391, allocations: 2.347 MB / 1.281 GB, free: 8.492 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.91e-07/1.391, allocations: 0 / 1.281 GB, free: 8.492 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.00426/1.395, allocations: 1.517 MB / 1.282 GB, free: 6.973 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (pump.vol.dynBal.U,hea.outCon.T) * 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 (78): * Single equations (assignments): 70 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(2,5), (1,40)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001419/1.397, allocations: 0.5917 MB / 1.283 GB, free: 6.379 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.007603/1.404, allocations: 3.965 MB / 1.287 GB, free: 2.371 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 5.53e-06/1.404, allocations: 3.938 kB / 1.287 GB, free: 2.367 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.00162/1.406, allocations: 0.7995 MB / 1.287 GB, free: 1.57 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006172/1.412, allocations: 1.453 MB / 1.289 GB, free: 144 kB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.012/1.424, allocations: 6.114 MB / 1.295 GB, free: 9.988 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00197/1.426, allocations: 2.241 MB / 1.297 GB, free: 7.723 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001016/1.427, allocations: 255.3 kB / 1.297 GB, free: 7.473 MB / 1.014 GB Notification: Performance of SimCode: time 1.483e-06/1.427, allocations: 0 / 1.297 GB, free: 7.473 MB / 1.014 GB Notification: Performance of Templates: time 0.1203/1.547, allocations: 84.34 MB / 1.38 GB, free: 3.449 MB / 1.092 GB make -j1 -f Buildings_latest_Buildings.Fluid.Examples.Performance.Example1v1.makefile (rm -f Buildings_latest_Buildings.Fluid.Examples.Performance.Example1v1.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Examples.Performance.Example1v1.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Examples.Performance.Example1v1.pipe >> ../files/Buildings_latest_Buildings.Fluid.Examples.Performance.Example1v1.sim & ./Buildings_latest_Buildings.Fluid.Examples.Performance.Example1v1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Examples.Performance.Example1v1.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Examples.Performance.Example1v1_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Examples_Performance_Example1v1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Examples.Performance.Example1v1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches