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.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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.001194/0.001194, allocations: 108 kB / 15.6 MB, free: 132 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.001266/0.001266, allocations: 195.1 kB / 16.53 MB, free: 6.391 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.459/1.459, allocations: 222.9 MB / 240.2 MB, free: 4.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.857/2.857, allocations: 437 MB / 0.7104 GB, free: 5.125 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001533/0.001533, allocations: 59.91 kB / 0.8692 GB, free: 4.727 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9933/0.9948, allocations: 151.6 MB / 1.017 GB, free: 2.578 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter): time 0.01864/1.014, allocations: 15.05 MB / 1.032 GB, free: 3.465 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.006349/1.02, allocations: 3.888 MB / 1.036 GB, free: 15.57 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005967/1.021, allocations: 23.88 kB / 1.036 GB, free: 15.54 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.0006351/1.021, allocations: 182.7 kB / 1.036 GB, free: 15.36 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.00173/1.023, allocations: 0.6919 MB / 1.037 GB, free: 14.67 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.001386/1.024, allocations: 471.5 kB / 1.037 GB, free: 14.21 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.001517/1.026, allocations: 1.07 MB / 1.038 GB, free: 13.14 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004337/1.026, allocations: 285.6 kB / 1.038 GB, free: 12.85 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000677/1.027, allocations: 398.5 kB / 1.039 GB, free: 12.46 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003293/1.027, allocations: 266.8 kB / 1.039 GB, free: 12.2 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 4.793e-05/1.027, allocations: 23.94 kB / 1.039 GB, free: 12.18 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001313/1.029, allocations: 0.7173 MB / 1.04 GB, free: 11.46 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.0001145/1.029, allocations: 71.69 kB / 1.04 GB, free: 11.39 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0002021/1.029, allocations: 187 kB / 1.04 GB, free: 11.2 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0009966/1.03, allocations: 0.7128 MB / 1.041 GB, free: 10.49 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 5.55e-06/1.03, allocations: 0 / 1.041 GB, free: 10.49 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.552e-06/1.03, allocations: 0 / 1.041 GB, free: 10.49 MB / 0.795 GB Notification: Performance of Transformations before backend: time 7.544e-06/1.03, allocations: 0 / 1.041 GB, free: 10.49 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.00117/1.031, allocations: 0.7475 MB / 1.041 GB, free: 9.691 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 4.225e-05/1.031, allocations: 11.98 kB / 1.041 GB, free: 9.68 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001014/1.031, allocations: 48.38 kB / 1.041 GB, free: 9.633 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009074/1.032, allocations: 0.4978 MB / 1.042 GB, free: 9.094 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.956e-05/1.032, allocations: 12.33 kB / 1.042 GB, free: 9.082 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.368e-05/1.032, allocations: 24 kB / 1.042 GB, free: 9.059 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003905/1.033, allocations: 172.2 kB / 1.042 GB, free: 8.887 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.359e-05/1.033, allocations: 3.984 kB / 1.042 GB, free: 8.883 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.486e-05/1.033, allocations: 8 kB / 1.042 GB, free: 8.875 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.506e-06/1.033, allocations: 4 kB / 1.042 GB, free: 8.871 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000354/1.033, allocations: 135.8 kB / 1.042 GB, free: 8.738 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.001323/1.035, allocations: 0.8684 MB / 1.043 GB, free: 7.77 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002894/1.035, allocations: 114.6 kB / 1.043 GB, free: 7.648 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001646/1.035, allocations: 76.75 kB / 1.043 GB, free: 7.57 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004723/1.036, allocations: 340.4 kB / 1.044 GB, free: 7.164 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.763e-05/1.036, allocations: 34.56 kB / 1.044 GB, free: 7.121 MB / 0.795 GB Notification: Performance of pre-optimization done (n=12): time 1.473e-06/1.036, allocations: 0 / 1.044 GB, free: 7.121 MB / 0.795 GB Notification: Performance of matching and sorting (n=12): time 0.0006125/1.036, allocations: 221 kB / 1.044 GB, free: 6.898 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.323e-05/1.036, allocations: 51.41 kB / 1.044 GB, free: 6.836 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003871/1.037, allocations: 345.7 kB / 1.044 GB, free: 6.492 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 2.5e-05/1.037, allocations: 33.7 kB / 1.044 GB, free: 6.453 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001642/1.037, allocations: 196.3 kB / 1.045 GB, free: 6.258 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 4.752e-05/1.037, allocations: 39.39 kB / 1.045 GB, free: 6.219 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.293e-05/1.037, allocations: 29.72 kB / 1.045 GB, free: 6.184 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001607/1.037, allocations: 342.8 kB / 1.045 GB, free: 5.84 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001496/1.037, allocations: 56.77 kB / 1.045 GB, free: 5.781 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001706/1.038, allocations: 100.2 kB / 1.045 GB, free: 5.668 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002627/1.038, allocations: 113.6 kB / 1.045 GB, free: 5.551 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/1.038, allocations: 0 / 1.045 GB, free: 5.551 MB / 0.795 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0003577/1.038, allocations: 181.2 kB / 1.045 GB, free: 5.367 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 2.763e-05/1.038, allocations: 15.92 kB / 1.045 GB, free: 5.352 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.923e-06/1.038, allocations: 4 kB / 1.045 GB, free: 5.348 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.578e-05/1.038, allocations: 0 / 1.045 GB, free: 5.348 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001485/1.038, allocations: 23.98 kB / 1.045 GB, free: 5.324 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.492e-06/1.038, allocations: 0 / 1.045 GB, free: 5.324 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001747/1.039, allocations: 19.89 kB / 1.045 GB, free: 5.305 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.619e-05/1.039, allocations: 7.984 kB / 1.045 GB, free: 5.297 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002164/1.039, allocations: 157.6 kB / 1.046 GB, free: 5.141 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001482/1.039, allocations: 84.25 kB / 1.046 GB, free: 5.043 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.000235/1.039, allocations: 113.6 kB / 1.046 GB, free: 4.926 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 8.51e-07/1.039, allocations: 0 / 1.046 GB, free: 4.926 MB / 0.795 GB Notification: Performance of matching and sorting (n=12) (initialization_lambda0): time 0.00042/1.04, allocations: 173.2 kB / 1.046 GB, free: 4.75 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 6.803e-06/1.04, allocations: 8 kB / 1.046 GB, free: 4.742 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.263e-06/1.04, allocations: 0 / 1.046 GB, free: 4.742 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.486e-06/1.04, allocations: 3.938 kB / 1.046 GB, free: 4.738 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001065/1.04, allocations: 35.91 kB / 1.046 GB, free: 4.703 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.633e-06/1.04, allocations: 0 / 1.046 GB, free: 4.703 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001648/1.04, allocations: 19.89 kB / 1.046 GB, free: 4.684 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.354e-05/1.04, allocations: 8 kB / 1.046 GB, free: 4.676 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.0001252/1.04, allocations: 188.2 kB / 1.046 GB, free: 4.484 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.195e-05/1.04, allocations: 39.56 kB / 1.046 GB, free: 4.445 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004849/1.041, allocations: 227.3 kB / 1.046 GB, free: 4.223 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.773e-06/1.041, allocations: 3.938 kB / 1.046 GB, free: 4.219 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.404e-06/1.041, allocations: 7.984 kB / 1.046 GB, free: 4.211 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/1.041, allocations: 0 / 1.046 GB, free: 4.211 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009435/1.042, allocations: 0.6295 MB / 1.047 GB, free: 3.516 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.316e-06/1.042, allocations: 0 / 1.047 GB, free: 3.516 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001111/1.042, allocations: 27.92 kB / 1.047 GB, free: 3.488 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.094e-06/1.042, allocations: 0 / 1.047 GB, free: 3.488 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.412e-05/1.042, allocations: 4 kB / 1.047 GB, free: 3.484 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.824e-06/1.042, allocations: 0 / 1.047 GB, free: 3.484 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.085e-06/1.042, allocations: 8.219 kB / 1.047 GB, free: 3.477 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000433/1.042, allocations: 317.4 kB / 1.047 GB, free: 3.141 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001295/1.042, allocations: 132.6 kB / 1.048 GB, free: 2.992 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.375e-05/1.043, allocations: 4 kB / 1.048 GB, free: 2.988 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001954/1.043, allocations: 19.89 kB / 1.048 GB, free: 2.969 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.648e-05/1.043, allocations: 7.984 kB / 1.048 GB, free: 2.961 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.399e-05/1.043, allocations: 12 kB / 1.048 GB, free: 2.949 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.000264/1.043, allocations: 247.2 kB / 1.048 GB, free: 2.715 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.5e-07/1.043, allocations: 0 / 1.048 GB, free: 2.715 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0006632/1.044, allocations: 191.6 kB / 1.048 GB, free: 2.527 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.0006802/1.044, allocations: 251.3 kB / 1.048 GB, free: 2.277 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0006925/1.045, allocations: 191.8 kB / 1.048 GB, free: 2.09 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 3.496e-06/1.045, allocations: 7.938 kB / 1.048 GB, free: 2.082 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.000172/1.045, allocations: 75.89 kB / 1.048 GB, free: 2.008 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008288/1.046, allocations: 156.5 kB / 1.049 GB, free: 1.859 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009141/1.047, allocations: 0.5632 MB / 1.049 GB, free: 1.262 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003829/1.047, allocations: 0.7918 MB / 1.05 GB, free: 456 kB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0002385/1.048, allocations: 74.91 kB / 1.05 GB, free: 384 kB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.786e-05/1.048, allocations: 31.42 kB / 1.05 GB, free: 352 kB / 0.795 GB Notification: Performance of SimCode: time 4.21e-07/1.048, allocations: 0 / 1.05 GB, free: 352 kB / 0.795 GB Notification: Performance of Templates: time 0.01322/1.061, allocations: 6.58 MB / 1.056 GB, free: 9.875 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches