Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised.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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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.PressureDrop.SeriesFlowOptimised,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sin.ports.1..m_flow",fileNamePrefix="Buildings_latest_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised") translateModel(Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sin.ports.1..m_flow",fileNamePrefix="Buildings_latest_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005211/0.005211, allocations: 100.8 kB / 15.87 MB, free: 5.863 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.001211/0.001211, allocations: 190.8 kB / 16.79 MB, free: 5.805 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.337/1.337, allocations: 222.9 MB / 240.5 MB, free: 4.566 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.657/2.657, allocations: 461.9 MB / 0.7348 GB, free: 14.2 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001301/0.001301, allocations: 70.09 kB / 0.899 GB, free: 37.03 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3248/0.3262, allocations: 157.4 MB / 1.053 GB, free: 8.336 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised): time 0.1678/0.494, allocations: 159.4 MB / 1.208 GB, free: 8.371 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.00335/0.4974, allocations: 1.782 MB / 1.21 GB, free: 6.59 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000489/0.4979, allocations: 7.938 kB / 1.21 GB, free: 6.582 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0006673/0.4986, allocations: 135.2 kB / 1.21 GB, free: 6.449 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.00155/0.5002, allocations: 0.4941 MB / 1.211 GB, free: 5.953 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.001251/0.5015, allocations: 350.2 kB / 1.211 GB, free: 5.613 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.003554/0.505, allocations: 3.468 MB / 1.214 GB, free: 2.137 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001298/0.5063, allocations: 0.7664 MB / 1.215 GB, free: 1.359 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002032/0.5084, allocations: 0.9103 MB / 1.216 GB, free: 456 kB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001393/0.5098, allocations: 0.7312 MB / 1.217 GB, free: 15.71 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 0.0002649/0.5101, allocations: 40 kB / 1.217 GB, free: 15.67 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001878/0.512, allocations: 0.8029 MB / 1.218 GB, free: 14.87 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0005091/0.5125, allocations: 286.8 kB / 1.218 GB, free: 14.59 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.001069/0.5136, allocations: 0.5128 MB / 1.218 GB, free: 14.07 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.001383/0.515, allocations: 1.021 MB / 1.219 GB, free: 13.05 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 6.201e-06/0.515, allocations: 0 / 1.219 GB, free: 13.05 MB / 0.9825 GB Notification: Performance of FrontEnd: time 2.836e-06/0.515, allocations: 0 / 1.219 GB, free: 13.05 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 4.434e-05/0.515, allocations: 3.938 kB / 1.219 GB, free: 13.04 MB / 0.9825 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 126 * Number of variables: 126 Notification: Performance of Generate backend data structure: time 0.003077/0.5181, allocations: 1.451 MB / 1.221 GB, free: 11.53 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.435e-05/0.5182, allocations: 8.031 kB / 1.221 GB, free: 11.52 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000898/0.5191, allocations: 178.5 kB / 1.221 GB, free: 11.34 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001425/0.5205, allocations: 0.8061 MB / 1.222 GB, free: 10.48 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.371e-05/0.5206, allocations: 45 kB / 1.222 GB, free: 10.44 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.799e-05/0.5207, allocations: 60 kB / 1.222 GB, free: 10.38 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001266/0.5219, allocations: 0.8004 MB / 1.223 GB, free: 9.5 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.1e-05/0.522, allocations: 3.938 kB / 1.223 GB, free: 9.496 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.715e-05/0.522, allocations: 24 kB / 1.223 GB, free: 9.473 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.474e-05/0.5221, allocations: 12 kB / 1.223 GB, free: 9.461 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009591/0.523, allocations: 0.5305 MB / 1.223 GB, free: 8.93 MB / 0.9825 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.004294/0.5273, allocations: 4.591 MB / 1.228 GB, free: 3.953 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007124/0.528, allocations: 418.2 kB / 1.228 GB, free: 3.535 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003801/0.5284, allocations: 248.7 kB / 1.228 GB, free: 3.289 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003105/0.5288, allocations: 190.4 kB / 1.229 GB, free: 3.066 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005282/0.5293, allocations: 289.6 kB / 1.229 GB, free: 2.766 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=31): time 2.665e-06/0.5293, allocations: 3.938 kB / 1.229 GB, free: 2.762 MB / 0.9825 GB Notification: Performance of matching and sorting (n=31): time 0.001581/0.5309, allocations: 0.631 MB / 1.229 GB, free: 2.125 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.658e-05/0.531, allocations: 81.11 kB / 1.23 GB, free: 2.027 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001488/0.5325, allocations: 1.118 MB / 1.231 GB, free: 0.8906 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 4.981e-05/0.5325, allocations: 41.64 kB / 1.231 GB, free: 0.8438 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003811/0.5329, allocations: 492.1 kB / 1.231 GB, free: 364 kB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 8.995e-05/0.533, allocations: 110.5 kB / 1.231 GB, free: 252 kB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001585/0.5332, allocations: 110 kB / 1.231 GB, free: 132 kB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001422/0.5333, allocations: 325.9 kB / 1.232 GB, free: 15.8 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003751/0.5337, allocations: 218.4 kB / 1.232 GB, free: 15.59 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005715/0.5343, allocations: 0.5213 MB / 1.232 GB, free: 14.94 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008262/0.5351, allocations: 0.6307 MB / 1.233 GB, free: 14.23 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.358e-06/0.5352, allocations: 0 / 1.233 GB, free: 14.23 MB / 0.9981 GB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001249/0.5364, allocations: 0.7219 MB / 1.234 GB, free: 13.49 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 4.248e-05/0.5365, allocations: 33.7 kB / 1.234 GB, free: 13.45 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.244e-05/0.5365, allocations: 4 kB / 1.234 GB, free: 13.45 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.41e-05/0.5365, allocations: 8 kB / 1.234 GB, free: 13.44 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004546/0.537, allocations: 116.4 kB / 1.234 GB, free: 13.33 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.921e-05/0.537, allocations: 11.94 kB / 1.234 GB, free: 13.32 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007461/0.5378, allocations: 95.47 kB / 1.234 GB, free: 13.22 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.181e-05/0.5378, allocations: 35.92 kB / 1.234 GB, free: 13.19 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006708/0.5385, allocations: 0.4928 MB / 1.234 GB, free: 12.69 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005245/0.539, allocations: 489.9 kB / 1.235 GB, free: 12.07 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007213/0.5398, allocations: 0.5608 MB / 1.235 GB, free: 11.43 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.925e-06/0.5398, allocations: 0 / 1.235 GB, free: 11.43 MB / 0.9981 GB Notification: Performance of matching and sorting (n=54) (initialization_lambda0): time 0.001043/0.5408, allocations: 0.6465 MB / 1.236 GB, free: 10.77 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 3.625e-05/0.5409, allocations: 33.7 kB / 1.236 GB, free: 10.73 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.565e-06/0.5409, allocations: 8.031 kB / 1.236 GB, free: 10.73 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.658e-06/0.5409, allocations: 8 kB / 1.236 GB, free: 10.72 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003609/0.5413, allocations: 103.8 kB / 1.236 GB, free: 10.62 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.388e-05/0.5413, allocations: 15.92 kB / 1.236 GB, free: 10.6 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007005/0.542, allocations: 84.05 kB / 1.236 GB, free: 10.52 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.083e-05/0.5421, allocations: 20 kB / 1.236 GB, free: 10.5 MB / 0.9981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * Number of states: 0 () * Number of discrete variables: 5 (pulse_p.count,$PRE.pulse_p.count,pulse_p.T_start,$PRE.pulse_p.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (53): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001787/0.5422, allocations: 224.1 kB / 1.237 GB, free: 10.27 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001218/0.5424, allocations: 102.7 kB / 1.237 GB, free: 10.17 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008609/0.5432, allocations: 0.4912 MB / 1.237 GB, free: 9.676 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.402e-06/0.5433, allocations: 4 kB / 1.237 GB, free: 9.672 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.873e-06/0.5433, allocations: 3.984 kB / 1.237 GB, free: 9.668 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.182e-06/0.5433, allocations: 3.984 kB / 1.237 GB, free: 9.664 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001971/0.5453, allocations: 1.38 MB / 1.238 GB, free: 8.207 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.47e-06/0.5453, allocations: 3.938 kB / 1.238 GB, free: 8.203 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002466/0.5455, allocations: 72.11 kB / 1.239 GB, free: 8.133 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.134e-06/0.5456, allocations: 4 kB / 1.239 GB, free: 8.129 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.442e-05/0.5456, allocations: 8 kB / 1.239 GB, free: 8.121 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.482e-06/0.5456, allocations: 7.938 kB / 1.239 GB, free: 8.113 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.5456, allocations: 0 / 1.239 GB, free: 8.113 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007982/0.5464, allocations: 0.5982 MB / 1.239 GB, free: 7.477 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003076/0.5467, allocations: 215.8 kB / 1.239 GB, free: 7.246 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001244/0.5469, allocations: 8 kB / 1.239 GB, free: 7.238 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004886/0.5473, allocations: 51.8 kB / 1.239 GB, free: 7.188 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.564e-05/0.5474, allocations: 27.95 kB / 1.239 GB, free: 7.16 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.726e-05/0.5475, allocations: 16 kB / 1.239 GB, free: 7.145 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.000986/0.5485, allocations: 0.7953 MB / 1.24 GB, free: 6.34 MB / 0.9981 GB Notification: Performance of sort global known variables: time 2.21e-07/0.5485, allocations: 3.938 kB / 1.24 GB, free: 6.336 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.001191/0.5497, allocations: 395.5 kB / 1.241 GB, free: 5.949 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,pulse_p.T_start,pulse_p.count) * Number of discrete states: 1 (pulse_p.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004883/0.5502, allocations: 178.9 kB / 1.241 GB, free: 5.777 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.001408/0.5516, allocations: 0.8056 MB / 1.242 GB, free: 4.949 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.966e-06/0.5516, allocations: 0 / 1.242 GB, free: 4.949 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0003487/0.552, allocations: 198.7 kB / 1.242 GB, free: 4.758 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002046/0.554, allocations: 463.8 kB / 1.242 GB, free: 4.305 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003178/0.5572, allocations: 2.09 MB / 1.244 GB, free: 2.148 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007929/0.558, allocations: 1.177 MB / 1.245 GB, free: 0.9414 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002074/0.5582, allocations: 75.42 kB / 1.245 GB, free: 0.8672 MB / 0.9981 GB Notification: Performance of SimCode: time 8.41e-07/0.5582, allocations: 0 / 1.245 GB, free: 0.8672 MB / 0.9981 GB Notification: Performance of Templates: time 0.5615/1.12, allocations: 15.91 MB / 1.261 GB, free: 190.6 MB / 0.9981 GB make -j1 -f Buildings_latest_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised.makefile (rm -f Buildings_latest_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised.pipe >> ../files/Buildings_latest_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised.sim & ./Buildings_latest_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Examples_Performance_PressureDrop_SeriesFlowOptimised.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches