Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 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.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_9_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_9_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.009439/0.009439, allocations: 99.83 kB / 15.73 MB, free: 6.012 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.002049/0.002049, allocations: 193.5 kB / 16.67 MB, free: 5.93 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.413/1.413, allocations: 222.9 MB / 240.4 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.303/2.303, allocations: 390.2 MB / 0.6648 GB, free: 0.5898 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001551/0.001551, allocations: 67.89 kB / 0.9508 GB, free: 7.602 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.096/1.098, allocations: 140.4 MB / 1.088 GB, free: 5.5 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter): time 0.02733/1.125, allocations: 15.05 MB / 1.103 GB, free: 10.71 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.008674/1.134, allocations: 3.882 MB / 1.106 GB, free: 7.977 MB / 0.8731 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001194/1.135, allocations: 18.16 kB / 1.106 GB, free: 7.973 MB / 0.8731 GB Notification: Performance of NFTyping.typeComponents: time 0.0009425/1.136, allocations: 198.1 kB / 1.107 GB, free: 7.848 MB / 0.8731 GB Notification: Performance of NFTyping.typeBindings: time 0.00328/1.14, allocations: 0.7091 MB / 1.107 GB, free: 7.453 MB / 0.8731 GB Notification: Performance of NFTyping.typeClassSections: time 0.002051/1.142, allocations: 475.2 kB / 1.108 GB, free: 7.238 MB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 0.002682/1.144, allocations: 1.089 MB / 1.109 GB, free: 6.75 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006314/1.145, allocations: 281.9 kB / 1.109 GB, free: 6.629 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001084/1.146, allocations: 413.1 kB / 1.109 GB, free: 6.457 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004325/1.146, allocations: 268.6 kB / 1.11 GB, free: 6.336 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 5.049e-05/1.147, allocations: 21.34 kB / 1.11 GB, free: 6.336 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002024/1.149, allocations: 0.7138 MB / 1.11 GB, free: 6.105 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.0001331/1.149, allocations: 77.44 kB / 1.111 GB, free: 6.059 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.000267/1.149, allocations: 190.4 kB / 1.111 GB, free: 5.949 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.001708/1.151, allocations: 0.7202 MB / 1.111 GB, free: 5.691 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/1.151, allocations: 0 / 1.111 GB, free: 5.691 MB / 0.8731 GB Notification: Performance of FrontEnd: time 3.366e-06/1.151, allocations: 1.766 kB / 1.111 GB, free: 5.691 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 1.004e-05/1.151, allocations: 4 kB / 1.111 GB, free: 5.688 MB / 0.8731 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.001398/1.152, allocations: 0.758 MB / 1.112 GB, free: 5.066 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 5.078e-05/1.152, allocations: 9.125 kB / 1.112 GB, free: 5.066 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000117/1.152, allocations: 45.97 kB / 1.112 GB, free: 5.043 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001192/1.154, allocations: 0.5169 MB / 1.113 GB, free: 4.684 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.359e-05/1.154, allocations: 11.86 kB / 1.113 GB, free: 4.68 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.1e-05/1.154, allocations: 25.48 kB / 1.113 GB, free: 4.668 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004209/1.154, allocations: 179.2 kB / 1.113 GB, free: 4.59 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.087e-05/1.154, allocations: 0 / 1.113 GB, free: 4.59 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.568e-05/1.154, allocations: 6.344 kB / 1.113 GB, free: 4.586 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.316e-06/1.154, allocations: 4.578 kB / 1.113 GB, free: 4.586 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003791/1.155, allocations: 146.2 kB / 1.113 GB, free: 4.539 MB / 0.8731 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.001339/1.156, allocations: 0.8599 MB / 1.114 GB, free: 3.859 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002969/1.156, allocations: 123.3 kB / 1.114 GB, free: 3.801 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001732/1.156, allocations: 78.69 kB / 1.114 GB, free: 3.77 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003182/1.157, allocations: 334.7 kB / 1.114 GB, free: 3.391 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.184e-05/1.157, allocations: 32.38 kB / 1.114 GB, free: 3.352 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=12): time 1.793e-06/1.157, allocations: 0 / 1.114 GB, free: 3.352 MB / 0.8731 GB Notification: Performance of matching and sorting (n=12): time 0.000613/1.157, allocations: 222.7 kB / 1.115 GB, free: 3.258 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.922e-05/1.157, allocations: 52.81 kB / 1.115 GB, free: 3.195 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004131/1.158, allocations: 344.8 kB / 1.115 GB, free: 3.023 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 2.929e-05/1.158, allocations: 31.17 kB / 1.115 GB, free: 2.988 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001805/1.158, allocations: 200 kB / 1.115 GB, free: 2.82 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 4.928e-05/1.158, allocations: 40.05 kB / 1.115 GB, free: 2.789 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.169e-05/1.158, allocations: 37.73 kB / 1.115 GB, free: 2.762 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0002215/1.158, allocations: 341.9 kB / 1.116 GB, free: 2.438 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000164/1.159, allocations: 50.73 kB / 1.116 GB, free: 2.418 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002057/1.159, allocations: 87.7 kB / 1.116 GB, free: 2.363 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003075/1.159, allocations: 119.2 kB / 1.116 GB, free: 2.312 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.49e-06/1.159, allocations: 1.438 kB / 1.116 GB, free: 2.312 MB / 0.8731 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0004466/1.16, allocations: 182.9 kB / 1.116 GB, free: 2.227 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 2.086e-05/1.16, allocations: 8.922 kB / 1.116 GB, free: 2.223 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.312e-06/1.16, allocations: 2.031 kB / 1.116 GB, free: 2.223 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.483e-05/1.16, allocations: 0 / 1.116 GB, free: 2.223 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001585/1.16, allocations: 29.23 kB / 1.116 GB, free: 2.219 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.853e-06/1.16, allocations: 1.188 kB / 1.116 GB, free: 2.219 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002329/1.16, allocations: 25.89 kB / 1.116 GB, free: 2.207 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.607e-05/1.16, allocations: 5.297 kB / 1.116 GB, free: 2.207 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000235/1.16, allocations: 155.3 kB / 1.116 GB, free: 2.102 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001757/1.161, allocations: 94.73 kB / 1.116 GB, free: 2.039 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.000279/1.161, allocations: 116.2 kB / 1.116 GB, free: 1.988 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 9.62e-07/1.161, allocations: 0 / 1.116 GB, free: 1.988 MB / 0.8731 GB Notification: Performance of matching and sorting (n=12) (initialization_lambda0): time 0.0003777/1.161, allocations: 172.5 kB / 1.117 GB, free: 1.91 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.367e-05/1.161, allocations: 8.672 kB / 1.117 GB, free: 1.91 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.234e-06/1.161, allocations: 1.031 kB / 1.117 GB, free: 1.91 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.981e-06/1.161, allocations: 5.344 kB / 1.117 GB, free: 1.906 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001215/1.161, allocations: 31.39 kB / 1.117 GB, free: 1.898 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.388e-06/1.161, allocations: 1.781 kB / 1.117 GB, free: 1.898 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001985/1.162, allocations: 17.25 kB / 1.117 GB, free: 1.895 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.869e-05/1.162, allocations: 9.047 kB / 1.117 GB, free: 1.891 MB / 0.8731 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.0001505/1.162, allocations: 188.7 kB / 1.117 GB, free: 1.703 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.155e-05/1.162, allocations: 37.31 kB / 1.117 GB, free: 1.684 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006294/1.162, allocations: 232.5 kB / 1.117 GB, free: 1.578 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.277e-05/1.162, allocations: 2.672 kB / 1.117 GB, free: 1.578 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.442e-06/1.163, allocations: 0.7812 kB / 1.117 GB, free: 1.578 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.005e-06/1.163, allocations: 4.844 kB / 1.117 GB, free: 1.574 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001275/1.164, allocations: 0.639 MB / 1.118 GB, free: 1.121 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.41e-06/1.164, allocations: 1.906 kB / 1.118 GB, free: 1.121 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001099/1.164, allocations: 23.56 kB / 1.118 GB, free: 1.121 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.148e-06/1.164, allocations: 1.406 kB / 1.118 GB, free: 1.121 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.466e-05/1.164, allocations: 3.203 kB / 1.118 GB, free: 1.121 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.787e-06/1.164, allocations: 1.344 kB / 1.118 GB, free: 1.121 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/1.164, allocations: 1.438 kB / 1.118 GB, free: 1.121 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005165/1.165, allocations: 320.6 kB / 1.118 GB, free: 0.8984 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001688/1.165, allocations: 130.7 kB / 1.118 GB, free: 0.7734 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.091e-05/1.165, allocations: 7.047 kB / 1.118 GB, free: 0.7695 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000206/1.165, allocations: 13.56 kB / 1.118 GB, free: 0.7695 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.969e-05/1.165, allocations: 17.05 kB / 1.118 GB, free: 0.7617 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.926e-05/1.165, allocations: 9.047 kB / 1.118 GB, free: 0.7578 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0003335/1.165, allocations: 247.4 kB / 1.119 GB, free: 0.6289 MB / 0.8731 GB Notification: Performance of sort global known variables: time 2.1e-07/1.165, allocations: 0 / 1.119 GB, free: 0.6289 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0008244/1.166, allocations: 192.3 kB / 1.119 GB, free: 0.582 MB / 0.8731 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.0006505/1.167, allocations: 259.4 kB / 1.119 GB, free: 436 kB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.000586/1.167, allocations: 190.3 kB / 1.119 GB, free: 388 kB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 3.025e-06/1.167, allocations: 0 / 1.119 GB, free: 388 kB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0001972/1.168, allocations: 80.88 kB / 1.119 GB, free: 364 kB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008671/1.169, allocations: 149.7 kB / 1.119 GB, free: 312 kB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009975/1.17, allocations: 0.5733 MB / 1.12 GB, free: 15.93 MB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004095/1.17, allocations: 0.7925 MB / 1.121 GB, free: 15.22 MB / 0.8887 GB Notification: Performance of simCode: alias equations: time 0.0002824/1.17, allocations: 71.72 kB / 1.121 GB, free: 15.21 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.803e-05/1.17, allocations: 34.34 kB / 1.121 GB, free: 15.2 MB / 0.8887 GB Notification: Performance of SimCode: time 9.01e-07/1.17, allocations: 0 / 1.121 GB, free: 15.2 MB / 0.8887 GB Notification: Performance of Templates: time 0.01755/1.188, allocations: 6.592 MB / 1.127 GB, free: 14.64 MB / 0.8887 GB make -j1 -f Buildings_9_Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter.makefile (rm -f Buildings_9_Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter.pipe ; mkfifo Buildings_9_Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter.pipe >> ../files/Buildings_9_Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter.sim & ./Buildings_9_Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_FixedResistances_Examples_HydraulicDiameter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches