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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001681/0.001681, allocations: 110.2 kB / 19.69 MB, free: 2.254 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002187/0.002187, allocations: 215.2 kB / 23.01 MB, free: 4.566 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.59/1.59, allocations: 230.6 MB / 256.8 MB, free: 8 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.307/3.307, allocations: 0.505 GB / 0.8108 GB, free: 21.99 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,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=2500,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") [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002368/0.002368, allocations: 68.78 kB / 1.178 GB, free: 16.68 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3918/0.3942, allocations: 180.2 MB / 1.354 GB, free: 7.941 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter): time 0.02018/0.4144, allocations: 15.43 MB / 1.369 GB, free: 8.449 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.007257/0.4216, allocations: 3.96 MB / 1.373 GB, free: 4.48 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007576/0.4224, allocations: 27.75 kB / 1.373 GB, free: 4.453 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.000795/0.4232, allocations: 198.6 kB / 1.373 GB, free: 4.258 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.002518/0.4257, allocations: 0.7179 MB / 1.374 GB, free: 3.539 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.001743/0.4274, allocations: 499.4 kB / 1.374 GB, free: 3.055 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.002268/0.4297, allocations: 1.13 MB / 1.376 GB, free: 1.918 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004803/0.4302, allocations: 237.7 kB / 1.376 GB, free: 1.68 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001279/0.4315, allocations: 486.2 kB / 1.376 GB, free: 1.203 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004138/0.4319, allocations: 270.7 kB / 1.376 GB, free: 0.9375 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 4.713e-05/0.4319, allocations: 20 kB / 1.376 GB, free: 0.918 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001505/0.4334, allocations: 0.7407 MB / 1.377 GB, free: 180 kB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 0.0001087/0.4335, allocations: 75.69 kB / 1.377 GB, free: 104 kB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 0.000241/0.4338, allocations: 198.9 kB / 1.377 GB, free: 15.91 MB / 1.076 GB Notification: Performance of NFConvertDAE.convert: time 0.001183/0.435, allocations: 0.7356 MB / 1.378 GB, free: 15.17 MB / 1.076 GB Notification: Performance of FrontEnd - DAE generated: time 5.04e-06/0.435, allocations: 0 / 1.378 GB, free: 15.17 MB / 1.076 GB Notification: Performance of FrontEnd: time 2.184e-06/0.435, allocations: 4 kB / 1.378 GB, free: 15.16 MB / 1.076 GB Notification: Performance of Transformations before backend: time 7.404e-06/0.435, allocations: 0 / 1.378 GB, free: 15.16 MB / 1.076 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.001245/0.4362, allocations: 0.6906 MB / 1.379 GB, free: 14.44 MB / 1.076 GB Notification: Performance of prepare preOptimizeDAE: time 4.669e-05/0.4363, allocations: 12.03 kB / 1.379 GB, free: 14.43 MB / 1.076 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001019/0.4364, allocations: 48.66 kB / 1.379 GB, free: 14.38 MB / 1.076 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00115/0.4375, allocations: 471 kB / 1.379 GB, free: 13.9 MB / 1.076 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.601e-05/0.4375, allocations: 16.27 kB / 1.379 GB, free: 13.89 MB / 1.076 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.697e-05/0.4376, allocations: 20 kB / 1.379 GB, free: 13.87 MB / 1.076 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004005/0.438, allocations: 183.1 kB / 1.38 GB, free: 13.68 MB / 1.076 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.211e-05/0.438, allocations: 7.984 kB / 1.38 GB, free: 13.68 MB / 1.076 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.036e-05/0.438, allocations: 4 kB / 1.38 GB, free: 13.67 MB / 1.076 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.632e-06/0.438, allocations: 4 kB / 1.38 GB, free: 13.67 MB / 1.076 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003329/0.4383, allocations: 135.9 kB / 1.38 GB, free: 13.54 MB / 1.076 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001326/0.4397, allocations: 0.8247 MB / 1.381 GB, free: 12.62 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003351/0.44, allocations: 114.6 kB / 1.381 GB, free: 12.5 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001723/0.4402, allocations: 68.75 kB / 1.381 GB, free: 12.43 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001584/0.4403, allocations: 27.98 kB / 1.381 GB, free: 12.4 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.2e-05/0.4404, allocations: 38.56 kB / 1.381 GB, free: 12.35 MB / 1.076 GB Notification: Performance of pre-optimization done (n=12): time 1.403e-06/0.4404, allocations: 0 / 1.381 GB, free: 12.35 MB / 1.076 GB Notification: Performance of matching and sorting (n=12): time 0.0006039/0.441, allocations: 229.2 kB / 1.381 GB, free: 12.12 MB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.859e-05/0.441, allocations: 55.41 kB / 1.381 GB, free: 12.05 MB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004152/0.4414, allocations: 345.7 kB / 1.381 GB, free: 11.71 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 2.669e-05/0.4415, allocations: 33.7 kB / 1.381 GB, free: 11.67 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001693/0.4416, allocations: 204.4 kB / 1.382 GB, free: 11.46 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 4.728e-05/0.4417, allocations: 43.62 kB / 1.382 GB, free: 11.42 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.483e-05/0.4417, allocations: 33.66 kB / 1.382 GB, free: 11.38 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 0.0002272/0.442, allocations: 346.8 kB / 1.382 GB, free: 11.04 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001445/0.4421, allocations: 48.81 kB / 1.382 GB, free: 10.98 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001874/0.4423, allocations: 96.62 kB / 1.382 GB, free: 10.88 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000278/0.4426, allocations: 117.5 kB / 1.382 GB, free: 10.75 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.4426, allocations: 0 / 1.382 GB, free: 10.75 MB / 1.076 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0003839/0.443, allocations: 181.3 kB / 1.382 GB, free: 10.57 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 2.04e-05/0.443, allocations: 11.94 kB / 1.382 GB, free: 10.56 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.418e-06/0.443, allocations: 7.984 kB / 1.382 GB, free: 10.55 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.465e-05/0.443, allocations: 0 / 1.382 GB, free: 10.55 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001534/0.4432, allocations: 27.92 kB / 1.382 GB, free: 10.52 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.151e-06/0.4432, allocations: 0 / 1.382 GB, free: 10.52 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001994/0.4434, allocations: 27.88 kB / 1.382 GB, free: 10.5 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.58e-05/0.4434, allocations: 7.984 kB / 1.383 GB, free: 10.49 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002312/0.4436, allocations: 152.1 kB / 1.383 GB, free: 10.34 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001709/0.4438, allocations: 92.25 kB / 1.383 GB, free: 10.23 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0002618/0.4441, allocations: 109.6 kB / 1.383 GB, free: 10.12 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 9.02e-07/0.4441, allocations: 0 / 1.383 GB, free: 10.12 MB / 1.076 GB Notification: Performance of matching and sorting (n=12) (initialization_lambda0): time 0.0003721/0.4444, allocations: 177.5 kB / 1.383 GB, free: 9.938 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 8.546e-06/0.4444, allocations: 8.094 kB / 1.383 GB, free: 9.93 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.413e-06/0.4444, allocations: 3.938 kB / 1.383 GB, free: 9.926 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.973e-06/0.4444, allocations: 7.938 kB / 1.383 GB, free: 9.918 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001181/0.4446, allocations: 27.91 kB / 1.383 GB, free: 9.891 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.481e-06/0.4446, allocations: 4.125 kB / 1.383 GB, free: 9.887 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001812/0.4447, allocations: 19.98 kB / 1.383 GB, free: 9.867 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.443e-05/0.4448, allocations: 4 kB / 1.383 GB, free: 9.863 MB / 1.076 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.0001967/0.445, allocations: 192.2 kB / 1.383 GB, free: 9.668 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.773e-05/0.445, allocations: 39.7 kB / 1.383 GB, free: 9.629 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006098/0.4456, allocations: 221.1 kB / 1.384 GB, free: 9.406 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.297e-05/0.4457, allocations: 7.984 kB / 1.384 GB, free: 9.398 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.58e-06/0.4457, allocations: 0 / 1.384 GB, free: 9.398 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.999e-06/0.4457, allocations: 0 / 1.384 GB, free: 9.398 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001084/0.4468, allocations: 0.6117 MB / 1.384 GB, free: 8.73 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.05e-06/0.4468, allocations: 0 / 1.384 GB, free: 8.73 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001153/0.4469, allocations: 31.92 kB / 1.384 GB, free: 8.699 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.527e-06/0.4469, allocations: 0 / 1.384 GB, free: 8.699 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.703e-05/0.4469, allocations: 4 kB / 1.384 GB, free: 8.695 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.276e-06/0.4469, allocations: 0 / 1.384 GB, free: 8.695 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.148e-06/0.4469, allocations: 4 kB / 1.384 GB, free: 8.691 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005194/0.4474, allocations: 332.4 kB / 1.384 GB, free: 8.344 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001143/0.4475, allocations: 51.73 kB / 1.385 GB, free: 8.293 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.608e-05/0.4476, allocations: 3.984 kB / 1.385 GB, free: 8.289 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002044/0.4478, allocations: 19.98 kB / 1.385 GB, free: 8.27 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.436e-05/0.4478, allocations: 11.92 kB / 1.385 GB, free: 8.258 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.612e-05/0.4479, allocations: 4 kB / 1.385 GB, free: 8.254 MB / 1.076 GB Notification: Performance of sorting global known variables: time 0.0003252/0.4482, allocations: 255.2 kB / 1.385 GB, free: 8.008 MB / 1.076 GB Notification: Performance of sort global known variables: time 8e-08/0.4482, allocations: 0 / 1.385 GB, free: 8.008 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.0007659/0.449, allocations: 203.3 kB / 1.385 GB, free: 7.809 MB / 1.076 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.0005966/0.4496, allocations: 246.8 kB / 1.385 GB, free: 7.559 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.0005594/0.4501, allocations: 187.8 kB / 1.385 GB, free: 7.375 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 2.554e-06/0.4501, allocations: 0 / 1.385 GB, free: 7.375 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 0.0001798/0.4503, allocations: 75.89 kB / 1.385 GB, free: 7.301 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008273/0.4511, allocations: 143.2 kB / 1.386 GB, free: 7.156 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001077/0.4522, allocations: 0.6044 MB / 1.386 GB, free: 6.512 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005239/0.4527, allocations: 0.7918 MB / 1.387 GB, free: 5.691 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.385e-05/0.4528, allocations: 39.42 kB / 1.387 GB, free: 5.652 MB / 1.076 GB Notification: Performance of SimCode: time 4.01e-07/0.4528, allocations: 0 / 1.387 GB, free: 5.652 MB / 1.076 GB Notification: Performance of Templates: time 0.0107/0.4635, allocations: 5.977 MB / 1.393 GB, free: 15.72 MB / 1.092 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter.makefile [Timeout 300] (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=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter.pipe 2>&1) [Timeout 800] 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) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 12.966366387001472]