Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.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_latest_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_latest_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.001674/0.001674, allocations: 105 kB / 16.41 MB, free: 6.465 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.001746/0.001746, allocations: 187 kB / 17.34 MB, free: 5.719 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.42/1.42, allocations: 222.9 MB / 241 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.713/2.713, allocations: 461.9 MB / 0.7355 GB, free: 11.04 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001278/0.001278, allocations: 60.12 kB / 1.055 GB, free: 7.703 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9093/0.9106, allocations: 157.4 MB / 1.208 GB, free: 13.62 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter): time 0.01608/0.9267, allocations: 15.06 MB / 1.223 GB, free: 14.51 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.006027/0.9328, allocations: 3.884 MB / 1.227 GB, free: 10.62 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005777/0.9334, allocations: 19.88 kB / 1.227 GB, free: 10.6 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.0008089/0.9343, allocations: 198.7 kB / 1.227 GB, free: 10.4 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.001983/0.9363, allocations: 0.6789 MB / 1.228 GB, free: 9.723 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.001448/0.9377, allocations: 473.5 kB / 1.228 GB, free: 9.266 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.00163/0.9394, allocations: 1.079 MB / 1.229 GB, free: 8.188 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004887/0.9399, allocations: 281.5 kB / 1.23 GB, free: 7.906 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007661/0.9407, allocations: 410.4 kB / 1.23 GB, free: 7.504 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000348/0.941, allocations: 262.8 kB / 1.23 GB, free: 7.246 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 4.659e-05/0.9411, allocations: 20 kB / 1.23 GB, free: 7.227 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001355/0.9424, allocations: 0.729 MB / 1.231 GB, free: 6.496 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 0.0001013/0.9426, allocations: 79.61 kB / 1.231 GB, free: 6.418 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.0001947/0.9428, allocations: 179 kB / 1.231 GB, free: 6.242 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.001066/0.9438, allocations: 0.7224 MB / 1.232 GB, free: 5.52 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 5.19e-06/0.9439, allocations: 0 / 1.232 GB, free: 5.52 MB / 0.9512 GB Notification: Performance of FrontEnd: time 2.114e-06/0.9439, allocations: 4 kB / 1.232 GB, free: 5.516 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 8.666e-06/0.9439, allocations: 0 / 1.232 GB, free: 5.516 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.0012/0.9451, allocations: 0.7396 MB / 1.233 GB, free: 4.723 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 4.308e-05/0.9451, allocations: 15.97 kB / 1.233 GB, free: 4.707 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.393e-05/0.9452, allocations: 40.47 kB / 1.233 GB, free: 4.668 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001034/0.9463, allocations: 0.5134 MB / 1.233 GB, free: 4.113 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.442e-05/0.9463, allocations: 16.33 kB / 1.233 GB, free: 4.098 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.83e-05/0.9464, allocations: 20 kB / 1.233 GB, free: 4.078 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003873/0.9468, allocations: 176.2 kB / 1.233 GB, free: 3.902 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.17e-05/0.9468, allocations: 0 / 1.233 GB, free: 3.902 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.221e-05/0.9468, allocations: 4 kB / 1.233 GB, free: 3.898 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.694e-06/0.9468, allocations: 4 kB / 1.233 GB, free: 3.895 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003359/0.9472, allocations: 148.1 kB / 1.234 GB, free: 3.75 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.001155/0.9483, allocations: 0.8644 MB / 1.234 GB, free: 2.785 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000269/0.9486, allocations: 114.6 kB / 1.234 GB, free: 2.664 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001591/0.9488, allocations: 76.75 kB / 1.235 GB, free: 2.586 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003144/0.9491, allocations: 340.3 kB / 1.235 GB, free: 2.18 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.21e-05/0.9491, allocations: 38.56 kB / 1.235 GB, free: 2.133 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=12): time 1.383e-06/0.9491, allocations: 0 / 1.235 GB, free: 2.133 MB / 0.9512 GB Notification: Performance of matching and sorting (n=12): time 0.0006378/0.9498, allocations: 209.2 kB / 1.235 GB, free: 1.922 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.968e-05/0.9498, allocations: 55.41 kB / 1.235 GB, free: 1.855 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003654/0.9502, allocations: 353.7 kB / 1.235 GB, free: 1.504 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 2.293e-05/0.9502, allocations: 25.7 kB / 1.236 GB, free: 1.473 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001438/0.9504, allocations: 192.3 kB / 1.236 GB, free: 1.281 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 4.114e-05/0.9504, allocations: 39.39 kB / 1.236 GB, free: 1.242 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.602e-05/0.9505, allocations: 41.55 kB / 1.236 GB, free: 1.195 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001548/0.9507, allocations: 342.8 kB / 1.236 GB, free: 0.8516 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001597/0.9508, allocations: 56.81 kB / 1.236 GB, free: 0.793 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000173/0.951, allocations: 88.19 kB / 1.236 GB, free: 0.6914 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002754/0.9513, allocations: 113.7 kB / 1.236 GB, free: 0.5742 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.9513, allocations: 0 / 1.236 GB, free: 0.5742 MB / 0.9512 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.000376/0.9517, allocations: 185 kB / 1.237 GB, free: 396 kB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.56e-05/0.9517, allocations: 7.938 kB / 1.237 GB, free: 388 kB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.622e-06/0.9517, allocations: 4 kB / 1.237 GB, free: 384 kB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.888e-05/0.9518, allocations: 0 / 1.237 GB, free: 384 kB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001667/0.9519, allocations: 27.98 kB / 1.237 GB, free: 356 kB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.615e-06/0.9519, allocations: 0 / 1.237 GB, free: 356 kB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001968/0.9521, allocations: 15.97 kB / 1.237 GB, free: 340 kB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.412e-05/0.9522, allocations: 8.062 kB / 1.237 GB, free: 332 kB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002241/0.9524, allocations: 160.1 kB / 1.237 GB, free: 168 kB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001659/0.9526, allocations: 84.91 kB / 1.237 GB, free: 68 kB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0002695/0.9529, allocations: 117.7 kB / 1.237 GB, free: 15.94 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.202e-06/0.9529, allocations: 4 kB / 1.237 GB, free: 15.94 MB / 0.9669 GB Notification: Performance of matching and sorting (n=12) (initialization_lambda0): time 0.0003693/0.9533, allocations: 173.1 kB / 1.237 GB, free: 15.76 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.073e-05/0.9533, allocations: 8 kB / 1.237 GB, free: 15.75 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.156e-06/0.9533, allocations: 0 / 1.237 GB, free: 15.75 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.278e-06/0.9533, allocations: 7.875 kB / 1.237 GB, free: 15.75 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001146/0.9534, allocations: 27.92 kB / 1.237 GB, free: 15.72 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.204e-06/0.9534, allocations: 0 / 1.237 GB, free: 15.72 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001793/0.9536, allocations: 19.98 kB / 1.237 GB, free: 15.7 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.169e-05/0.9536, allocations: 4 kB / 1.237 GB, free: 15.7 MB / 0.9669 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.0001278/0.9538, allocations: 192.2 kB / 1.237 GB, free: 15.5 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.746e-05/0.9538, allocations: 43.47 kB / 1.237 GB, free: 15.46 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005108/0.9544, allocations: 224.8 kB / 1.238 GB, free: 15.23 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.155e-06/0.9544, allocations: 0 / 1.238 GB, free: 15.23 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/0.9544, allocations: 192 / 1.238 GB, free: 15.23 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.939e-06/0.9544, allocations: 8 kB / 1.238 GB, free: 15.22 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009347/0.9553, allocations: 0.6293 MB / 1.238 GB, free: 14.53 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.769e-06/0.9554, allocations: 0 / 1.238 GB, free: 14.53 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001224/0.9555, allocations: 27.92 kB / 1.238 GB, free: 14.5 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.006e-06/0.9555, allocations: 0 / 1.238 GB, free: 14.5 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.554e-05/0.9555, allocations: 16.08 kB / 1.238 GB, free: 14.49 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.004e-06/0.9555, allocations: 0 / 1.238 GB, free: 14.49 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.116e-06/0.9555, allocations: 4 kB / 1.238 GB, free: 14.48 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004413/0.956, allocations: 313.5 kB / 1.239 GB, free: 14.15 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001256/0.9561, allocations: 132.5 kB / 1.239 GB, free: 14 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.095e-05/0.9562, allocations: 0 / 1.239 GB, free: 14 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002011/0.9564, allocations: 11.98 kB / 1.239 GB, free: 13.99 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.982e-05/0.9564, allocations: 11.98 kB / 1.239 GB, free: 13.98 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.852e-05/0.9565, allocations: 11.98 kB / 1.239 GB, free: 13.97 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.0002578/0.9567, allocations: 243.2 kB / 1.239 GB, free: 13.73 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.91e-07/0.9567, allocations: 3.938 kB / 1.239 GB, free: 13.73 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0006881/0.9574, allocations: 199.5 kB / 1.239 GB, free: 13.54 MB / 0.9669 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.0006654/0.9581, allocations: 249.7 kB / 1.239 GB, free: 13.29 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0005741/0.9587, allocations: 183.8 kB / 1.24 GB, free: 13.11 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 5.059e-06/0.9587, allocations: 4 kB / 1.24 GB, free: 13.11 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001774/0.9589, allocations: 79.89 kB / 1.24 GB, free: 13.03 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008607/0.9598, allocations: 152.7 kB / 1.24 GB, free: 12.88 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009815/0.9607, allocations: 0.5922 MB / 1.24 GB, free: 12.25 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004098/0.9612, allocations: 0.7919 MB / 1.241 GB, free: 11.43 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.802e-05/0.9612, allocations: 35.42 kB / 1.241 GB, free: 11.4 MB / 0.9669 GB Notification: Performance of SimCode: time 2.2e-07/0.9613, allocations: 0 / 1.241 GB, free: 11.4 MB / 0.9669 GB Notification: Performance of Templates: time 0.009542/0.9708, allocations: 5.794 MB / 1.247 GB, free: 5.668 MB / 0.9669 GB make -j1 -f Buildings_latest_Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter.makefile (rm -f Buildings_latest_Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter.pipe ; mkfifo Buildings_latest_Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter.pipe >> ../files/Buildings_latest_Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter.sim & ./Buildings_latest_Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_FixedResistances_Examples_HydraulicDiameter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches