Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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_10_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_10_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.001058/0.001058, allocations: 98.88 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001498/0.001498, allocations: 185.5 kB / 16.92 MB, free: 6.684 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.403/1.403, allocations: 223.3 MB / 241 MB, free: 5.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.635/2.635, allocations: 437.8 MB / 0.7128 GB, free: 6.98 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003392/0.0003393, allocations: 8.281 kB / 0.8735 GB, free: 3.305 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6439/0.6443, allocations: 153.8 MB / 1.024 GB, free: 144 kB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter): time 0.01696/0.6613, allocations: 14.49 MB / 1.038 GB, free: 1.594 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.005921/0.6673, allocations: 3.873 MB / 1.042 GB, free: 13.71 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006587/0.668, allocations: 23.88 kB / 1.042 GB, free: 13.69 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.0006889/0.6687, allocations: 147.1 kB / 1.042 GB, free: 13.55 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.001993/0.6707, allocations: 0.6261 MB / 1.042 GB, free: 12.92 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.001424/0.6721, allocations: 414.7 kB / 1.043 GB, free: 12.52 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.001944/0.6741, allocations: 1.37 MB / 1.044 GB, free: 11.14 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005053/0.6746, allocations: 232.9 kB / 1.044 GB, free: 10.91 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008928/0.6755, allocations: 378.3 kB / 1.045 GB, free: 10.54 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004499/0.676, allocations: 262.7 kB / 1.045 GB, free: 10.29 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 5.695e-05/0.6761, allocations: 12 kB / 1.045 GB, free: 10.27 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001291/0.6774, allocations: 0.6861 MB / 1.046 GB, free: 9.586 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.0001383/0.6775, allocations: 67.67 kB / 1.046 GB, free: 9.52 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0002696/0.6778, allocations: 200.7 kB / 1.046 GB, free: 9.316 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0009068/0.6787, allocations: 0.4949 MB / 1.046 GB, free: 8.82 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.6787, allocations: 0 / 1.046 GB, free: 8.82 MB / 0.795 GB Notification: Performance of FrontEnd: time 2.384e-06/0.6787, allocations: 4 kB / 1.046 GB, free: 8.816 MB / 0.795 GB Notification: Performance of Transformations before backend: time 1.154e-05/0.6787, allocations: 0 / 1.046 GB, free: 8.816 MB / 0.795 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.001229/0.68, allocations: 0.6775 MB / 1.047 GB, free: 8.086 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 4.247e-05/0.68, allocations: 11.97 kB / 1.047 GB, free: 8.074 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001174/0.6802, allocations: 40.47 kB / 1.047 GB, free: 8.035 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009654/0.6811, allocations: 0.4978 MB / 1.048 GB, free: 7.496 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.153e-05/0.6812, allocations: 12.33 kB / 1.048 GB, free: 7.484 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.251e-05/0.6812, allocations: 20 kB / 1.048 GB, free: 7.465 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004204/0.6816, allocations: 184.2 kB / 1.048 GB, free: 7.281 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.957e-06/0.6817, allocations: 0 / 1.048 GB, free: 7.281 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.173e-05/0.6817, allocations: 8 kB / 1.048 GB, free: 7.273 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.404e-06/0.6817, allocations: 7.938 kB / 1.048 GB, free: 7.266 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003566/0.6821, allocations: 152.1 kB / 1.048 GB, free: 7.117 MB / 0.795 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.001249/0.6833, allocations: 0.8645 MB / 1.049 GB, free: 6.152 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002798/0.6836, allocations: 130.6 kB / 1.049 GB, free: 6.016 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001721/0.6838, allocations: 80.81 kB / 1.049 GB, free: 5.934 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003328/0.6841, allocations: 332.4 kB / 1.049 GB, free: 5.535 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.984e-05/0.6842, allocations: 34.56 kB / 1.049 GB, free: 5.492 MB / 0.795 GB Notification: Performance of pre-optimization done (n=12): time 1.734e-06/0.6842, allocations: 0 / 1.049 GB, free: 5.492 MB / 0.795 GB Notification: Performance of matching and sorting (n=12): time 0.0006204/0.6848, allocations: 237 kB / 1.05 GB, free: 5.254 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.782e-05/0.6848, allocations: 55.41 kB / 1.05 GB, free: 5.188 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003609/0.6852, allocations: 345.7 kB / 1.05 GB, free: 4.844 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 3.152e-05/0.6853, allocations: 37.7 kB / 1.05 GB, free: 4.801 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001609/0.6854, allocations: 196.2 kB / 1.05 GB, free: 4.605 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 4.674e-05/0.6855, allocations: 43.39 kB / 1.05 GB, free: 4.562 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.812e-05/0.6855, allocations: 13.72 kB / 1.05 GB, free: 4.543 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001347/0.6857, allocations: 342.8 kB / 1.051 GB, free: 4.199 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001441/0.6858, allocations: 51.97 kB / 1.051 GB, free: 4.148 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001757/0.686, allocations: 92.25 kB / 1.051 GB, free: 4.043 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002872/0.6863, allocations: 133.6 kB / 1.051 GB, free: 3.906 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.365e-06/0.6863, allocations: 0 / 1.051 GB, free: 3.906 MB / 0.795 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0004141/0.6867, allocations: 185.2 kB / 1.051 GB, free: 3.719 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 7.259e-05/0.6868, allocations: 101.8 kB / 1.051 GB, free: 3.609 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.696e-06/0.6868, allocations: 4.062 kB / 1.051 GB, free: 3.605 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.788e-05/0.6868, allocations: 4.078 kB / 1.051 GB, free: 3.602 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001543/0.687, allocations: 35.92 kB / 1.051 GB, free: 3.566 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.482e-06/0.687, allocations: 3.938 kB / 1.051 GB, free: 3.562 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002434/0.6873, allocations: 31.88 kB / 1.051 GB, free: 3.531 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.74e-05/0.6873, allocations: 4 kB / 1.051 GB, free: 3.527 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 8.636e-06/0.6873, allocations: 4 kB / 1.051 GB, free: 3.523 MB / 0.795 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0003202/0.6876, allocations: 127.8 kB / 1.051 GB, free: 3.398 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.505e-06/0.6877, allocations: 4 kB / 1.051 GB, free: 3.395 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.615e-06/0.6877, allocations: 0 / 1.051 GB, free: 3.395 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001126/0.6878, allocations: 27.98 kB / 1.051 GB, free: 3.367 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.619e-06/0.6878, allocations: 3.938 kB / 1.051 GB, free: 3.363 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002286/0.688, allocations: 35.81 kB / 1.051 GB, free: 3.328 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.398e-05/0.6881, allocations: 8 kB / 1.051 GB, free: 3.32 MB / 0.795 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.0001752/0.6882, allocations: 221.1 kB / 1.052 GB, free: 3.094 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.043e-05/0.6883, allocations: 31.62 kB / 1.052 GB, free: 3.062 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005351/0.6888, allocations: 245.3 kB / 1.052 GB, free: 2.812 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.434e-05/0.6889, allocations: 7.938 kB / 1.052 GB, free: 2.805 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.559e-06/0.6889, allocations: 0 / 1.052 GB, free: 2.805 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.928e-06/0.6889, allocations: 0 / 1.052 GB, free: 2.805 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009632/0.6899, allocations: 0.6489 MB / 1.052 GB, free: 2.09 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.242e-06/0.6899, allocations: 4 kB / 1.052 GB, free: 2.086 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000111/0.69, allocations: 23.98 kB / 1.053 GB, free: 2.062 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.41e-06/0.69, allocations: 4 kB / 1.053 GB, free: 2.059 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.183e-05/0.69, allocations: 4 kB / 1.053 GB, free: 2.055 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.599e-06/0.69, allocations: 4 kB / 1.053 GB, free: 2.051 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.973e-06/0.69, allocations: 0 / 1.053 GB, free: 2.051 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004574/0.6905, allocations: 340 kB / 1.053 GB, free: 1.695 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000138/0.6906, allocations: 132.6 kB / 1.053 GB, free: 1.547 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.193e-05/0.6907, allocations: 3.938 kB / 1.053 GB, free: 1.543 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002424/0.6909, allocations: 27.97 kB / 1.053 GB, free: 1.516 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.497e-05/0.691, allocations: 7.984 kB / 1.053 GB, free: 1.508 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.867e-05/0.691, allocations: 12 kB / 1.053 GB, free: 1.496 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0002626/0.6913, allocations: 243.2 kB / 1.053 GB, free: 1.262 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.6e-07/0.6913, allocations: 4 kB / 1.053 GB, free: 1.258 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0006377/0.6919, allocations: 191.6 kB / 1.053 GB, free: 1.07 MB / 0.795 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.0006308/0.6926, allocations: 247.8 kB / 1.054 GB, free: 0.8242 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.000552/0.6931, allocations: 199.8 kB / 1.054 GB, free: 0.6289 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.995e-06/0.6932, allocations: 0 / 1.054 GB, free: 0.6289 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0001959/0.6934, allocations: 87.83 kB / 1.054 GB, free: 0.543 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00099/0.6944, allocations: 151.5 kB / 1.054 GB, free: 408 kB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001098/0.6955, allocations: 0.7223 MB / 1.055 GB, free: 15.63 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003743/0.6959, allocations: 0.7921 MB / 1.056 GB, free: 14.81 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.363e-05/0.696, allocations: 35.38 kB / 1.056 GB, free: 14.78 MB / 0.8106 GB Notification: Performance of SimCode: time 5.92e-07/0.696, allocations: 0 / 1.056 GB, free: 14.78 MB / 0.8106 GB Notification: Performance of Templates: time 0.01043/0.7064, allocations: 5.689 MB / 1.061 GB, free: 9.152 MB / 0.8106 GB make -j1 -f Buildings_10_Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter.makefile (rm -f Buildings_10_Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter.pipe ; mkfifo Buildings_10_Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter.pipe >> ../files/Buildings_10_Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter.sim & ./Buildings_10_Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_FixedResistances_Examples_HydraulicDiameter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches