Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.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/IDEAS 3.0.0-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.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: "" <> buildModelFMU(IDEAS.Fluid.FixedResistances.Examples.HydraulicDiameter,fileNamePrefix="IDEAS_dev_IDEAS_Fluid_FixedResistances_Examples_HydraulicDiameter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.FixedResistances.Examples.HydraulicDiameter,fileNamePrefix="IDEAS_dev_IDEAS_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.004363/0.004363, allocations: 102.8 kB / 15.74 MB, free: 5.551 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.001086/0.001086, allocations: 194.2 kB / 16.67 MB, free: 5.48 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.288/1.288, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7847/0.7847, allocations: 135.1 MB / 425.7 MB, free: 4.105 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001212/0.001212, allocations: 59.84 kB / 0.5851 GB, free: 21.97 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1201/0.1213, allocations: 80.91 MB / 0.6641 GB, free: 6.324 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.FixedResistances.Examples.HydraulicDiameter): time 0.01569/0.1371, allocations: 15.05 MB / 0.6788 GB, free: 7.215 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.005168/0.1422, allocations: 3.881 MB / 0.6826 GB, free: 3.324 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003789/0.1426, allocations: 23.88 kB / 0.6827 GB, free: 3.301 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.0005388/0.1432, allocations: 190.7 kB / 0.6828 GB, free: 3.113 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.001552/0.1448, allocations: 0.7037 MB / 0.6835 GB, free: 2.406 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.001152/0.1459, allocations: 481 kB / 0.684 GB, free: 1.941 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.001388/0.1473, allocations: 1.087 MB / 0.685 GB, free: 0.8477 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004257/0.1478, allocations: 283.6 kB / 0.6853 GB, free: 0.5703 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006537/0.1484, allocations: 414.4 kB / 0.6857 GB, free: 168 kB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003535/0.1488, allocations: 270.9 kB / 0.686 GB, free: 15.89 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 5.19e-05/0.1489, allocations: 20 kB / 0.686 GB, free: 15.88 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001117/0.15, allocations: 0.7133 MB / 0.6867 GB, free: 15.16 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 9.698e-05/0.1501, allocations: 75.67 kB / 0.6868 GB, free: 15.09 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.0001932/0.1503, allocations: 183 kB / 0.6869 GB, free: 14.91 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.001008/0.1513, allocations: 0.7317 MB / 0.6876 GB, free: 14.18 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 2.795e-06/0.1513, allocations: 0 / 0.6876 GB, free: 14.18 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.222e-06/0.1513, allocations: 0 / 0.6876 GB, free: 14.18 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 8.936e-06/0.1514, allocations: 0 / 0.6876 GB, free: 14.18 MB / 0.5294 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.001131/0.1525, allocations: 0.7621 MB / 0.6884 GB, free: 13.36 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.789e-05/0.1525, allocations: 13.11 kB / 0.6884 GB, free: 13.35 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.579e-05/0.1526, allocations: 50.73 kB / 0.6884 GB, free: 13.29 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.879e-05/0.1527, allocations: 48.66 kB / 0.6885 GB, free: 13.24 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009688/0.1537, allocations: 0.513 MB / 0.689 GB, free: 12.69 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.934e-05/0.1537, allocations: 20.27 kB / 0.689 GB, free: 12.67 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.306e-05/0.1537, allocations: 23.98 kB / 0.689 GB, free: 12.64 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003699/0.1541, allocations: 172.2 kB / 0.6892 GB, free: 12.47 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.129e-05/0.1541, allocations: 11.88 kB / 0.6892 GB, free: 12.46 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.955e-05/0.1542, allocations: 4 kB / 0.6892 GB, free: 12.46 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.221e-06/0.1542, allocations: 4 kB / 0.6892 GB, free: 12.45 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003349/0.1545, allocations: 144.2 kB / 0.6894 GB, free: 12.31 MB / 0.5294 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.001123/0.1556, allocations: 0.8568 MB / 0.6902 GB, free: 11.36 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002645/0.1559, allocations: 126.6 kB / 0.6903 GB, free: 11.22 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000161/0.1561, allocations: 72.81 kB / 0.6904 GB, free: 11.15 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002783/0.1564, allocations: 336.4 kB / 0.6907 GB, free: 10.75 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.272e-05/0.1564, allocations: 30.56 kB / 0.6907 GB, free: 10.71 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=12): time 1.724e-06/0.1564, allocations: 0 / 0.6907 GB, free: 10.71 MB / 0.5294 GB Notification: Performance of matching and sorting (n=12): time 0.0005837/0.157, allocations: 229.2 kB / 0.691 GB, free: 10.48 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.325e-05/0.1571, allocations: 55.41 kB / 0.691 GB, free: 10.41 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003529/0.1574, allocations: 341.7 kB / 0.6913 GB, free: 10.07 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 2.631e-05/0.1574, allocations: 33.7 kB / 0.6914 GB, free: 10.03 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001613/0.1576, allocations: 184.5 kB / 0.6915 GB, free: 9.848 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 3.858e-05/0.1577, allocations: 43.58 kB / 0.6916 GB, free: 9.805 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.019e-05/0.1577, allocations: 41.7 kB / 0.6916 GB, free: 9.758 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001227/0.1579, allocations: 338.8 kB / 0.6919 GB, free: 9.418 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001467/0.158, allocations: 52.81 kB / 0.692 GB, free: 9.363 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000169/0.1582, allocations: 84.25 kB / 0.6921 GB, free: 9.266 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002888/0.1585, allocations: 121.6 kB / 0.6922 GB, free: 9.141 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.933e-06/0.1585, allocations: 4 kB / 0.6922 GB, free: 9.137 MB / 0.5294 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0003924/0.1589, allocations: 181.3 kB / 0.6924 GB, free: 8.953 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 1.266e-05/0.1589, allocations: 4 kB / 0.6924 GB, free: 8.949 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.488e-06/0.1589, allocations: 0 / 0.6924 GB, free: 8.949 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.099e-05/0.1589, allocations: 0 / 0.6924 GB, free: 8.949 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001537/0.1591, allocations: 28.02 kB / 0.6924 GB, free: 8.922 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.362e-06/0.1591, allocations: 11.94 kB / 0.6924 GB, free: 8.91 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001996/0.1593, allocations: 23.92 kB / 0.6924 GB, free: 8.887 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.061e-05/0.1593, allocations: 4 kB / 0.6924 GB, free: 8.883 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002215/0.1596, allocations: 156 kB / 0.6926 GB, free: 8.727 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001586/0.1597, allocations: 92.89 kB / 0.6927 GB, free: 8.621 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0002656/0.16, allocations: 121.6 kB / 0.6928 GB, free: 8.496 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.122e-06/0.16, allocations: 0 / 0.6928 GB, free: 8.496 MB / 0.5294 GB Notification: Performance of matching and sorting (n=12) (initialization_lambda0): time 0.0003582/0.1604, allocations: 177.3 kB / 0.693 GB, free: 8.316 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 7.734e-06/0.1604, allocations: 4 kB / 0.693 GB, free: 8.312 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.513e-06/0.1604, allocations: 0 / 0.693 GB, free: 8.312 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.034e-06/0.1604, allocations: 4 kB / 0.693 GB, free: 8.309 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000115/0.1605, allocations: 23.98 kB / 0.693 GB, free: 8.285 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.014e-06/0.1606, allocations: 4 kB / 0.693 GB, free: 8.281 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001888/0.1608, allocations: 20 kB / 0.693 GB, free: 8.262 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.822e-05/0.1608, allocations: 15.98 kB / 0.693 GB, free: 8.246 MB / 0.5294 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.0001018/0.1609, allocations: 192.1 kB / 0.6932 GB, free: 8.051 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.411e-05/0.161, allocations: 35.77 kB / 0.6932 GB, free: 8.016 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000482/0.1614, allocations: 228.8 kB / 0.6935 GB, free: 7.785 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.46e-06/0.1615, allocations: 4 kB / 0.6935 GB, free: 7.781 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.696e-06/0.1615, allocations: 0 / 0.6935 GB, free: 7.781 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.246e-06/0.1615, allocations: 0 / 0.6935 GB, free: 7.781 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008739/0.1624, allocations: 0.6296 MB / 0.6941 GB, free: 7.086 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.44e-06/0.1624, allocations: 8.031 kB / 0.6941 GB, free: 7.078 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001138/0.1625, allocations: 23.92 kB / 0.6941 GB, free: 7.055 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.927e-06/0.1625, allocations: 7.984 kB / 0.6941 GB, free: 7.047 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.748e-06/0.1625, allocations: 0 / 0.6941 GB, free: 7.047 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.934e-06/0.1625, allocations: 4 kB / 0.6941 GB, free: 7.043 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.1625, allocations: 0 / 0.6941 GB, free: 7.043 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004518/0.163, allocations: 328.9 kB / 0.6944 GB, free: 6.699 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000125/0.1631, allocations: 124.8 kB / 0.6946 GB, free: 6.559 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.682e-05/0.1632, allocations: 8 kB / 0.6946 GB, free: 6.551 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002193/0.1634, allocations: 15.97 kB / 0.6946 GB, free: 6.535 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.006e-05/0.1635, allocations: 19.88 kB / 0.6946 GB, free: 6.516 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.458e-05/0.1635, allocations: 7.984 kB / 0.6946 GB, free: 6.508 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0002407/0.1637, allocations: 243.2 kB / 0.6948 GB, free: 6.273 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.4e-07/0.1637, allocations: 0 / 0.6948 GB, free: 6.273 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0005663/0.1643, allocations: 195.4 kB / 0.695 GB, free: 6.082 MB / 0.5294 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.001088/0.1654, allocations: 0.9859 MB / 0.696 GB, free: 5.066 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.0005158/0.1659, allocations: 195.8 kB / 0.6962 GB, free: 4.875 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 3.907e-06/0.1659, allocations: 0 / 0.6962 GB, free: 4.875 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0001858/0.1661, allocations: 79.94 kB / 0.6963 GB, free: 4.797 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008152/0.167, allocations: 161.3 kB / 0.6964 GB, free: 4.645 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003256/0.1702, allocations: 2.723 MB / 0.6991 GB, free: 1.82 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003301/0.1706, allocations: 0.7918 MB / 0.6998 GB, free: 1 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0002229/0.1708, allocations: 82.78 kB / 0.6999 GB, free: 0.918 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001464/0.1709, allocations: 115.4 kB / 0.7 GB, free: 0.8086 MB / 0.5294 GB Notification: Performance of SimCode: time 4e-07/0.171, allocations: 0 / 0.7 GB, free: 0.8086 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02756/0.1985, allocations: 10.06 MB / 0.7099 GB, free: 6.934 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.012/8.211, allocations: 4.531 kB / 0.7099 GB, free: 6.93 MB / 0.545 GB (rm -f IDEAS_dev_IDEAS.Fluid.FixedResistances.Examples.HydraulicDiameter.pipe ; mkfifo IDEAS_dev_IDEAS.Fluid.FixedResistances.Examples.HydraulicDiameter.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Fluid.FixedResistances.Examples.HydraulicDiameter.pipe >> ../files/IDEAS_dev_IDEAS.Fluid.FixedResistances.Examples.HydraulicDiameter.sim & python3 -m fmpy simulate --output-file IDEAS_dev_IDEAS.Fluid.FixedResistances.Examples.HydraulicDiameter_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 IDEAS_dev_IDEAS_Fluid_FixedResistances_Examples_HydraulicDiameter.fmu > IDEAS_dev_IDEAS.Fluid.FixedResistances.Examples.HydraulicDiameter.pipe 2>&1)