Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_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/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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_IDEAS_Fluid_FixedResistances_Examples_HydraulicDiameter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.FixedResistances.Examples.HydraulicDiameter,fileNamePrefix="IDEAS_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.001044/0.001044, allocations: 108 kB / 15.61 MB, free: 152 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.001008/0.001008, allocations: 195.5 kB / 16.53 MB, free: 6.664 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.259/1.259, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7342/0.7342, allocations: 132.2 MB / 422.6 MB, free: 1.812 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001189/0.001189, allocations: 64.34 kB / 0.5019 GB, free: 3.816 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3163/0.3175, allocations: 80.2 MB / 0.5802 GB, free: 4.59 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.FixedResistances.Examples.HydraulicDiameter): time 0.01532/0.3329, allocations: 15.06 MB / 0.5949 GB, free: 9.785 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.005416/0.3383, allocations: 3.875 MB / 0.5987 GB, free: 7.062 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000506/0.3388, allocations: 22 kB / 0.5987 GB, free: 7.055 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005497/0.3394, allocations: 191.5 kB / 0.5989 GB, free: 6.934 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001749/0.3412, allocations: 0.6769 MB / 0.5995 GB, free: 6.559 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001405/0.3426, allocations: 473.4 kB / 0.6 GB, free: 6.297 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.001482/0.3441, allocations: 1.087 MB / 0.6011 GB, free: 5.688 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004453/0.3445, allocations: 281.7 kB / 0.6013 GB, free: 5.504 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006905/0.3452, allocations: 398.3 kB / 0.6017 GB, free: 5.285 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003983/0.3456, allocations: 263.6 kB / 0.602 GB, free: 5.133 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 6.042e-05/0.3457, allocations: 25.5 kB / 0.602 GB, free: 5.129 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001223/0.3469, allocations: 0.7144 MB / 0.6027 GB, free: 4.715 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000102/0.3471, allocations: 75.19 kB / 0.6027 GB, free: 4.656 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002031/0.3473, allocations: 188 kB / 0.6029 GB, free: 4.539 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001019/0.3483, allocations: 0.7192 MB / 0.6036 GB, free: 4.102 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.776e-06/0.3483, allocations: 0 / 0.6036 GB, free: 4.102 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.3483, allocations: 1.438 kB / 0.6036 GB, free: 4.102 MB / 446.1 MB Notification: Performance of Transformations before backend: time 8.847e-06/0.3483, allocations: 0 / 0.6036 GB, free: 4.102 MB / 446.1 MB 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.00112/0.3495, allocations: 0.7473 MB / 0.6044 GB, free: 3.445 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.576e-05/0.3495, allocations: 12.61 kB / 0.6044 GB, free: 3.441 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.073e-05/0.3496, allocations: 53.16 kB / 0.6044 GB, free: 3.387 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.292e-05/0.3497, allocations: 45.31 kB / 0.6045 GB, free: 3.363 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008576/0.3505, allocations: 0.4923 MB / 0.6049 GB, free: 2.941 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.952e-05/0.3505, allocations: 15.77 kB / 0.605 GB, free: 2.934 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.933e-05/0.3506, allocations: 17.28 kB / 0.605 GB, free: 2.93 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003625/0.3509, allocations: 184.3 kB / 0.6052 GB, free: 2.816 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.707e-06/0.351, allocations: 0 / 0.6052 GB, free: 2.816 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.292e-05/0.351, allocations: 9.094 kB / 0.6052 GB, free: 2.809 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.442e-06/0.351, allocations: 8.188 kB / 0.6052 GB, free: 2.805 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003257/0.3513, allocations: 141.1 kB / 0.6053 GB, free: 2.738 MB / 446.1 MB 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.001074/0.3524, allocations: 0.8556 MB / 0.6061 GB, free: 1.945 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002656/0.3527, allocations: 120.4 kB / 0.6063 GB, free: 1.875 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001603/0.3529, allocations: 81.34 kB / 0.6063 GB, free: 1.828 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002984/0.3532, allocations: 336.6 kB / 0.6067 GB, free: 1.441 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.098e-05/0.3532, allocations: 31.91 kB / 0.6067 GB, free: 1.402 MB / 446.1 MB Notification: Performance of pre-optimization done (n=12): time 1.393e-06/0.3532, allocations: 0 / 0.6067 GB, free: 1.402 MB / 446.1 MB Notification: Performance of matching and sorting (n=12): time 0.0005537/0.3538, allocations: 217.6 kB / 0.6069 GB, free: 1.285 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.918e-05/0.3538, allocations: 60.59 kB / 0.6069 GB, free: 1.215 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000349/0.3542, allocations: 343.9 kB / 0.6073 GB, free: 1 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 2.359e-05/0.3542, allocations: 30.64 kB / 0.6073 GB, free: 0.9648 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001277/0.3543, allocations: 191.3 kB / 0.6075 GB, free: 0.793 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.848e-05/0.3544, allocations: 47.91 kB / 0.6075 GB, free: 0.75 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.288e-05/0.3545, allocations: 31.31 kB / 0.6076 GB, free: 0.7266 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.000117/0.3546, allocations: 346.3 kB / 0.6079 GB, free: 396 kB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001397/0.3547, allocations: 49.17 kB / 0.6079 GB, free: 368 kB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000167/0.3549, allocations: 94.08 kB / 0.608 GB, free: 292 kB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002728/0.3552, allocations: 118.6 kB / 0.6081 GB, free: 224 kB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.3552, allocations: 0 / 0.6081 GB, free: 224 kB / 446.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0003757/0.3556, allocations: 181.2 kB / 0.6083 GB, free: 116 kB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.122e-05/0.3556, allocations: 5.5 kB / 0.6083 GB, free: 116 kB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.799e-06/0.3556, allocations: 1.156 kB / 0.6083 GB, free: 116 kB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.347e-05/0.3556, allocations: 5.641 kB / 0.6083 GB, free: 112 kB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001375/0.3558, allocations: 23.02 kB / 0.6083 GB, free: 108 kB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.21e-06/0.3558, allocations: 1.281 kB / 0.6084 GB, free: 108 kB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001908/0.356, allocations: 24.48 kB / 0.6084 GB, free: 92 kB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.997e-05/0.356, allocations: 8.406 kB / 0.6084 GB, free: 88 kB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002309/0.3563, allocations: 157.4 kB / 0.6085 GB, free: 15.96 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001527/0.3564, allocations: 85.53 kB / 0.6086 GB, free: 15.89 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0002481/0.3567, allocations: 108.7 kB / 0.6087 GB, free: 15.84 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 9.72e-07/0.3567, allocations: 4 kB / 0.6087 GB, free: 15.83 MB / 462.1 MB Notification: Performance of matching and sorting (n=12) (initialization_lambda0): time 0.0003519/0.357, allocations: 175.7 kB / 0.6089 GB, free: 15.73 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.914e-06/0.3571, allocations: 9.5 kB / 0.6089 GB, free: 15.73 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.473e-06/0.3571, allocations: 0 / 0.6089 GB, free: 15.73 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.006e-06/0.3571, allocations: 1.125 kB / 0.6089 GB, free: 15.73 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001093/0.3572, allocations: 22.64 kB / 0.6089 GB, free: 15.72 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.439e-06/0.3572, allocations: 5.484 kB / 0.6089 GB, free: 15.72 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001845/0.3574, allocations: 21.14 kB / 0.6089 GB, free: 15.71 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.286e-05/0.3574, allocations: 4.844 kB / 0.609 GB, free: 15.71 MB / 462.1 MB 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 9.521e-05/0.3575, allocations: 187.8 kB / 0.6091 GB, free: 15.52 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.63e-05/0.3576, allocations: 43.44 kB / 0.6092 GB, free: 15.49 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004791/0.3581, allocations: 225.5 kB / 0.6094 GB, free: 15.36 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.035e-06/0.3581, allocations: 6.219 kB / 0.6094 GB, free: 15.36 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.566e-06/0.3581, allocations: 3.938 kB / 0.6094 GB, free: 15.35 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.1e-06/0.3581, allocations: 3.984 kB / 0.6094 GB, free: 15.35 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008472/0.359, allocations: 0.634 MB / 0.61 GB, free: 14.81 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.318e-06/0.359, allocations: 1.375 kB / 0.61 GB, free: 14.81 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001067/0.3591, allocations: 23.64 kB / 0.61 GB, free: 14.81 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.386e-06/0.3591, allocations: 5.719 kB / 0.61 GB, free: 14.8 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.225e-05/0.3591, allocations: 6.719 kB / 0.6101 GB, free: 14.8 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.265e-06/0.3591, allocations: 1.719 kB / 0.6101 GB, free: 14.8 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.3591, allocations: 0 / 0.6101 GB, free: 14.8 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004339/0.3596, allocations: 326.9 kB / 0.6104 GB, free: 14.55 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001064/0.3597, allocations: 123 kB / 0.6105 GB, free: 14.43 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.538e-05/0.3597, allocations: 6.281 kB / 0.6105 GB, free: 14.42 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002068/0.3599, allocations: 11.27 kB / 0.6105 GB, free: 14.42 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.583e-05/0.36, allocations: 20.62 kB / 0.6105 GB, free: 14.4 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.376e-05/0.36, allocations: 5.219 kB / 0.6105 GB, free: 14.4 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0002482/0.3603, allocations: 251.5 kB / 0.6108 GB, free: 14.24 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.3603, allocations: 1.031 kB / 0.6108 GB, free: 14.24 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0005567/0.3608, allocations: 188.8 kB / 0.6109 GB, free: 14.19 MB / 462.1 MB 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.001055/0.3619, allocations: 0.9873 MB / 0.6119 GB, free: 13.36 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0005227/0.3624, allocations: 202 kB / 0.6121 GB, free: 13.27 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.3625, allocations: 0 / 0.6121 GB, free: 13.27 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001807/0.3626, allocations: 84.73 kB / 0.6122 GB, free: 13.23 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008179/0.3635, allocations: 159.6 kB / 0.6123 GB, free: 13.14 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003257/0.3667, allocations: 2.726 MB / 0.615 GB, free: 11.14 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003236/0.3671, allocations: 0.7925 MB / 0.6158 GB, free: 10.39 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0002612/0.3673, allocations: 80.67 kB / 0.6159 GB, free: 10.36 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001349/0.3675, allocations: 112.5 kB / 0.616 GB, free: 10.27 MB / 462.1 MB Notification: Performance of SimCode: time 2.4e-07/0.3675, allocations: 1.094 kB / 0.616 GB, free: 10.27 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02645/0.3939, allocations: 9.974 MB / 0.6257 GB, free: 2.473 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.126/7.52, allocations: 4 kB / 0.6257 GB, free: 2.469 MB / 462.1 MB (rm -f IDEAS_IDEAS.Fluid.FixedResistances.Examples.HydraulicDiameter.pipe ; mkfifo IDEAS_IDEAS.Fluid.FixedResistances.Examples.HydraulicDiameter.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.FixedResistances.Examples.HydraulicDiameter.pipe >> ../files/IDEAS_IDEAS.Fluid.FixedResistances.Examples.HydraulicDiameter.sim & python3 -m fmpy simulate --output-file IDEAS_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_IDEAS_Fluid_FixedResistances_Examples_HydraulicDiameter.fmu > IDEAS_IDEAS.Fluid.FixedResistances.Examples.HydraulicDiameter.pipe 2>&1)