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.001064/0.001064, allocations: 104 kB / 15.61 MB, free: 148 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.001086/0.001086, allocations: 196.5 kB / 16.54 MB, free: 6.684 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.307/1.307, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8951/0.8951, allocations: 135.1 MB / 425.5 MB, free: 12.03 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001272/0.001272, allocations: 65.28 kB / 0.5054 GB, free: 5.254 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1269/0.1282, allocations: 80.93 MB / 0.5845 GB, free: 4.488 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.FixedResistances.Examples.HydraulicDiameter): time 0.0148/0.1431, allocations: 15.04 MB / 0.5992 GB, free: 5.383 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.004819/0.1479, allocations: 3.89 MB / 0.603 GB, free: 1.484 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004031/0.1483, allocations: 15.94 kB / 0.603 GB, free: 1.469 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0005017/0.1488, allocations: 186.7 kB / 0.6031 GB, free: 1.285 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.001472/0.1503, allocations: 0.6803 MB / 0.6038 GB, free: 0.6016 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.001087/0.1514, allocations: 465.5 kB / 0.6043 GB, free: 156 kB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.2247/0.3762, allocations: 1.083 MB / 0.6053 GB, free: 36.45 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003748/0.3766, allocations: 280.9 kB / 0.6056 GB, free: 36.43 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005089/0.3771, allocations: 403.3 kB / 0.606 GB, free: 36.43 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002524/0.3774, allocations: 266.8 kB / 0.6062 GB, free: 36.41 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 4.608e-05/0.3774, allocations: 22.06 kB / 0.6062 GB, free: 36.41 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001069/0.3785, allocations: 0.7202 MB / 0.6069 GB, free: 36.41 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 7.471e-05/0.3786, allocations: 73.53 kB / 0.607 GB, free: 36.4 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001388/0.3787, allocations: 186.8 kB / 0.6072 GB, free: 36.34 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0007366/0.3795, allocations: 0.7188 MB / 0.6079 GB, free: 36.27 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.487e-06/0.3795, allocations: 0 / 0.6079 GB, free: 36.27 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.352e-06/0.3795, allocations: 0.7812 kB / 0.6079 GB, free: 36.27 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 6.522e-06/0.3795, allocations: 0 / 0.6079 GB, free: 36.27 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.0008711/0.3804, allocations: 0.7423 MB / 0.6086 GB, free: 35.74 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.121e-05/0.3804, allocations: 11.56 kB / 0.6086 GB, free: 35.74 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.971e-05/0.3805, allocations: 54.88 kB / 0.6087 GB, free: 35.7 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.16e-05/0.3805, allocations: 42.72 kB / 0.6087 GB, free: 35.68 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006662/0.3812, allocations: 0.4956 MB / 0.6092 GB, free: 35.42 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.493e-05/0.3812, allocations: 16.33 kB / 0.6092 GB, free: 35.42 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.318e-05/0.3813, allocations: 15.16 kB / 0.6092 GB, free: 35.42 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003049/0.3816, allocations: 172.9 kB / 0.6094 GB, free: 35.39 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.977e-06/0.3816, allocations: 0 / 0.6094 GB, free: 35.39 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.734e-05/0.3816, allocations: 10.44 kB / 0.6094 GB, free: 35.39 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.781e-06/0.3816, allocations: 3 kB / 0.6094 GB, free: 35.39 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002924/0.3819, allocations: 145.8 kB / 0.6096 GB, free: 35.38 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.0008167/0.3828, allocations: 0.8632 MB / 0.6104 GB, free: 34.83 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002211/0.383, allocations: 120.1 kB / 0.6105 GB, free: 34.81 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001416/0.3831, allocations: 78.97 kB / 0.6106 GB, free: 34.8 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002609/0.3834, allocations: 335.8 kB / 0.6109 GB, free: 34.42 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.605e-05/0.3834, allocations: 30.56 kB / 0.6109 GB, free: 34.38 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=12): time 1.312e-06/0.3834, allocations: 0 / 0.6109 GB, free: 34.38 MB / 0.4981 GB Notification: Performance of matching and sorting (n=12): time 0.000504/0.384, allocations: 225 kB / 0.6111 GB, free: 34.32 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.163e-05/0.384, allocations: 51.41 kB / 0.6112 GB, free: 34.26 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002622/0.3843, allocations: 352.8 kB / 0.6115 GB, free: 34.15 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.621e-05/0.3843, allocations: 29.52 kB / 0.6116 GB, free: 34.12 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 7.905e-05/0.3844, allocations: 194.2 kB / 0.6117 GB, free: 34.02 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.749e-05/0.3844, allocations: 37.47 kB / 0.6118 GB, free: 34 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.956e-05/0.3845, allocations: 39.27 kB / 0.6118 GB, free: 33.98 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 5.071e-05/0.3845, allocations: 341.7 kB / 0.6121 GB, free: 33.66 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001301/0.3847, allocations: 56.72 kB / 0.6122 GB, free: 33.65 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001435/0.3848, allocations: 88.22 kB / 0.6123 GB, free: 33.61 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000241/0.3851, allocations: 117.1 kB / 0.6124 GB, free: 33.6 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.3851, allocations: 0 / 0.6124 GB, free: 33.6 MB / 0.4981 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.000326/0.3854, allocations: 178.8 kB / 0.6126 GB, free: 33.55 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.274e-05/0.3854, allocations: 5.625 kB / 0.6126 GB, free: 33.55 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.909e-06/0.3854, allocations: 7.875 kB / 0.6126 GB, free: 33.54 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.259e-05/0.3854, allocations: 6.719 kB / 0.6126 GB, free: 33.54 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001346/0.3856, allocations: 19.88 kB / 0.6126 GB, free: 33.54 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.23e-06/0.3856, allocations: 4.156 kB / 0.6126 GB, free: 33.54 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001787/0.3858, allocations: 21.73 kB / 0.6126 GB, free: 33.54 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.903e-05/0.3858, allocations: 5.875 kB / 0.6126 GB, free: 33.54 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001784/0.386, allocations: 159.4 kB / 0.6128 GB, free: 33.45 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000132/0.3861, allocations: 86.02 kB / 0.6129 GB, free: 33.41 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0002173/0.3864, allocations: 111.8 kB / 0.613 GB, free: 33.39 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.252e-06/0.3864, allocations: 6.438 kB / 0.613 GB, free: 33.39 MB / 0.4981 GB Notification: Performance of matching and sorting (n=12) (initialization_lambda0): time 0.0002972/0.3867, allocations: 170.6 kB / 0.6131 GB, free: 33.34 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 6.062e-06/0.3867, allocations: 6.312 kB / 0.6132 GB, free: 33.34 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.372e-06/0.3867, allocations: 0 / 0.6132 GB, free: 33.34 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.254e-06/0.3867, allocations: 3.938 kB / 0.6132 GB, free: 33.34 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001044/0.3868, allocations: 30.55 kB / 0.6132 GB, free: 33.34 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.575e-06/0.3868, allocations: 4.953 kB / 0.6132 GB, free: 33.34 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001711/0.387, allocations: 18.11 kB / 0.6132 GB, free: 33.34 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.169e-05/0.387, allocations: 6.844 kB / 0.6132 GB, free: 33.34 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 5.522e-05/0.3871, allocations: 190.7 kB / 0.6134 GB, free: 33.16 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.325e-05/0.3871, allocations: 34.06 kB / 0.6134 GB, free: 33.14 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004192/0.3875, allocations: 240.2 kB / 0.6137 GB, free: 33.09 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.428e-06/0.3876, allocations: 0 / 0.6137 GB, free: 33.09 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.3876, allocations: 6.469 kB / 0.6137 GB, free: 33.09 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.286e-06/0.3876, allocations: 4 kB / 0.6137 GB, free: 33.08 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006629/0.3882, allocations: 0.6347 MB / 0.6143 GB, free: 32.75 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.147e-06/0.3883, allocations: 0 / 0.6143 GB, free: 32.75 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001045/0.3884, allocations: 26.59 kB / 0.6143 GB, free: 32.75 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.286e-06/0.3884, allocations: 2.844 kB / 0.6143 GB, free: 32.75 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.047e-05/0.3884, allocations: 10.25 kB / 0.6143 GB, free: 32.75 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.804e-06/0.3884, allocations: 2.781 kB / 0.6143 GB, free: 32.75 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.634e-06/0.3884, allocations: 2.875 kB / 0.6143 GB, free: 32.75 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003484/0.3888, allocations: 316.5 kB / 0.6146 GB, free: 32.57 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 8.005e-05/0.3889, allocations: 127.6 kB / 0.6148 GB, free: 32.45 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.184e-05/0.3889, allocations: 3.938 kB / 0.6148 GB, free: 32.45 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002029/0.3891, allocations: 14.94 kB / 0.6148 GB, free: 32.45 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.752e-05/0.3892, allocations: 11.81 kB / 0.6148 GB, free: 32.45 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.277e-05/0.3892, allocations: 5.562 kB / 0.6148 GB, free: 32.45 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001847/0.3894, allocations: 245.9 kB / 0.615 GB, free: 32.38 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3894, allocations: 4 kB / 0.615 GB, free: 32.37 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0004947/0.3899, allocations: 189.1 kB / 0.6152 GB, free: 32.34 MB / 0.4981 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.0008282/0.3907, allocations: 0.9962 MB / 0.6162 GB, free: 31.61 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0004614/0.3912, allocations: 197.8 kB / 0.6164 GB, free: 31.6 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.3912, allocations: 4 kB / 0.6164 GB, free: 31.59 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001531/0.3914, allocations: 81.75 kB / 0.6165 GB, free: 31.59 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007553/0.3921, allocations: 146.5 kB / 0.6166 GB, free: 31.58 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00261/0.3947, allocations: 2.742 MB / 0.6193 GB, free: 30.12 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00019/0.3949, allocations: 0.7922 MB / 0.62 GB, free: 29.42 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0002228/0.3952, allocations: 75.42 kB / 0.6201 GB, free: 29.41 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001163/0.3953, allocations: 113 kB / 0.6202 GB, free: 29.4 MB / 0.4981 GB Notification: Performance of SimCode: time 2.61e-07/0.3953, allocations: 0 / 0.6202 GB, free: 29.4 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02344/0.4187, allocations: 9.978 MB / 0.63 GB, free: 28.44 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.48/7.899, allocations: 21.45 kB / 0.63 GB, free: 28.42 MB / 0.4981 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)