Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Fluid.FixedResistances.Examples.HydraulicDiameter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.HydraulicDiameter") translateModel(BuildingSystems.Fluid.FixedResistances.Examples.HydraulicDiameter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.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.005795/0.005795, allocations: 104.7 kB / 15.74 MB, free: 6.484 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.00126/0.00126, allocations: 193.5 kB / 16.67 MB, free: 6.375 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.397/1.397, allocations: 222.9 MB / 240.4 MB, free: 4.305 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002086/0.002085, allocations: 282.4 kB / 290.8 MB, free: 1.914 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.977/0.977, allocations: 169.2 MB / 0.4983 GB, free: 13.82 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00187/0.00187, allocations: 99.84 kB / 0.6814 GB, free: 15.48 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1755/0.1774, allocations: 86.96 MB / 0.7664 GB, free: 8.434 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.FixedResistances.Examples.HydraulicDiameter): time 0.3625/0.54, allocations: 15.04 MB / 0.7811 GB, free: 7.402 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.005492/0.5455, allocations: 3.896 MB / 0.7849 GB, free: 5.488 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005708/0.5461, allocations: 22.16 kB / 0.7849 GB, free: 5.48 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0006059/0.5467, allocations: 185.4 kB / 0.7851 GB, free: 5.402 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.001814/0.5486, allocations: 0.7127 MB / 0.7858 GB, free: 5.023 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.001348/0.55, allocations: 477.7 kB / 0.7862 GB, free: 4.809 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.001401/0.5514, allocations: 1.074 MB / 0.7873 GB, free: 4.336 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004422/0.5519, allocations: 281.7 kB / 0.7875 GB, free: 4.223 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007381/0.5526, allocations: 411.9 kB / 0.7879 GB, free: 4.051 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003576/0.553, allocations: 273.9 kB / 0.7882 GB, free: 3.926 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 4.866e-05/0.553, allocations: 21.81 kB / 0.7882 GB, free: 3.926 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001366/0.5544, allocations: 0.7173 MB / 0.7889 GB, free: 3.691 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0001134/0.5545, allocations: 74.78 kB / 0.789 GB, free: 3.648 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0001786/0.5547, allocations: 184.4 kB / 0.7891 GB, free: 3.543 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.001117/0.5559, allocations: 0.7336 MB / 0.7899 GB, free: 3.277 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.5559, allocations: 3.688 kB / 0.7899 GB, free: 3.277 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.753e-06/0.5559, allocations: 0 / 0.7899 GB, free: 3.277 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 8.196e-06/0.5559, allocations: 0 / 0.7899 GB, free: 3.277 MB / 0.5606 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.0009719/0.5569, allocations: 0.7403 MB / 0.7906 GB, free: 2.672 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.701e-05/0.5569, allocations: 8.594 kB / 0.7906 GB, free: 2.672 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.003e-05/0.557, allocations: 43.69 kB / 0.7906 GB, free: 2.652 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009228/0.5579, allocations: 0.5161 MB / 0.7911 GB, free: 2.293 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.126e-05/0.558, allocations: 16.53 kB / 0.7912 GB, free: 2.285 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.131e-05/0.558, allocations: 19.81 kB / 0.7912 GB, free: 2.277 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003852/0.5584, allocations: 182.7 kB / 0.7914 GB, free: 2.199 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.186e-05/0.5584, allocations: 2.297 kB / 0.7914 GB, free: 2.199 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.986e-05/0.5584, allocations: 4 kB / 0.7914 GB, free: 2.195 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.766e-06/0.5585, allocations: 3.594 kB / 0.7914 GB, free: 2.195 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003245/0.5588, allocations: 146.8 kB / 0.7915 GB, free: 2.148 MB / 0.5606 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.001132/0.5599, allocations: 0.8483 MB / 0.7923 GB, free: 1.48 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002805/0.5602, allocations: 133.4 kB / 0.7925 GB, free: 1.414 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001559/0.5604, allocations: 69.19 kB / 0.7925 GB, free: 1.391 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002339/0.5606, allocations: 334.2 kB / 0.7928 GB, free: 1.012 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.226e-05/0.5607, allocations: 34 kB / 0.7929 GB, free: 0.9727 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=12): time 1.122e-06/0.5607, allocations: 0 / 0.7929 GB, free: 0.9727 MB / 0.5606 GB Notification: Performance of matching and sorting (n=12): time 0.0005582/0.5612, allocations: 225 kB / 0.7931 GB, free: 0.875 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.295e-05/0.5613, allocations: 57.91 kB / 0.7931 GB, free: 0.8086 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003362/0.5616, allocations: 347.8 kB / 0.7935 GB, free: 0.6289 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.91e-05/0.5616, allocations: 28.58 kB / 0.7935 GB, free: 0.5977 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001152/0.5618, allocations: 192.3 kB / 0.7937 GB, free: 448 kB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 3.664e-05/0.5618, allocations: 41.81 kB / 0.7937 GB, free: 412 kB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.763e-05/0.5619, allocations: 34.98 kB / 0.7938 GB, free: 388 kB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 8.429e-05/0.562, allocations: 349.9 kB / 0.7941 GB, free: 48 kB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001325/0.5621, allocations: 44.7 kB / 0.7941 GB, free: 32 kB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001966/0.5623, allocations: 91.94 kB / 0.7942 GB, free: 15.98 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002576/0.5626, allocations: 117.8 kB / 0.7943 GB, free: 15.93 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.5626, allocations: 3.094 kB / 0.7943 GB, free: 15.93 MB / 0.5762 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0003487/0.5629, allocations: 174.8 kB / 0.7945 GB, free: 15.85 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.351e-05/0.5629, allocations: 3.719 kB / 0.7945 GB, free: 15.85 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.506e-06/0.563, allocations: 6.781 kB / 0.7945 GB, free: 15.84 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.531e-05/0.563, allocations: 0.5156 kB / 0.7945 GB, free: 15.84 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001382/0.5631, allocations: 26.55 kB / 0.7945 GB, free: 15.84 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.731e-06/0.5632, allocations: 4 kB / 0.7945 GB, free: 15.84 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000169/0.5633, allocations: 22 kB / 0.7946 GB, free: 15.83 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.579e-05/0.5634, allocations: 4.297 kB / 0.7946 GB, free: 15.83 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002109/0.5636, allocations: 160.4 kB / 0.7947 GB, free: 15.72 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001541/0.5637, allocations: 89.11 kB / 0.7948 GB, free: 15.66 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0002453/0.564, allocations: 118.6 kB / 0.7949 GB, free: 15.61 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 9.42e-07/0.564, allocations: 0 / 0.7949 GB, free: 15.61 MB / 0.5762 GB Notification: Performance of matching and sorting (n=12) (initialization_lambda0): time 0.0003448/0.5644, allocations: 168.8 kB / 0.7951 GB, free: 15.54 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 9.388e-06/0.5644, allocations: 6.156 kB / 0.7951 GB, free: 15.54 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.595e-06/0.5644, allocations: 6.797 kB / 0.7951 GB, free: 15.54 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.899e-06/0.5644, allocations: 4.688 kB / 0.7951 GB, free: 15.53 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001057/0.5645, allocations: 27.03 kB / 0.7951 GB, free: 15.53 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.633e-06/0.5645, allocations: 1.062 kB / 0.7951 GB, free: 15.53 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001624/0.5647, allocations: 21.27 kB / 0.7951 GB, free: 15.52 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.378e-05/0.5647, allocations: 6.5 kB / 0.7952 GB, free: 15.52 MB / 0.5762 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.0001061/0.5648, allocations: 182.9 kB / 0.7953 GB, free: 15.34 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.159e-05/0.5649, allocations: 36.66 kB / 0.7954 GB, free: 15.32 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005323/0.5654, allocations: 238.9 kB / 0.7956 GB, free: 15.21 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.294e-06/0.5654, allocations: 0 / 0.7956 GB, free: 15.21 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.311e-06/0.5654, allocations: 0 / 0.7956 GB, free: 15.21 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.488e-06/0.5655, allocations: 0.8438 kB / 0.7956 GB, free: 15.21 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009791/0.5664, allocations: 0.6382 MB / 0.7962 GB, free: 14.77 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.067e-06/0.5665, allocations: 8.031 kB / 0.7962 GB, free: 14.76 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001008/0.5666, allocations: 25.45 kB / 0.7962 GB, free: 14.76 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.146e-06/0.5666, allocations: 0.75 kB / 0.7962 GB, free: 14.76 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.663e-05/0.5666, allocations: 7.312 kB / 0.7963 GB, free: 14.75 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.711e-06/0.5666, allocations: 2.609 kB / 0.7963 GB, free: 14.75 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.963e-06/0.5666, allocations: 4.656 kB / 0.7963 GB, free: 14.75 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004485/0.5671, allocations: 323.4 kB / 0.7966 GB, free: 14.53 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001093/0.5672, allocations: 122.2 kB / 0.7967 GB, free: 14.41 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.153e-05/0.5672, allocations: 6.422 kB / 0.7967 GB, free: 14.41 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00019/0.5674, allocations: 10.78 kB / 0.7967 GB, free: 14.41 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.155e-05/0.5675, allocations: 16.27 kB / 0.7967 GB, free: 14.4 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.548e-05/0.5675, allocations: 9.141 kB / 0.7967 GB, free: 14.4 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0002654/0.5678, allocations: 247.7 kB / 0.797 GB, free: 14.27 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.4e-07/0.5678, allocations: 0 / 0.797 GB, free: 14.27 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0006307/0.5684, allocations: 188.1 kB / 0.7971 GB, free: 14.23 MB / 0.5762 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.0005768/0.569, allocations: 254.8 kB / 0.7974 GB, free: 14.09 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0005401/0.5696, allocations: 186.8 kB / 0.7976 GB, free: 14.05 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.5696, allocations: 3.938 kB / 0.7976 GB, free: 14.04 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0001752/0.5698, allocations: 76.5 kB / 0.7976 GB, free: 14.02 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008418/0.5706, allocations: 159.4 kB / 0.7978 GB, free: 13.97 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000988/0.5716, allocations: 0.5633 MB / 0.7983 GB, free: 13.61 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004163/0.572, allocations: 0.8007 MB / 0.7991 GB, free: 12.9 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0002307/0.5723, allocations: 73.95 kB / 0.7992 GB, free: 12.89 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.171e-05/0.5723, allocations: 31.38 kB / 0.7992 GB, free: 12.88 MB / 0.5762 GB Notification: Performance of SimCode: time 2.6e-07/0.5723, allocations: 0 / 0.7992 GB, free: 12.88 MB / 0.5762 GB Notification: Performance of Templates: time 0.01608/0.5884, allocations: 6.586 MB / 0.8057 GB, free: 12.36 MB / 0.5762 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.HydraulicDiameter.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.HydraulicDiameter.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.HydraulicDiameter.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.HydraulicDiameter.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.HydraulicDiameter.sim & ./BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.HydraulicDiameter -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.HydraulicDiameter.pipe 2>&1)