Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter.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.FixedResistances.Examples.HydraulicDiameter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|res.m_flow_nominal|res.m_flow|res.m_flow_turbulent|resLarPip.m_flow_nominal|resLarPip.m_flow|resLarPip.m_flow_turbulent|res.v|resLarPip.v|res.dh|resLarPip.dh",fileNamePrefix="Buildings_10_Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter") translateModel(Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|res.m_flow_nominal|res.m_flow|res.m_flow_turbulent|resLarPip.m_flow_nominal|resLarPip.m_flow|resLarPip.m_flow_turbulent|res.v|resLarPip.v|res.dh|resLarPip.dh",fileNamePrefix="Buildings_10_Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.01097/0.01097, allocations: 100.9 kB / 15.73 MB, free: 6 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.002438/0.002438, allocations: 188.9 kB / 16.67 MB, free: 5.934 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.52/1.52, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.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.958/2.958, allocations: 437 MB / 0.7105 GB, free: 5.004 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.00139/0.00139, allocations: 60.09 kB / 1.019 GB, free: 14.58 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4167/0.4181, allocations: 151.6 MB / 1.167 GB, free: 6.832 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter): time 0.02177/0.4399, allocations: 15.05 MB / 1.181 GB, free: 7.719 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.007113/0.4471, allocations: 3.885 MB / 1.185 GB, free: 3.824 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009781/0.4481, allocations: 23.81 kB / 1.185 GB, free: 3.801 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.001075/0.4493, allocations: 194.7 kB / 1.185 GB, free: 3.609 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.00303/0.4523, allocations: 0.6803 MB / 1.186 GB, free: 2.926 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.001883/0.4542, allocations: 473.7 kB / 1.186 GB, free: 2.469 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.002045/0.4563, allocations: 1.079 MB / 1.187 GB, free: 1.383 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005372/0.4568, allocations: 285.5 kB / 1.188 GB, free: 1.102 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0009304/0.4578, allocations: 398.4 kB / 1.188 GB, free: 0.7109 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003731/0.4582, allocations: 262.8 kB / 1.188 GB, free: 464 kB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 5.063e-05/0.4582, allocations: 27.98 kB / 1.188 GB, free: 436 kB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001711/0.46, allocations: 0.7212 MB / 1.189 GB, free: 15.7 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 0.0001232/0.4601, allocations: 75.67 kB / 1.189 GB, free: 15.63 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.000247/0.4603, allocations: 187 kB / 1.189 GB, free: 15.45 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.001588/0.4619, allocations: 0.72 MB / 1.19 GB, free: 14.72 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 6.342e-06/0.462, allocations: 0 / 1.19 GB, free: 14.72 MB / 0.9512 GB Notification: Performance of FrontEnd: time 2.554e-06/0.462, allocations: 0 / 1.19 GB, free: 14.72 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 2.445e-05/0.462, allocations: 0 / 1.19 GB, free: 14.72 MB / 0.9512 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.001494/0.4635, allocations: 0.766 MB / 1.191 GB, free: 13.9 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 5.037e-05/0.4636, allocations: 8.031 kB / 1.191 GB, free: 13.89 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001213/0.4637, allocations: 52.64 kB / 1.191 GB, free: 13.84 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001229/0.4649, allocations: 0.5177 MB / 1.191 GB, free: 13.29 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.345e-05/0.465, allocations: 12.33 kB / 1.191 GB, free: 13.28 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.005e-05/0.465, allocations: 20 kB / 1.191 GB, free: 13.26 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004783/0.4655, allocations: 184.2 kB / 1.192 GB, free: 13.07 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.294e-05/0.4655, allocations: 0 / 1.192 GB, free: 13.07 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.566e-05/0.4656, allocations: 8 kB / 1.192 GB, free: 13.07 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.164e-05/0.4656, allocations: 4 kB / 1.192 GB, free: 13.06 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004591/0.466, allocations: 132.2 kB / 1.192 GB, free: 12.93 MB / 0.9512 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.00157/0.4676, allocations: 0.8647 MB / 1.193 GB, free: 11.97 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003225/0.468, allocations: 118.6 kB / 1.193 GB, free: 11.84 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001886/0.4682, allocations: 76.75 kB / 1.193 GB, free: 11.77 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004107/0.4686, allocations: 332.4 kB / 1.193 GB, free: 11.37 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.352e-05/0.4686, allocations: 38.5 kB / 1.193 GB, free: 11.32 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=12): time 2.645e-06/0.4686, allocations: 0 / 1.193 GB, free: 11.32 MB / 0.9512 GB Notification: Performance of matching and sorting (n=12): time 0.0007167/0.4694, allocations: 221.2 kB / 1.193 GB, free: 11.1 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.833e-05/0.4694, allocations: 63.41 kB / 1.193 GB, free: 11.02 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004832/0.4699, allocations: 341.7 kB / 1.194 GB, free: 10.68 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 5.687e-05/0.47, allocations: 29.7 kB / 1.194 GB, free: 10.64 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001862/0.4702, allocations: 188.5 kB / 1.194 GB, free: 10.46 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 6.671e-05/0.4703, allocations: 51.58 kB / 1.194 GB, free: 10.41 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.534e-05/0.4704, allocations: 37.64 kB / 1.194 GB, free: 10.36 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0002619/0.4706, allocations: 342.8 kB / 1.194 GB, free: 10.02 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001533/0.4708, allocations: 52.83 kB / 1.194 GB, free: 9.965 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001904/0.471, allocations: 80.25 kB / 1.194 GB, free: 9.871 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002877/0.4713, allocations: 125.6 kB / 1.195 GB, free: 9.742 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.138e-06/0.4713, allocations: 0 / 1.195 GB, free: 9.742 MB / 0.9512 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.000434/0.4718, allocations: 181.3 kB / 1.195 GB, free: 9.559 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 2.244e-05/0.4718, allocations: 7.938 kB / 1.195 GB, free: 9.551 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.456e-06/0.4718, allocations: 0 / 1.195 GB, free: 9.551 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.524e-05/0.4718, allocations: 4 kB / 1.195 GB, free: 9.547 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001691/0.472, allocations: 23.92 kB / 1.195 GB, free: 9.523 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.438e-06/0.472, allocations: 4 kB / 1.195 GB, free: 9.52 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002181/0.4722, allocations: 15.97 kB / 1.195 GB, free: 9.504 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.039e-05/0.4723, allocations: 12 kB / 1.195 GB, free: 9.492 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002446/0.4725, allocations: 156.2 kB / 1.195 GB, free: 9.336 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001626/0.4727, allocations: 84.25 kB / 1.195 GB, free: 9.238 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0002592/0.473, allocations: 121.6 kB / 1.195 GB, free: 9.113 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.503e-06/0.473, allocations: 4 kB / 1.195 GB, free: 9.109 MB / 0.9512 GB Notification: Performance of matching and sorting (n=12) (initialization_lambda0): time 0.0003668/0.4734, allocations: 173.4 kB / 1.195 GB, free: 8.934 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 9.518e-06/0.4734, allocations: 4 kB / 1.195 GB, free: 8.93 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.069e-06/0.4734, allocations: 4 kB / 1.195 GB, free: 8.926 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.098e-06/0.4734, allocations: 7.875 kB / 1.195 GB, free: 8.918 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001056/0.4735, allocations: 23.98 kB / 1.195 GB, free: 8.895 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.354e-06/0.4735, allocations: 0 / 1.195 GB, free: 8.895 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001959/0.4737, allocations: 27.91 kB / 1.195 GB, free: 8.867 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.784e-05/0.4738, allocations: 4 kB / 1.195 GB, free: 8.863 MB / 0.9512 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * 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.0001338/0.4739, allocations: 192.2 kB / 1.196 GB, free: 8.668 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.701e-05/0.474, allocations: 39.7 kB / 1.196 GB, free: 8.629 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000557/0.4745, allocations: 225.5 kB / 1.196 GB, free: 8.406 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.072e-05/0.4746, allocations: 0 / 1.196 GB, free: 8.406 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.064e-06/0.4746, allocations: 0 / 1.196 GB, free: 8.406 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.629e-06/0.4746, allocations: 4 kB / 1.196 GB, free: 8.402 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001089/0.4757, allocations: 0.6334 MB / 1.196 GB, free: 7.703 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.879e-06/0.4757, allocations: 0 / 1.196 GB, free: 7.703 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001084/0.4758, allocations: 35.91 kB / 1.196 GB, free: 7.668 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.086e-06/0.4758, allocations: 0 / 1.196 GB, free: 7.668 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.601e-05/0.4758, allocations: 8.094 kB / 1.196 GB, free: 7.66 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.374e-06/0.4758, allocations: 0 / 1.196 GB, free: 7.66 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.364e-06/0.4759, allocations: 0 / 1.196 GB, free: 7.66 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006294/0.4765, allocations: 321.7 kB / 1.197 GB, free: 7.32 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001776/0.4767, allocations: 124.8 kB / 1.197 GB, free: 7.18 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.469e-05/0.4767, allocations: 4 kB / 1.197 GB, free: 7.176 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002148/0.477, allocations: 23.91 kB / 1.197 GB, free: 7.152 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.993e-05/0.477, allocations: 7.984 kB / 1.197 GB, free: 7.145 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.716e-05/0.4771, allocations: 4 kB / 1.197 GB, free: 7.141 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0003877/0.4775, allocations: 251.3 kB / 1.197 GB, free: 6.898 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.6e-07/0.4775, allocations: 7.875 kB / 1.197 GB, free: 6.891 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0008098/0.4783, allocations: 199.3 kB / 1.197 GB, free: 6.695 MB / 0.9512 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * 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.0009062/0.4792, allocations: 248.4 kB / 1.198 GB, free: 6.449 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0006402/0.4799, allocations: 187.8 kB / 1.198 GB, free: 6.266 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 5.15e-06/0.4799, allocations: 0 / 1.198 GB, free: 6.266 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0002088/0.4801, allocations: 83.89 kB / 1.198 GB, free: 6.184 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008829/0.481, allocations: 148.2 kB / 1.198 GB, free: 6.043 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001287/0.4823, allocations: 0.5737 MB / 1.199 GB, free: 5.434 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004935/0.4828, allocations: 0.7996 MB / 1.199 GB, free: 4.609 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.0003073/0.4831, allocations: 75.25 kB / 1.199 GB, free: 4.535 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.78e-05/0.4832, allocations: 35.44 kB / 1.199 GB, free: 4.5 MB / 0.9512 GB Notification: Performance of SimCode: time 5.61e-07/0.4832, allocations: 0 / 1.199 GB, free: 4.5 MB / 0.9512 GB Notification: Performance of Templates: time 0.01639/0.4996, allocations: 6.587 MB / 1.206 GB, free: 14.01 MB / 0.9669 GB make -j1 -f Buildings_10_Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter.makefile (rm -f Buildings_10_Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter.pipe ; mkfifo Buildings_10_Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter.pipe >> ../files/Buildings_10_Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter.sim & ./Buildings_10_Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_FixedResistances_Examples_HydraulicDiameter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches