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.007091/0.007091, allocations: 97.12 kB / 15.73 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.001225/0.001225, allocations: 192.7 kB / 16.67 MB, free: 5.871 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.399/1.399, allocations: 222.9 MB / 240.4 MB, free: 15.08 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.615/2.615, allocations: 437 MB / 0.7105 GB, free: 4.41 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001272/0.001273, allocations: 67.84 kB / 1.019 GB, free: 9.391 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.187/1.189, allocations: 151.6 MB / 1.167 GB, free: 3.84 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter): time 0.01887/1.208, allocations: 15.06 MB / 1.181 GB, free: 4.727 MB / 0.9044 GB Notification: Performance of NFInst.instExpressions: time 0.007444/1.215, allocations: 3.891 MB / 1.185 GB, free: 0.8242 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008095/1.216, allocations: 15.94 kB / 1.185 GB, free: 0.8086 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.000795/1.217, allocations: 198.7 kB / 1.185 GB, free: 0.6094 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.002254/1.219, allocations: 0.7053 MB / 1.186 GB, free: 15.9 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.001696/1.221, allocations: 476.5 kB / 1.186 GB, free: 15.44 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.001801/1.223, allocations: 1.08 MB / 1.187 GB, free: 14.36 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005781/1.223, allocations: 290.5 kB / 1.188 GB, free: 14.07 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0009082/1.224, allocations: 414.4 kB / 1.188 GB, free: 13.66 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005346/1.225, allocations: 262.7 kB / 1.188 GB, free: 13.41 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 5.229e-05/1.225, allocations: 24 kB / 1.188 GB, free: 13.38 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00156/1.226, allocations: 0.7173 MB / 1.189 GB, free: 12.66 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 0.0001018/1.226, allocations: 71.69 kB / 1.189 GB, free: 12.59 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.0002307/1.227, allocations: 191 kB / 1.189 GB, free: 12.41 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.001279/1.228, allocations: 0.7235 MB / 1.19 GB, free: 11.68 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 6.993e-06/1.228, allocations: 0 / 1.19 GB, free: 11.68 MB / 0.92 GB Notification: Performance of FrontEnd: time 2.745e-06/1.228, allocations: 0 / 1.19 GB, free: 11.68 MB / 0.92 GB Notification: Performance of Transformations before backend: time 7.865e-06/1.228, allocations: 0 / 1.19 GB, free: 11.68 MB / 0.92 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.001442/1.23, allocations: 0.7621 MB / 1.191 GB, free: 10.87 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.36e-05/1.23, allocations: 12.62 kB / 1.191 GB, free: 10.86 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.883e-05/1.23, allocations: 48.66 kB / 1.191 GB, free: 10.81 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001063/1.231, allocations: 0.5177 MB / 1.191 GB, free: 10.25 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.997e-05/1.231, allocations: 12.33 kB / 1.191 GB, free: 10.24 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.893e-05/1.231, allocations: 16 kB / 1.191 GB, free: 10.22 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003884/1.231, allocations: 176.2 kB / 1.192 GB, free: 10.05 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.066e-05/1.231, allocations: 0 / 1.192 GB, free: 10.05 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.227e-05/1.231, allocations: 12 kB / 1.192 GB, free: 10.04 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.063e-06/1.231, allocations: 4 kB / 1.192 GB, free: 10.03 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003165/1.232, allocations: 132.2 kB / 1.192 GB, free: 9.902 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.001162/1.233, allocations: 0.8685 MB / 1.193 GB, free: 8.934 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003231/1.233, allocations: 122.6 kB / 1.193 GB, free: 8.805 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001481/1.233, allocations: 72.81 kB / 1.193 GB, free: 8.73 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003038/1.234, allocations: 344.3 kB / 1.193 GB, free: 8.32 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.879e-05/1.234, allocations: 34.56 kB / 1.193 GB, free: 8.277 MB / 0.92 GB Notification: Performance of pre-optimization done (n=12): time 1.302e-06/1.234, allocations: 0 / 1.193 GB, free: 8.277 MB / 0.92 GB Notification: Performance of matching and sorting (n=12): time 0.0005656/1.234, allocations: 217.2 kB / 1.193 GB, free: 8.059 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.55e-05/1.234, allocations: 55.41 kB / 1.193 GB, free: 7.992 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003548/1.235, allocations: 349.7 kB / 1.194 GB, free: 7.641 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 2.105e-05/1.235, allocations: 29.64 kB / 1.194 GB, free: 7.605 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001455/1.235, allocations: 200.4 kB / 1.194 GB, free: 7.406 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 5.247e-05/1.235, allocations: 43.64 kB / 1.194 GB, free: 7.363 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.016e-05/1.235, allocations: 29.72 kB / 1.194 GB, free: 7.328 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001446/1.235, allocations: 346.8 kB / 1.194 GB, free: 6.98 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001441/1.235, allocations: 48.83 kB / 1.194 GB, free: 6.93 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001773/1.235, allocations: 92.17 kB / 1.194 GB, free: 6.824 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002666/1.236, allocations: 113.7 kB / 1.195 GB, free: 6.707 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.255e-06/1.236, allocations: 4 kB / 1.195 GB, free: 6.703 MB / 0.92 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0003621/1.236, allocations: 181.3 kB / 1.195 GB, free: 6.52 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.99e-05/1.236, allocations: 7.938 kB / 1.195 GB, free: 6.512 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.822e-06/1.236, allocations: 0 / 1.195 GB, free: 6.512 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.043e-05/1.236, allocations: 3.984 kB / 1.195 GB, free: 6.508 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001548/1.236, allocations: 27.98 kB / 1.195 GB, free: 6.48 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.989e-06/1.236, allocations: 4 kB / 1.195 GB, free: 6.477 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001865/1.236, allocations: 15.92 kB / 1.195 GB, free: 6.461 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.598e-05/1.237, allocations: 4 kB / 1.195 GB, free: 6.457 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002273/1.237, allocations: 160.1 kB / 1.195 GB, free: 6.297 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001943/1.237, allocations: 88.91 kB / 1.195 GB, free: 6.195 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0002332/1.237, allocations: 113.6 kB / 1.195 GB, free: 6.078 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.384e-06/1.237, allocations: 0 / 1.195 GB, free: 6.078 MB / 0.92 GB Notification: Performance of matching and sorting (n=12) (initialization_lambda0): time 0.0003298/1.238, allocations: 181.3 kB / 1.195 GB, free: 5.895 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 9.969e-06/1.238, allocations: 4 kB / 1.195 GB, free: 5.891 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.543e-06/1.238, allocations: 0 / 1.195 GB, free: 5.891 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.057e-06/1.238, allocations: 7.938 kB / 1.195 GB, free: 5.883 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001046/1.238, allocations: 23.92 kB / 1.195 GB, free: 5.859 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.147e-06/1.238, allocations: 11.97 kB / 1.195 GB, free: 5.848 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001683/1.238, allocations: 15.98 kB / 1.195 GB, free: 5.832 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.301e-05/1.238, allocations: 4 kB / 1.195 GB, free: 5.828 MB / 0.92 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.0001222/1.238, allocations: 188.3 kB / 1.196 GB, free: 5.637 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.44e-05/1.238, allocations: 39.7 kB / 1.196 GB, free: 5.598 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004918/1.239, allocations: 231.8 kB / 1.196 GB, free: 5.371 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.604e-06/1.239, allocations: 4 kB / 1.196 GB, free: 5.367 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.468e-06/1.239, allocations: 0 / 1.196 GB, free: 5.367 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.04e-06/1.239, allocations: 3.984 kB / 1.196 GB, free: 5.363 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009056/1.24, allocations: 0.6305 MB / 1.196 GB, free: 4.668 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.54e-06/1.24, allocations: 4 kB / 1.196 GB, free: 4.664 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001261/1.24, allocations: 24.05 kB / 1.196 GB, free: 4.641 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.575e-06/1.24, allocations: 4 kB / 1.197 GB, free: 4.637 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.377e-05/1.24, allocations: 8 kB / 1.197 GB, free: 4.629 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.024e-06/1.24, allocations: 4.094 kB / 1.197 GB, free: 4.625 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.844e-06/1.24, allocations: 4 kB / 1.197 GB, free: 4.621 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004362/1.24, allocations: 325.7 kB / 1.197 GB, free: 4.277 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001279/1.24, allocations: 128.8 kB / 1.197 GB, free: 4.133 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.378e-05/1.24, allocations: 8 kB / 1.197 GB, free: 4.125 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001965/1.241, allocations: 15.98 kB / 1.197 GB, free: 4.109 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.226e-05/1.241, allocations: 11.92 kB / 1.197 GB, free: 4.098 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.262e-05/1.241, allocations: 4 kB / 1.197 GB, free: 4.094 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.0002653/1.241, allocations: 251.2 kB / 1.197 GB, free: 3.852 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.61e-07/1.241, allocations: 0 / 1.197 GB, free: 3.852 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0005952/1.242, allocations: 195.5 kB / 1.197 GB, free: 3.66 MB / 0.92 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.0005412/1.242, allocations: 259.2 kB / 1.198 GB, free: 3.402 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0004884/1.243, allocations: 183.8 kB / 1.198 GB, free: 3.223 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 2.235e-06/1.243, allocations: 4 kB / 1.198 GB, free: 3.219 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.0001693/1.243, allocations: 79.89 kB / 1.198 GB, free: 3.141 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007647/1.244, allocations: 144.3 kB / 1.198 GB, free: 3.004 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009538/1.244, allocations: 0.5741 MB / 1.199 GB, free: 2.395 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004303/1.245, allocations: 0.7957 MB / 1.199 GB, free: 1.574 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 0.0002068/1.245, allocations: 71.09 kB / 1.199 GB, free: 1.504 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.823e-05/1.245, allocations: 31.44 kB / 1.199 GB, free: 1.473 MB / 0.92 GB Notification: Performance of SimCode: time 3.036e-06/1.245, allocations: 4 kB / 1.199 GB, free: 1.469 MB / 0.92 GB Notification: Performance of Templates: time 0.01297/1.258, allocations: 6.588 MB / 1.206 GB, free: 10.98 MB / 0.9356 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