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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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.006458/0.006458, allocations: 100.8 kB / 15.87 MB, free: 5.867 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.001546/0.001546, allocations: 195.8 kB / 16.79 MB, free: 5.809 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.378/1.378, allocations: 222.9 MB / 240.5 MB, free: 4.559 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.712/2.712, allocations: 461.8 MB / 0.7348 GB, free: 14.15 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001266/0.001266, allocations: 71.3 kB / 0.899 GB, free: 37.07 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3309/0.3322, allocations: 157.4 MB / 1.053 GB, free: 8.262 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter): time 0.01855/0.3508, allocations: 15 MB / 1.067 GB, free: 9.195 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.005977/0.3568, allocations: 3.935 MB / 1.071 GB, free: 5.254 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007184/0.3576, allocations: 15.94 kB / 1.071 GB, free: 5.238 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0007067/0.3583, allocations: 151.1 kB / 1.071 GB, free: 5.09 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.002233/0.3606, allocations: 0.6106 MB / 1.072 GB, free: 4.477 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.001585/0.3622, allocations: 429.5 kB / 1.072 GB, free: 4.062 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.002012/0.3642, allocations: 1.368 MB / 1.074 GB, free: 2.691 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005429/0.3648, allocations: 241 kB / 1.074 GB, free: 2.453 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008643/0.3657, allocations: 370.4 kB / 1.074 GB, free: 2.09 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005039/0.3662, allocations: 274.7 kB / 1.075 GB, free: 1.82 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 8.103e-05/0.3663, allocations: 12 kB / 1.075 GB, free: 1.809 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001432/0.3677, allocations: 0.6978 MB / 1.075 GB, free: 1.109 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001303/0.3679, allocations: 71.62 kB / 1.075 GB, free: 1.039 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0002982/0.3682, allocations: 179 kB / 1.076 GB, free: 0.8633 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0009668/0.3691, allocations: 0.4951 MB / 1.076 GB, free: 376 kB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.3692, allocations: 0 / 1.076 GB, free: 376 kB / 0.8262 GB Notification: Performance of FrontEnd: time 1.203e-06/0.3692, allocations: 0 / 1.076 GB, free: 376 kB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.238e-05/0.3692, allocations: 0 / 1.076 GB, free: 376 kB / 0.8262 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.001603/0.3708, allocations: 0.7435 MB / 1.077 GB, free: 15.57 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 6.326e-05/0.3709, allocations: 11.97 kB / 1.077 GB, free: 15.56 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001653/0.371, allocations: 44.47 kB / 1.077 GB, free: 15.52 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001091/0.3721, allocations: 0.4939 MB / 1.077 GB, free: 14.98 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.659e-05/0.3722, allocations: 12.33 kB / 1.077 GB, free: 14.97 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.164e-05/0.3722, allocations: 20 kB / 1.077 GB, free: 14.95 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004337/0.3727, allocations: 180.1 kB / 1.077 GB, free: 14.77 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.848e-05/0.3727, allocations: 3.984 kB / 1.077 GB, free: 14.77 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.348e-05/0.3727, allocations: 8 kB / 1.077 GB, free: 14.76 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.524e-06/0.3727, allocations: 4 kB / 1.077 GB, free: 14.76 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003395/0.3731, allocations: 139.8 kB / 1.078 GB, free: 14.62 MB / 0.8419 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.001272/0.3744, allocations: 0.8605 MB / 1.078 GB, free: 13.66 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002592/0.3746, allocations: 118.6 kB / 1.079 GB, free: 13.54 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001553/0.3748, allocations: 72.81 kB / 1.079 GB, free: 13.46 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003837/0.3752, allocations: 336.4 kB / 1.079 GB, free: 13.06 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.121e-05/0.3752, allocations: 46.42 kB / 1.079 GB, free: 13 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=12): time 2.504e-06/0.3752, allocations: 0 / 1.079 GB, free: 13 MB / 0.8419 GB Notification: Performance of matching and sorting (n=12): time 0.0005919/0.3758, allocations: 213.5 kB / 1.079 GB, free: 12.79 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.299e-05/0.3759, allocations: 55.41 kB / 1.079 GB, free: 12.72 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003516/0.3763, allocations: 345.7 kB / 1.08 GB, free: 12.38 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 2.737e-05/0.3763, allocations: 33.7 kB / 1.08 GB, free: 12.34 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001409/0.3764, allocations: 196.2 kB / 1.08 GB, free: 12.14 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 4.373e-05/0.3765, allocations: 43.44 kB / 1.08 GB, free: 12.1 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.212e-05/0.3766, allocations: 29.72 kB / 1.08 GB, free: 12.06 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001501/0.3767, allocations: 346.8 kB / 1.08 GB, free: 11.71 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001409/0.3769, allocations: 52.75 kB / 1.08 GB, free: 11.66 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001743/0.377, allocations: 100.2 kB / 1.08 GB, free: 11.55 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000259/0.3773, allocations: 109.7 kB / 1.08 GB, free: 11.43 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.365e-06/0.3773, allocations: 0 / 1.08 GB, free: 11.43 MB / 0.8419 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0003896/0.3777, allocations: 181.1 kB / 1.081 GB, free: 11.25 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.777e-05/0.3777, allocations: 7.938 kB / 1.081 GB, free: 11.24 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.913e-06/0.3778, allocations: 4 kB / 1.081 GB, free: 11.24 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.73e-05/0.3778, allocations: 4 kB / 1.081 GB, free: 11.23 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001464/0.3779, allocations: 23.92 kB / 1.081 GB, free: 11.21 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.053e-05/0.3779, allocations: 4 kB / 1.081 GB, free: 11.21 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002445/0.3782, allocations: 27.91 kB / 1.081 GB, free: 11.18 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.597e-05/0.3782, allocations: 4 kB / 1.081 GB, free: 11.18 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002222/0.3785, allocations: 160.2 kB / 1.081 GB, free: 11.02 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001503/0.3786, allocations: 84.19 kB / 1.081 GB, free: 10.92 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0002436/0.3789, allocations: 117.6 kB / 1.081 GB, free: 10.8 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.122e-06/0.3789, allocations: 0 / 1.081 GB, free: 10.8 MB / 0.8419 GB Notification: Performance of matching and sorting (n=12) (initialization_lambda0): time 0.0003456/0.3792, allocations: 173.2 kB / 1.081 GB, free: 10.62 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.063e-05/0.3793, allocations: 8 kB / 1.081 GB, free: 10.61 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.493e-06/0.3793, allocations: 0 / 1.081 GB, free: 10.61 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.13e-06/0.3793, allocations: 3.938 kB / 1.081 GB, free: 10.61 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00011/0.3794, allocations: 23.98 kB / 1.081 GB, free: 10.59 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.886e-06/0.3794, allocations: 3.938 kB / 1.081 GB, free: 10.58 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002246/0.3796, allocations: 31.88 kB / 1.081 GB, free: 10.55 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.549e-05/0.3797, allocations: 4 kB / 1.081 GB, free: 10.55 MB / 0.8419 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.0001148/0.3798, allocations: 188.2 kB / 1.081 GB, free: 10.36 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.653e-05/0.3798, allocations: 35.56 kB / 1.081 GB, free: 10.32 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005114/0.3804, allocations: 236.9 kB / 1.082 GB, free: 10.08 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.121e-05/0.3804, allocations: 3.984 kB / 1.082 GB, free: 10.07 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.204e-06/0.3804, allocations: 8.062 kB / 1.082 GB, free: 10.07 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.491e-06/0.3804, allocations: 4 kB / 1.082 GB, free: 10.06 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009502/0.3814, allocations: 0.6178 MB / 1.082 GB, free: 9.379 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.669e-06/0.3814, allocations: 96 / 1.082 GB, free: 9.379 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001105/0.3815, allocations: 31.92 kB / 1.082 GB, free: 9.348 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.236e-06/0.3815, allocations: 0 / 1.082 GB, free: 9.348 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.562e-05/0.3815, allocations: 8 kB / 1.082 GB, free: 9.34 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.335e-06/0.3815, allocations: 0 / 1.082 GB, free: 9.34 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.426e-06/0.3815, allocations: 4 kB / 1.082 GB, free: 9.336 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004434/0.382, allocations: 322.9 kB / 1.083 GB, free: 8.996 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001351/0.3821, allocations: 128.6 kB / 1.083 GB, free: 8.852 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.115e-05/0.3822, allocations: 4.094 kB / 1.083 GB, free: 8.848 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002353/0.3824, allocations: 23.91 kB / 1.083 GB, free: 8.824 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.158e-05/0.3825, allocations: 15.98 kB / 1.083 GB, free: 8.809 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.197e-05/0.3825, allocations: 8 kB / 1.083 GB, free: 8.801 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0002524/0.3828, allocations: 243.2 kB / 1.083 GB, free: 8.57 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3828, allocations: 0 / 1.083 GB, free: 8.57 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0006442/0.3834, allocations: 191.5 kB / 1.083 GB, free: 8.383 MB / 0.8419 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.0006604/0.3841, allocations: 257.5 kB / 1.084 GB, free: 8.129 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0005621/0.3847, allocations: 187.8 kB / 1.084 GB, free: 7.945 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 3.526e-06/0.3847, allocations: 0 / 1.084 GB, free: 7.945 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001842/0.3849, allocations: 79.89 kB / 1.084 GB, free: 7.867 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008944/0.3858, allocations: 151.9 kB / 1.084 GB, free: 7.719 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001044/0.3868, allocations: 0.6981 MB / 1.085 GB, free: 6.977 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003961/0.3873, allocations: 0.7921 MB / 1.085 GB, free: 6.156 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.347e-05/0.3873, allocations: 39.42 kB / 1.085 GB, free: 6.117 MB / 0.8419 GB Notification: Performance of SimCode: time 6.61e-07/0.3874, allocations: 0 / 1.085 GB, free: 6.117 MB / 0.8419 GB Notification: Performance of Templates: time 0.01067/0.398, allocations: 5.753 MB / 1.091 GB, free: 432 kB / 0.8419 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