Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001591/0.001591, allocations: 100.8 kB / 19.74 MB, free: 2.07 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.001934/0.001934, allocations: 212.2 kB / 23.03 MB, free: 4.863 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.432/1.432, allocations: 230.6 MB / 256.8 MB, free: 7.77 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.107/3.107, allocations: 0.49 GB / 0.7959 GB, free: 35.62 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/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_12_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_12_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.002028/0.002028, allocations: 63 kB / 1.155 GB, free: 25.24 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3567/0.3587, allocations: 176.1 MB / 1.327 GB, free: 0.9766 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter): time 0.01664/0.3753, allocations: 14.1 MB / 1.341 GB, free: 2.82 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.005896/0.3812, allocations: 3.624 MB / 1.344 GB, free: 15.19 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005028/0.3817, allocations: 27.75 kB / 1.344 GB, free: 15.16 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.0006195/0.3824, allocations: 190.7 kB / 1.345 GB, free: 14.97 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 0.001803/0.3842, allocations: 0.7092 MB / 1.345 GB, free: 14.26 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.001295/0.3855, allocations: 492 kB / 1.346 GB, free: 13.79 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.001564/0.387, allocations: 1.123 MB / 1.347 GB, free: 12.66 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003989/0.3874, allocations: 245.7 kB / 1.347 GB, free: 12.41 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001002/0.3884, allocations: 0.5722 MB / 1.348 GB, free: 11.84 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003032/0.3887, allocations: 222.9 kB / 1.348 GB, free: 11.62 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 4.255e-05/0.3888, allocations: 16 kB / 1.348 GB, free: 11.61 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007961/0.3896, allocations: 439.1 kB / 1.348 GB, free: 11.18 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 9.415e-05/0.3897, allocations: 63.64 kB / 1.348 GB, free: 11.11 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.0001634/0.3898, allocations: 143.2 kB / 1.349 GB, free: 10.97 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0007953/0.3906, allocations: 0.5603 MB / 1.349 GB, free: 10.41 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 4.018e-06/0.3906, allocations: 4 kB / 1.349 GB, free: 10.41 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.182e-06/0.3906, allocations: 4 kB / 1.349 GB, free: 10.4 MB / 1.045 GB Notification: Performance of Transformations before backend: time 1.132e-05/0.3906, allocations: 0 / 1.349 GB, free: 10.4 MB / 1.045 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.001035/0.3917, allocations: 0.6441 MB / 1.35 GB, free: 9.727 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 3.659e-05/0.3917, allocations: 8.031 kB / 1.35 GB, free: 9.719 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.565e-05/0.3918, allocations: 48.64 kB / 1.35 GB, free: 9.672 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008241/0.3926, allocations: 384.5 kB / 1.35 GB, free: 9.27 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.316e-05/0.3926, allocations: 16.31 kB / 1.35 GB, free: 9.254 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.422e-05/0.3927, allocations: 19.94 kB / 1.35 GB, free: 9.234 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003887/0.3931, allocations: 204.9 kB / 1.35 GB, free: 9.023 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.708e-06/0.3931, allocations: 4 kB / 1.35 GB, free: 9.02 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.117e-05/0.3931, allocations: 8 kB / 1.35 GB, free: 9.012 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.124e-06/0.3931, allocations: 4 kB / 1.35 GB, free: 9.008 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003301/0.3934, allocations: 135.8 kB / 1.351 GB, free: 8.875 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009653/0.3944, allocations: 0.5426 MB / 1.351 GB, free: 8.301 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002761/0.3947, allocations: 110.6 kB / 1.351 GB, free: 8.184 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001594/0.3948, allocations: 72.81 kB / 1.351 GB, free: 8.109 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001501/0.395, allocations: 31.98 kB / 1.351 GB, free: 8.078 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.207e-05/0.395, allocations: 30.56 kB / 1.351 GB, free: 8.039 MB / 1.045 GB Notification: Performance of pre-optimization done (n=12): time 1.262e-06/0.395, allocations: 0 / 1.351 GB, free: 8.039 MB / 1.045 GB Notification: Performance of matching and sorting (n=12): time 0.0005857/0.3956, allocations: 237.4 kB / 1.352 GB, free: 7.801 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.472e-05/0.3956, allocations: 51.41 kB / 1.352 GB, free: 7.738 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003253/0.396, allocations: 321.7 kB / 1.352 GB, free: 7.414 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 2.333e-05/0.396, allocations: 25.7 kB / 1.352 GB, free: 7.383 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001456/0.3961, allocations: 196.5 kB / 1.352 GB, free: 7.188 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 4.686e-05/0.3962, allocations: 47.58 kB / 1.352 GB, free: 7.141 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.457e-05/0.3962, allocations: 29.7 kB / 1.352 GB, free: 7.105 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001581/0.3964, allocations: 346.8 kB / 1.352 GB, free: 6.758 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001419/0.3965, allocations: 60.81 kB / 1.353 GB, free: 6.695 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002516/0.3968, allocations: 234.5 kB / 1.353 GB, free: 6.414 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002711/0.3971, allocations: 113.6 kB / 1.353 GB, free: 6.297 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.3971, allocations: 0 / 1.353 GB, free: 6.297 MB / 1.045 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0003647/0.3974, allocations: 181.3 kB / 1.353 GB, free: 6.113 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.635e-05/0.3974, allocations: 12 kB / 1.353 GB, free: 6.102 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.078e-06/0.3975, allocations: 0 / 1.353 GB, free: 6.102 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.64e-05/0.3975, allocations: 3.938 kB / 1.353 GB, free: 6.098 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001453/0.3976, allocations: 23.98 kB / 1.353 GB, free: 6.074 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.933e-06/0.3976, allocations: 0 / 1.353 GB, free: 6.074 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001323/0.3978, allocations: 15.98 kB / 1.353 GB, free: 6.059 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.258e-05/0.3978, allocations: 4 kB / 1.353 GB, free: 6.055 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.00023/0.398, allocations: 156 kB / 1.353 GB, free: 5.898 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000243/0.3982, allocations: 246.5 kB / 1.354 GB, free: 5.605 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0002583/0.3985, allocations: 121.7 kB / 1.354 GB, free: 5.48 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 8.11e-07/0.3985, allocations: 0 / 1.354 GB, free: 5.48 MB / 1.045 GB Notification: Performance of matching and sorting (n=12) (initialization_lambda0): time 0.0003436/0.3989, allocations: 173.3 kB / 1.354 GB, free: 5.305 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 7.474e-06/0.3989, allocations: 4 kB / 1.354 GB, free: 5.301 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.996e-06/0.3989, allocations: 4 kB / 1.354 GB, free: 5.297 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.854e-06/0.3989, allocations: 0 / 1.354 GB, free: 5.297 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001395/0.399, allocations: 39.84 kB / 1.354 GB, free: 5.258 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.833e-06/0.399, allocations: 0 / 1.354 GB, free: 5.258 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001199/0.3991, allocations: 8 kB / 1.354 GB, free: 5.25 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.768e-05/0.3991, allocations: 11.98 kB / 1.354 GB, free: 5.238 MB / 1.045 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.0001139/0.3993, allocations: 192.2 kB / 1.354 GB, free: 5.043 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.239e-05/0.3993, allocations: 35.77 kB / 1.354 GB, free: 5.008 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000499/0.3998, allocations: 232.9 kB / 1.354 GB, free: 4.777 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.981e-06/0.3998, allocations: 0 / 1.354 GB, free: 4.777 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/0.3998, allocations: 4 kB / 1.354 GB, free: 4.773 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.496e-06/0.3998, allocations: 0 / 1.354 GB, free: 4.773 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008593/0.4007, allocations: 0.5511 MB / 1.355 GB, free: 4.176 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.486e-06/0.4007, allocations: 0 / 1.355 GB, free: 4.176 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001086/0.4008, allocations: 24.11 kB / 1.355 GB, free: 4.152 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.225e-06/0.4008, allocations: 0 / 1.355 GB, free: 4.152 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.687e-05/0.4008, allocations: 12 kB / 1.355 GB, free: 4.141 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.803e-06/0.4008, allocations: 4.094 kB / 1.355 GB, free: 4.137 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.296e-06/0.4008, allocations: 7.938 kB / 1.355 GB, free: 4.129 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004664/0.4013, allocations: 326.8 kB / 1.355 GB, free: 3.785 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 9.966e-05/0.4014, allocations: 47.69 kB / 1.355 GB, free: 3.738 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.394e-05/0.4014, allocations: 4 kB / 1.355 GB, free: 3.734 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000148/0.4016, allocations: 11.98 kB / 1.355 GB, free: 3.723 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.077e-05/0.4016, allocations: 7.984 kB / 1.355 GB, free: 3.715 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.686e-05/0.4016, allocations: 11.98 kB / 1.355 GB, free: 3.703 MB / 1.045 GB Notification: Performance of sorting global known variables: time 0.0002225/0.4019, allocations: 231.2 kB / 1.355 GB, free: 3.477 MB / 1.045 GB Notification: Performance of sort global known variables: time 7e-08/0.4019, allocations: 0 / 1.355 GB, free: 3.477 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0005096/0.4024, allocations: 151.7 kB / 1.356 GB, free: 3.328 MB / 1.045 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.0003319/0.4027, allocations: 183 kB / 1.356 GB, free: 3.141 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0005133/0.4032, allocations: 175.8 kB / 1.356 GB, free: 2.969 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 3.998e-06/0.4032, allocations: 8 kB / 1.356 GB, free: 2.961 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0001791/0.4034, allocations: 71.89 kB / 1.356 GB, free: 2.891 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00075/0.4042, allocations: 144.8 kB / 1.356 GB, free: 2.754 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009264/0.4051, allocations: 0.6057 MB / 1.357 GB, free: 2.105 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001878/0.4053, allocations: 197.7 kB / 1.357 GB, free: 1.891 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.886e-05/0.4053, allocations: 27.44 kB / 1.357 GB, free: 1.863 MB / 1.045 GB Notification: Performance of SimCode: time 3.71e-07/0.4053, allocations: 0 / 1.357 GB, free: 1.863 MB / 1.045 GB Notification: Performance of Templates: time 0.008596/0.4139, allocations: 5.458 MB / 1.362 GB, free: 12.46 MB / 1.061 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter.pipe ; mkfifo Buildings_12_Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter.pipe ; head -c 1048576 < Buildings_12_Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter.pipe >> ../files/Buildings_12_Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter.sim & ./Buildings_12_Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Fluid_FixedResistances_Examples_HydraulicDiameter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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.02358098491095]