Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 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.Example2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pump_dp.m_flow",fileNamePrefix="Buildings_9_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_9_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.001635/0.001635, allocations: 103.4 kB / 16.41 MB, free: 6.508 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.001801/0.001801, allocations: 189.7 kB / 17.34 MB, free: 5.742 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.368/1.368, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.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.249/2.249, allocations: 390.3 MB / 0.6655 GB, free: 0.6289 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001847/0.001847, allocations: 55.91 kB / 0.9515 GB, free: 7.656 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.06/1.061, allocations: 140.4 MB / 1.089 GB, free: 5.531 MB / 0.8575 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Blocks/Math.mo:543:5-544:48:writable] Warning: Parameter pump_dp.gaiSpe.k has no value, and is fixed during initialization (fixed=true), using available start value (start=1) as default value. Notification: Performance of NFInst.instantiate(Buildings.Fluid.Examples.Performance.Example2): time 0.03525/1.097, allocations: 29.63 MB / 1.118 GB, free: 336 kB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.01838/1.115, allocations: 9.922 MB / 1.127 GB, free: 9.305 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003022/1.118, allocations: 46.06 kB / 1.127 GB, free: 9.289 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.002847/1.121, allocations: 0.6855 MB / 1.128 GB, free: 8.914 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.005793/1.127, allocations: 1.465 MB / 1.129 GB, free: 8.078 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.004595/1.131, allocations: 1.379 MB / 1.131 GB, free: 7.371 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.006906/1.138, allocations: 3.832 MB / 1.134 GB, free: 5.605 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0028/1.141, allocations: 1.366 MB / 1.136 GB, free: 4.973 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004621/1.146, allocations: 1.513 MB / 1.137 GB, free: 4.328 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002618/1.148, allocations: 1.04 MB / 1.138 GB, free: 3.848 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 0.0006066/1.149, allocations: 118.6 kB / 1.138 GB, free: 3.848 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004027/1.153, allocations: 1.133 MB / 1.139 GB, free: 3.523 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 0.0009957/1.154, allocations: 402.2 kB / 1.14 GB, free: 3.309 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 0.002053/1.156, allocations: 0.7854 MB / 1.141 GB, free: 2.828 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.005231/1.161, allocations: 2.451 MB / 1.143 GB, free: 1.918 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 1.231e-05/1.162, allocations: 0 / 1.143 GB, free: 1.918 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.233e-06/1.162, allocations: 0 / 1.143 GB, free: 1.918 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 4.867e-05/1.162, allocations: 0 / 1.143 GB, free: 1.918 MB / 0.8887 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 188 * Number of variables: 188 Notification: Performance of Generate backend data structure: time 0.004357/1.166, allocations: 1.942 MB / 1.145 GB, free: 0.6328 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.421e-05/1.166, allocations: 9.031 kB / 1.145 GB, free: 0.6328 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001902/1.168, allocations: 336 kB / 1.145 GB, free: 0.5391 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003215/1.171, allocations: 1.378 MB / 1.147 GB, free: 15.79 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.653e-05/1.171, allocations: 61.73 kB / 1.147 GB, free: 15.76 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001505/1.171, allocations: 86.59 kB / 1.147 GB, free: 15.73 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002089/1.173, allocations: 1.007 MB / 1.148 GB, free: 15.25 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.265e-05/1.174, allocations: 5.156 kB / 1.148 GB, free: 15.25 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.051e-05/1.174, allocations: 34 kB / 1.148 GB, free: 15.23 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.084e-05/1.174, allocations: 18.44 kB / 1.148 GB, free: 15.23 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001752/1.175, allocations: 0.7558 MB / 1.149 GB, free: 14.98 MB / 0.9044 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.00723/1.183, allocations: 4.892 MB / 1.153 GB, free: 11.32 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001536/1.184, allocations: 0.5962 MB / 1.154 GB, free: 11.11 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007471/1.185, allocations: 337.2 kB / 1.154 GB, free: 11 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002713/1.188, allocations: 1.604 MB / 1.156 GB, free: 9.758 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008615/1.189, allocations: 351.8 kB / 1.156 GB, free: 9.625 MB / 0.9044 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0003524/1.189, allocations: 51.3 kB / 1.156 GB, free: 9.59 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=43): time 2.405e-06/1.189, allocations: 0 / 1.156 GB, free: 9.59 MB / 0.9044 GB Notification: Performance of matching and sorting (n=43): time 0.003467/1.192, allocations: 1.223 MB / 1.157 GB, free: 9.133 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.905e-05/1.192, allocations: 59.84 kB / 1.157 GB, free: 9.066 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002045/1.195, allocations: 1.292 MB / 1.159 GB, free: 8.539 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 8.6e-05/1.195, allocations: 38.39 kB / 1.159 GB, free: 8.5 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006785/1.195, allocations: 0.6442 MB / 1.159 GB, free: 7.934 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 0.000237/1.196, allocations: 150 kB / 1.159 GB, free: 7.805 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000261/1.196, allocations: 160.5 kB / 1.16 GB, free: 7.711 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001623/1.196, allocations: 336.6 kB / 1.16 GB, free: 7.383 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006881/1.197, allocations: 301.6 kB / 1.16 GB, free: 7.227 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009325/1.198, allocations: 0.6092 MB / 1.161 GB, free: 6.656 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001515/1.199, allocations: 0.8512 MB / 1.162 GB, free: 6.023 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.963e-06/1.199, allocations: 1.938 kB / 1.162 GB, free: 6.023 MB / 0.9044 GB Notification: Performance of matching and sorting (n=84) (initialization): time 0.002683/1.202, allocations: 1.134 MB / 1.163 GB, free: 5.426 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 5.349e-05/1.202, allocations: 38.34 kB / 1.163 GB, free: 5.391 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.543e-05/1.202, allocations: 7.656 kB / 1.163 GB, free: 5.391 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006394/1.203, allocations: 189.2 kB / 1.163 GB, free: 5.309 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005943/1.203, allocations: 148.6 kB / 1.163 GB, free: 5.27 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007711/1.204, allocations: 0.7704 MB / 1.164 GB, free: 4.617 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001073/1.205, allocations: 61.53 kB / 1.164 GB, free: 4.586 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.376e-05/1.205, allocations: 40.86 kB / 1.164 GB, free: 4.574 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001207/1.206, allocations: 0.5753 MB / 1.165 GB, free: 4.238 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0008342/1.207, allocations: 0.5751 MB / 1.165 GB, free: 3.676 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00141/1.209, allocations: 0.7872 MB / 1.166 GB, free: 3.07 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 8.195e-06/1.209, allocations: 2.156 kB / 1.166 GB, free: 3.07 MB / 0.9044 GB Notification: Performance of matching and sorting (n=84) (initialization_lambda0): time 0.0025/1.211, allocations: 1.098 MB / 1.167 GB, free: 2.441 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 4.128e-05/1.211, allocations: 40.16 kB / 1.167 GB, free: 2.406 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.398e-05/1.211, allocations: 10.78 kB / 1.167 GB, free: 2.402 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000229/1.211, allocations: 107.4 kB / 1.167 GB, free: 2.355 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005529/1.212, allocations: 139.1 kB / 1.167 GB, free: 2.324 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002408/1.214, allocations: 2.351 MB / 1.17 GB, free: 240 kB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001068/1.216, allocations: 52.53 kB / 1.17 GB, free: 220 kB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.925e-05/1.216, allocations: 38.52 kB / 1.17 GB, free: 208 kB / 0.9044 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 34 * 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 (71): * Single equations (assignments): 68 * 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 {(5,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0003854/1.216, allocations: 236.5 kB / 1.17 GB, free: 15.98 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003851/1.216, allocations: 130.8 kB / 1.17 GB, free: 15.91 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002301/1.219, allocations: 0.9129 MB / 1.171 GB, free: 15.39 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.576e-05/1.219, allocations: 9.469 kB / 1.171 GB, free: 15.39 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.266e-06/1.219, allocations: 0 / 1.171 GB, free: 15.39 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00162/1.22, allocations: 0.9191 MB / 1.172 GB, free: 14.73 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004206/1.225, allocations: 1.843 MB / 1.174 GB, free: 13.49 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.23e-06/1.225, allocations: 0 / 1.174 GB, free: 13.49 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004595/1.225, allocations: 89 kB / 1.174 GB, free: 13.46 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002941/1.225, allocations: 133.1 kB / 1.174 GB, free: 13.4 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.466e-05/1.225, allocations: 12.88 kB / 1.174 GB, free: 13.39 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006566/1.226, allocations: 0.7525 MB / 1.175 GB, free: 12.75 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.905e-06/1.226, allocations: 5.062 kB / 1.175 GB, free: 12.74 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002608/1.229, allocations: 1.241 MB / 1.176 GB, free: 12.02 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006599/1.229, allocations: 258.8 kB / 1.176 GB, free: 11.8 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003275/1.23, allocations: 12.06 kB / 1.176 GB, free: 11.79 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007349/1.231, allocations: 35.45 kB / 1.176 GB, free: 11.78 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001144/1.231, allocations: 38.89 kB / 1.176 GB, free: 11.76 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.082e-05/1.231, allocations: 24.98 kB / 1.176 GB, free: 11.75 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.001582/1.232, allocations: 0.8879 MB / 1.177 GB, free: 11.26 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.4e-07/1.232, allocations: 0 / 1.177 GB, free: 11.26 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.002775/1.235, allocations: 0.6514 MB / 1.178 GB, free: 11.12 MB / 0.92 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 (38): * Single equations (assignments): 32 * 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.00133/1.236, allocations: 368.3 kB / 1.178 GB, free: 10.92 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.003377/1.24, allocations: 1.392 MB / 1.179 GB, free: 10.14 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 6.071e-06/1.24, allocations: 2.344 kB / 1.179 GB, free: 10.14 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.0008566/1.241, allocations: 351 kB / 1.18 GB, free: 9.988 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003186/1.244, allocations: 0.6106 MB / 1.18 GB, free: 9.664 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005044/1.249, allocations: 2.283 MB / 1.182 GB, free: 8.316 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001332/1.25, allocations: 1.259 MB / 1.184 GB, free: 7.348 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003998/1.251, allocations: 111.1 kB / 1.184 GB, free: 7.324 MB / 0.92 GB Notification: Performance of SimCode: time 7.31e-07/1.251, allocations: 0 / 1.184 GB, free: 7.324 MB / 0.92 GB Notification: Performance of Templates: time 0.04574/1.296, allocations: 29.19 MB / 1.212 GB, free: 13.79 MB / 0.9512 GB make -j1 -f Buildings_9_Buildings.Fluid.Examples.Performance.Example2.makefile (rm -f Buildings_9_Buildings.Fluid.Examples.Performance.Example2.pipe ; mkfifo Buildings_9_Buildings.Fluid.Examples.Performance.Example2.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Examples.Performance.Example2.pipe >> ../files/Buildings_9_Buildings.Fluid.Examples.Performance.Example2.sim & ./Buildings_9_Buildings.Fluid.Examples.Performance.Example2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Examples.Performance.Example2.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Examples.Performance.Example2_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Examples_Performance_Example2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Examples.Performance.Example2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches