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: "" <> buildModelFMU(BuildingSystems.Fluid.FixedResistances.Examples.HydraulicDiameter,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_FixedResistances_Examples_HydraulicDiameter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.FixedResistances.Examples.HydraulicDiameter,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_FixedResistances_Examples_HydraulicDiameter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007421/0.0007421, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.004761/0.004761, allocations: 170.6 kB / 16.27 MB, free: 6.652 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.294/1.294, allocations: 223.3 MB / 240.3 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001787/0.001787, allocations: 267.1 kB / 291.7 MB, free: 1.863 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9281/0.9281, allocations: 169.5 MB / 0.5004 GB, free: 14.09 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004026/0.0004026, allocations: 19.59 kB / 0.5988 GB, free: 28.02 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1421/0.1425, allocations: 88.54 MB / 0.6852 GB, free: 14.95 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.FixedResistances.Examples.HydraulicDiameter): time 0.01405/0.1566, allocations: 14.47 MB / 0.6994 GB, free: 456 kB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.004996/0.1616, allocations: 3.871 MB / 0.7031 GB, free: 12.57 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002996/0.1619, allocations: 19.88 kB / 0.7032 GB, free: 12.55 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0004447/0.1624, allocations: 147.1 kB / 0.7033 GB, free: 12.4 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.001235/0.1636, allocations: 0.629 MB / 0.7039 GB, free: 11.77 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009859/0.1646, allocations: 418.3 kB / 0.7043 GB, free: 11.37 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.001391/0.166, allocations: 1.368 MB / 0.7057 GB, free: 10 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003249/0.1664, allocations: 240.9 kB / 0.7059 GB, free: 9.762 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005345/0.1669, allocations: 370.2 kB / 0.7062 GB, free: 9.398 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002897/0.1672, allocations: 262.8 kB / 0.7065 GB, free: 9.141 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 3.22e-05/0.1673, allocations: 12 kB / 0.7065 GB, free: 9.129 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009814/0.1682, allocations: 0.6938 MB / 0.7072 GB, free: 8.434 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 7.862e-05/0.1683, allocations: 71.67 kB / 0.7072 GB, free: 8.363 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001792/0.1685, allocations: 192.7 kB / 0.7074 GB, free: 8.168 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0008034/0.1693, allocations: 0.7049 MB / 0.7081 GB, free: 7.461 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.1693, allocations: 0 / 0.7081 GB, free: 7.461 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.203e-06/0.1694, allocations: 0 / 0.7081 GB, free: 7.461 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.02e-06/0.1694, allocations: 0 / 0.7081 GB, free: 7.461 MB / 0.4981 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.0009257/0.1703, allocations: 0.693 MB / 0.7088 GB, free: 6.715 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.776e-05/0.1703, allocations: 8.031 kB / 0.7088 GB, free: 6.707 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.245e-05/0.1704, allocations: 54.73 kB / 0.7089 GB, free: 6.645 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.248e-05/0.1705, allocations: 40.47 kB / 0.7089 GB, free: 6.605 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007582/0.1712, allocations: 497.7 kB / 0.7094 GB, free: 6.082 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.458e-05/0.1713, allocations: 12.33 kB / 0.7094 GB, free: 6.07 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.937e-05/0.1713, allocations: 20 kB / 0.7094 GB, free: 6.051 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003498/0.1716, allocations: 192.7 kB / 0.7096 GB, free: 5.859 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.494e-06/0.1717, allocations: 0 / 0.7096 GB, free: 5.859 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.981e-05/0.1717, allocations: 11.98 kB / 0.7096 GB, free: 5.848 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.382e-06/0.1717, allocations: 4 kB / 0.7096 GB, free: 5.844 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003289/0.172, allocations: 152.2 kB / 0.7097 GB, free: 5.695 MB / 0.4981 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.001002/0.173, allocations: 0.8644 MB / 0.7106 GB, free: 4.73 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002508/0.1733, allocations: 122.6 kB / 0.7107 GB, free: 4.602 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001618/0.1735, allocations: 84.81 kB / 0.7108 GB, free: 4.516 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002963/0.1738, allocations: 328.4 kB / 0.7111 GB, free: 4.121 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.543e-05/0.1738, allocations: 42.48 kB / 0.7111 GB, free: 4.07 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=12): time 1.082e-06/0.1738, allocations: 0 / 0.7111 GB, free: 4.07 MB / 0.4981 GB Notification: Performance of matching and sorting (n=12): time 0.000577/0.1744, allocations: 237.3 kB / 0.7114 GB, free: 3.832 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.133e-05/0.1744, allocations: 55.41 kB / 0.7114 GB, free: 3.766 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003285/0.1748, allocations: 341.7 kB / 0.7117 GB, free: 3.422 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.308e-05/0.1748, allocations: 33.7 kB / 0.7118 GB, free: 3.383 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001201/0.1749, allocations: 192.3 kB / 0.712 GB, free: 3.191 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 3.729e-05/0.175, allocations: 43.36 kB / 0.712 GB, free: 3.148 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.873e-05/0.175, allocations: 17.7 kB / 0.712 GB, free: 3.125 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001259/0.1751, allocations: 338.8 kB / 0.7123 GB, free: 2.785 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001425/0.1753, allocations: 55.95 kB / 0.7124 GB, free: 2.73 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000163/0.1755, allocations: 100.2 kB / 0.7125 GB, free: 2.617 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000273/0.1757, allocations: 129.5 kB / 0.7126 GB, free: 2.484 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.345e-06/0.1758, allocations: 4 kB / 0.7126 GB, free: 2.48 MB / 0.4981 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0003667/0.1761, allocations: 189.2 kB / 0.7128 GB, free: 2.289 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 4.92e-05/0.1762, allocations: 101.8 kB / 0.7129 GB, free: 2.18 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.528e-06/0.1762, allocations: 0 / 0.7129 GB, free: 2.18 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.108e-05/0.1762, allocations: 4 kB / 0.7129 GB, free: 2.176 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001378/0.1764, allocations: 27.97 kB / 0.7129 GB, free: 2.148 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.25e-06/0.1764, allocations: 0 / 0.7129 GB, free: 2.148 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002163/0.1766, allocations: 39.95 kB / 0.713 GB, free: 2.109 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.157e-05/0.1766, allocations: 8 kB / 0.713 GB, free: 2.102 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 6.142e-06/0.1766, allocations: 4 kB / 0.713 GB, free: 2.098 MB / 0.4981 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0003138/0.177, allocations: 123.9 kB / 0.7131 GB, free: 1.977 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.583e-06/0.177, allocations: 0 / 0.7131 GB, free: 1.977 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.794e-06/0.177, allocations: 0 / 0.7131 GB, free: 1.977 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00011/0.1771, allocations: 39.91 kB / 0.7131 GB, free: 1.938 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.633e-06/0.1771, allocations: 0 / 0.7131 GB, free: 1.938 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001877/0.1773, allocations: 27.89 kB / 0.7132 GB, free: 1.91 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.335e-05/0.1773, allocations: 7.984 kB / 0.7132 GB, free: 1.902 MB / 0.4981 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.0001548/0.1775, allocations: 221.7 kB / 0.7134 GB, free: 1.676 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.583e-05/0.1775, allocations: 39.52 kB / 0.7134 GB, free: 1.637 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004681/0.178, allocations: 236.9 kB / 0.7136 GB, free: 1.398 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.202e-06/0.178, allocations: 8 kB / 0.7136 GB, free: 1.391 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.476e-06/0.178, allocations: 0 / 0.7136 GB, free: 1.391 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.837e-06/0.178, allocations: 0 / 0.7136 GB, free: 1.391 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008318/0.1789, allocations: 0.6451 MB / 0.7143 GB, free: 0.6797 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.446e-06/0.1789, allocations: 4 kB / 0.7143 GB, free: 0.6758 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001034/0.179, allocations: 23.98 kB / 0.7143 GB, free: 0.6523 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.918e-06/0.179, allocations: 7.938 kB / 0.7143 GB, free: 0.6445 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.321e-05/0.179, allocations: 4 kB / 0.7143 GB, free: 0.6406 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.148e-06/0.179, allocations: 11.92 kB / 0.7143 GB, free: 0.6289 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.179, allocations: 0 / 0.7143 GB, free: 0.6289 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004289/0.1795, allocations: 321.7 kB / 0.7146 GB, free: 296 kB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001184/0.1796, allocations: 136.5 kB / 0.7148 GB, free: 140 kB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.516e-05/0.1797, allocations: 0 / 0.7148 GB, free: 140 kB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002209/0.1799, allocations: 27.97 kB / 0.7148 GB, free: 112 kB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.809e-05/0.1799, allocations: 11.92 kB / 0.7148 GB, free: 100 kB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.211e-05/0.18, allocations: 4 kB / 0.7148 GB, free: 96 kB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0002454/0.1802, allocations: 259.2 kB / 0.7151 GB, free: 15.84 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.11e-07/0.1802, allocations: 0 / 0.7151 GB, free: 15.84 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0005733/0.1808, allocations: 187.6 kB / 0.7152 GB, free: 15.66 MB / 0.5137 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.001115/0.1819, allocations: 1.005 MB / 0.7162 GB, free: 14.62 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0005024/0.1824, allocations: 199.7 kB / 0.7164 GB, free: 14.43 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 4.398e-06/0.1824, allocations: 8 kB / 0.7164 GB, free: 14.42 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0001852/0.1826, allocations: 87.77 kB / 0.7165 GB, free: 14.34 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008281/0.1835, allocations: 141.9 kB / 0.7166 GB, free: 14.2 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003329/0.1868, allocations: 2.882 MB / 0.7194 GB, free: 11.22 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004028/0.1872, allocations: 0.8036 MB / 0.7202 GB, free: 10.39 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0002863/0.1875, allocations: 83.16 kB / 0.7203 GB, free: 10.31 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001373/0.1877, allocations: 119.4 kB / 0.7204 GB, free: 10.2 MB / 0.5137 GB Notification: Performance of SimCode: time 3.21e-07/0.1877, allocations: 0 / 0.7204 GB, free: 10.2 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1091/0.2968, allocations: 9.481 MB / 0.7297 GB, free: 1.004 MB / 0.5137 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002064/0.297, allocations: 263.8 kB / 0.7299 GB, free: 0.6484 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.922/2.219, allocations: 4 kB / 0.7299 GB, free: 0.6445 MB / 0.5137 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_FixedResistances_Examples_HydraulicDiameter_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_FixedResistances_Examples_HydraulicDiameter.fmu > BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.HydraulicDiameter.pipe 2>&1)