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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.001461/0.001461, allocations: 104.1 kB / 16.27 MB, free: 5.98 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.001575/0.001575, allocations: 189.8 kB / 17.19 MB, free: 5.605 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.37/1.37, allocations: 222.9 MB / 240.9 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.69/2.69, allocations: 482.4 MB / 0.7553 GB, free: 6.996 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001933/0.001933, allocations: 71.45 kB / 0.9245 GB, free: 15.98 MB / 0.7012 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7857/0.7876, allocations: 162.2 MB / 1.083 GB, free: 1.633 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter): time 0.01698/0.8046, allocations: 15.05 MB / 1.098 GB, free: 6.848 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.006237/0.8109, allocations: 3.89 MB / 1.101 GB, free: 4.109 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006046/0.8116, allocations: 18.59 kB / 1.101 GB, free: 4.105 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0005786/0.8122, allocations: 191.8 kB / 1.102 GB, free: 3.984 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.001714/0.8139, allocations: 0.6815 MB / 1.102 GB, free: 3.605 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.001435/0.8154, allocations: 466 kB / 1.103 GB, free: 3.395 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.001706/0.8171, allocations: 1.079 MB / 1.104 GB, free: 2.914 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004873/0.8176, allocations: 285.7 kB / 1.104 GB, free: 2.785 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0009072/0.8185, allocations: 453.3 kB / 1.104 GB, free: 2.586 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003331/0.8189, allocations: 252.8 kB / 1.105 GB, free: 2.477 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 4.903e-05/0.8189, allocations: 25.34 kB / 1.105 GB, free: 2.473 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001436/0.8204, allocations: 0.7164 MB / 1.105 GB, free: 2.238 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0001071/0.8205, allocations: 73.31 kB / 1.106 GB, free: 2.195 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0002096/0.8207, allocations: 185.9 kB / 1.106 GB, free: 2.09 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.001167/0.8219, allocations: 0.7146 MB / 1.106 GB, free: 1.832 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.8219, allocations: 0 / 1.106 GB, free: 1.832 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.041e-06/0.8219, allocations: 0 / 1.106 GB, free: 1.832 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 6.963e-06/0.8219, allocations: 0 / 1.106 GB, free: 1.832 MB / 0.8419 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.001194/0.8231, allocations: 0.748 MB / 1.107 GB, free: 1.223 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.574e-05/0.8231, allocations: 9.844 kB / 1.107 GB, free: 1.223 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.731e-05/0.8233, allocations: 42.17 kB / 1.107 GB, free: 1.203 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000895/0.8242, allocations: 0.4934 MB / 1.108 GB, free: 0.8555 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.686e-05/0.8242, allocations: 16.17 kB / 1.108 GB, free: 0.8477 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.155e-05/0.8242, allocations: 17.19 kB / 1.108 GB, free: 0.8438 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004127/0.8246, allocations: 178.8 kB / 1.108 GB, free: 0.7656 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.076e-05/0.8247, allocations: 5.031 kB / 1.108 GB, free: 0.7617 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.085e-05/0.8247, allocations: 5.094 kB / 1.108 GB, free: 0.7578 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.894e-06/0.8247, allocations: 4.625 kB / 1.108 GB, free: 0.7578 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003448/0.8251, allocations: 142.5 kB / 1.108 GB, free: 0.7148 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001196/0.8263, allocations: 0.8672 MB / 1.109 GB, free: 28 kB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002782/0.8266, allocations: 121.8 kB / 1.109 GB, free: 15.97 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000164/0.8267, allocations: 73.33 kB / 1.109 GB, free: 15.95 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003654/0.8271, allocations: 343.1 kB / 1.109 GB, free: 15.56 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.108e-05/0.8271, allocations: 32.45 kB / 1.109 GB, free: 15.52 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=12): time 1.483e-06/0.8272, allocations: 3.938 kB / 1.109 GB, free: 15.52 MB / 0.8575 GB Notification: Performance of matching and sorting (n=12): time 0.0005866/0.8277, allocations: 217.6 kB / 1.11 GB, free: 15.43 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.235e-05/0.8278, allocations: 53.44 kB / 1.11 GB, free: 15.36 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003974/0.8282, allocations: 353.1 kB / 1.11 GB, free: 15.18 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.608e-05/0.8282, allocations: 26.89 kB / 1.11 GB, free: 15.15 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001489/0.8284, allocations: 192.4 kB / 1.11 GB, free: 14.99 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 4.832e-05/0.8285, allocations: 43.7 kB / 1.11 GB, free: 14.95 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.487e-05/0.8285, allocations: 37.16 kB / 1.11 GB, free: 14.93 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001594/0.8287, allocations: 345.9 kB / 1.111 GB, free: 14.6 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001497/0.8288, allocations: 54.28 kB / 1.111 GB, free: 14.57 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001819/0.829, allocations: 87.94 kB / 1.111 GB, free: 14.52 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002873/0.8293, allocations: 116.4 kB / 1.111 GB, free: 14.47 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.013e-06/0.8293, allocations: 0 / 1.111 GB, free: 14.47 MB / 0.8575 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0003654/0.8297, allocations: 173.9 kB / 1.111 GB, free: 14.39 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.636e-05/0.8297, allocations: 10.23 kB / 1.111 GB, free: 14.39 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.35e-06/0.8297, allocations: 1.375 kB / 1.111 GB, free: 14.39 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.295e-05/0.8298, allocations: 0 / 1.111 GB, free: 14.39 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001521/0.8299, allocations: 33.95 kB / 1.111 GB, free: 14.38 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.544e-06/0.8299, allocations: 7.922 kB / 1.111 GB, free: 14.38 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001843/0.8301, allocations: 15.34 kB / 1.111 GB, free: 14.38 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.2e-05/0.8302, allocations: 4.781 kB / 1.111 GB, free: 14.38 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002294/0.8304, allocations: 159.2 kB / 1.111 GB, free: 14.27 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001599/0.8306, allocations: 85.81 kB / 1.111 GB, free: 14.21 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0002514/0.8308, allocations: 113.9 kB / 1.111 GB, free: 14.16 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 8.82e-07/0.8308, allocations: 0 / 1.111 GB, free: 14.16 MB / 0.8575 GB Notification: Performance of matching and sorting (n=12) (initialization_lambda0): time 0.0003403/0.8312, allocations: 175.8 kB / 1.112 GB, free: 14.08 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.021e-05/0.8312, allocations: 6.156 kB / 1.112 GB, free: 14.08 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.403e-06/0.8312, allocations: 3.938 kB / 1.112 GB, free: 14.08 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.268e-06/0.8312, allocations: 5.312 kB / 1.112 GB, free: 14.07 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001046/0.8313, allocations: 24.08 kB / 1.112 GB, free: 14.07 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.468e-06/0.8313, allocations: 3.938 kB / 1.112 GB, free: 14.07 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001719/0.8315, allocations: 18.78 kB / 1.112 GB, free: 14.07 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.281e-05/0.8315, allocations: 8.922 kB / 1.112 GB, free: 14.06 MB / 0.8575 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.0001228/0.8317, allocations: 188.9 kB / 1.112 GB, free: 13.88 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.55e-05/0.8317, allocations: 40.62 kB / 1.112 GB, free: 13.85 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004899/0.8322, allocations: 218.3 kB / 1.112 GB, free: 13.76 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.123e-05/0.8323, allocations: 5.812 kB / 1.112 GB, free: 13.75 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.192e-06/0.8323, allocations: 6.125 kB / 1.112 GB, free: 13.75 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.191e-06/0.8323, allocations: 4.656 kB / 1.112 GB, free: 13.75 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009421/0.8332, allocations: 0.6336 MB / 1.113 GB, free: 13.3 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.93e-06/0.8332, allocations: 2.109 kB / 1.113 GB, free: 13.3 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001036/0.8333, allocations: 27.23 kB / 1.113 GB, free: 13.29 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.847e-06/0.8334, allocations: 3.359 kB / 1.113 GB, free: 13.29 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.348e-05/0.8334, allocations: 10.41 kB / 1.113 GB, free: 13.29 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.955e-06/0.8334, allocations: 1.906 kB / 1.113 GB, free: 13.29 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.334e-06/0.8334, allocations: 5.25 kB / 1.113 GB, free: 13.28 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000458/0.8339, allocations: 316.3 kB / 1.113 GB, free: 13.06 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000131/0.834, allocations: 130.8 kB / 1.113 GB, free: 12.94 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.229e-05/0.834, allocations: 3.266 kB / 1.113 GB, free: 12.94 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001955/0.8342, allocations: 12.62 kB / 1.113 GB, free: 12.94 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.173e-05/0.8343, allocations: 13.58 kB / 1.113 GB, free: 12.93 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.604e-05/0.8343, allocations: 4.797 kB / 1.113 GB, free: 12.93 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0002682/0.8346, allocations: 250.5 kB / 1.113 GB, free: 12.8 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.5e-07/0.8346, allocations: 4 kB / 1.113 GB, free: 12.8 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.000662/0.8353, allocations: 196.4 kB / 1.114 GB, free: 12.75 MB / 0.8575 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.000528/0.8358, allocations: 245.5 kB / 1.114 GB, free: 12.61 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.00053/0.8364, allocations: 195.8 kB / 1.114 GB, free: 12.56 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.8364, allocations: 1.219 kB / 1.114 GB, free: 12.56 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001729/0.8365, allocations: 76.34 kB / 1.114 GB, free: 12.54 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008152/0.8374, allocations: 156.2 kB / 1.114 GB, free: 12.49 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009183/0.8383, allocations: 0.5841 MB / 1.115 GB, free: 12.11 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004096/0.8387, allocations: 0.7952 MB / 1.116 GB, free: 11.4 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.347e-05/0.8388, allocations: 38.05 kB / 1.116 GB, free: 11.38 MB / 0.8575 GB Notification: Performance of SimCode: time 3.2e-07/0.8388, allocations: 0 / 1.116 GB, free: 11.38 MB / 0.8575 GB Notification: Performance of Templates: time 0.009681/0.8485, allocations: 5.754 MB / 1.121 GB, free: 10.31 MB / 0.8575 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=400 -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