Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Media_TestsWithFluid_MediaTestModels_LinearFluid_LinearColdWater",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Media_TestsWithFluid_MediaTestModels_LinearFluid_LinearColdWater",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.002274/0.002275, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002687/0.002687, allocations: 214.4 kB / 18.59 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.573/1.573, allocations: 227.4 MB / 246.8 MB, free: 10.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2365/0.2365, allocations: 46.11 MB / 344.2 MB, free: 11.56 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002423/0.002423, allocations: 77.41 kB / 417.8 MB, free: 19.6 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.119/0.1214, allocations: 62.45 MB / 480.2 MB, free: 5.133 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater): time 0.02442/0.1459, allocations: 20.36 MB / 0.4888 GB, free: 0.6953 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.006878/0.1528, allocations: 4.279 MB / 0.493 GB, free: 12.41 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000744/0.1536, allocations: 19.88 kB / 0.493 GB, free: 12.39 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001021/0.1547, allocations: 313.9 kB / 0.4933 GB, free: 12.08 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002349/0.1571, allocations: 0.8511 MB / 0.4942 GB, free: 11.22 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00291/0.16, allocations: 0.9097 MB / 0.4951 GB, free: 10.32 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002414/0.1624, allocations: 1.79 MB / 0.4968 GB, free: 8.523 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008593/0.1633, allocations: 465.4 kB / 0.4973 GB, free: 8.059 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002202/0.1655, allocations: 0.9223 MB / 0.4982 GB, free: 7.133 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009298/0.1665, allocations: 0.6383 MB / 0.4988 GB, free: 6.492 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001229/0.1666, allocations: 63.94 kB / 0.4988 GB, free: 6.43 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008209/0.1674, allocations: 307.6 kB / 0.4991 GB, free: 6.129 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002897/0.1677, allocations: 259.3 kB / 0.4994 GB, free: 5.875 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000433/0.1682, allocations: 398.1 kB / 0.4998 GB, free: 5.484 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00139/0.1696, allocations: 1.075 MB / 0.5008 GB, free: 4.406 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.1696, allocations: 0 / 0.5008 GB, free: 4.406 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.1696, allocations: 3.938 kB / 0.5008 GB, free: 4.402 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.066e-05/0.1696, allocations: 0 / 0.5008 GB, free: 4.402 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 130 * Number of variables: 130 Notification: Performance of Generate backend data structure: time 0.002181/0.1718, allocations: 1.046 MB / 0.5018 GB, free: 3.309 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.135e-05/0.1718, allocations: 12.03 kB / 0.5018 GB, free: 3.297 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001358/0.172, allocations: 102.7 kB / 0.5019 GB, free: 3.188 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003432/0.1723, allocations: 92.08 kB / 0.502 GB, free: 3.098 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007572/0.1731, allocations: 0.5014 MB / 0.5025 GB, free: 2.555 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000129/0.1732, allocations: 108.9 kB / 0.5026 GB, free: 2.438 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.794e-05/0.1733, allocations: 48.12 kB / 0.5027 GB, free: 2.391 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001306/0.1746, allocations: 0.8243 MB / 0.5035 GB, free: 1.496 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.031e-05/0.1747, allocations: 0 / 0.5035 GB, free: 1.496 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.645e-05/0.1748, allocations: 27.98 kB / 0.5035 GB, free: 1.469 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.92e-05/0.1748, allocations: 40.92 kB / 0.5035 GB, free: 1.426 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001139/0.176, allocations: 0.6478 MB / 0.5042 GB, free: 0.7773 MB / 382.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.1868/0.3627, allocations: 4.215 MB / 0.5083 GB, free: 40.98 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008596/0.3636, allocations: 413.5 kB / 0.5087 GB, free: 40.95 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003167/0.364, allocations: 211.8 kB / 0.5089 GB, free: 40.87 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003431/0.3643, allocations: 0.5024 MB / 0.5094 GB, free: 40.3 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.985e-05/0.3643, allocations: 39.61 kB / 0.5094 GB, free: 40.26 MB / 382.1 MB Notification: Performance of pre-optimization done (n=40): time 2.264e-06/0.3644, allocations: 0 / 0.5094 GB, free: 40.26 MB / 382.1 MB Notification: Performance of matching and sorting (n=45): time 0.003065/0.3674, allocations: 1.525 MB / 0.5109 GB, free: 39.46 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.915e-05/0.3675, allocations: 141.5 kB / 0.511 GB, free: 39.29 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006406/0.3681, allocations: 0.5679 MB / 0.5116 GB, free: 39.04 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.012e-05/0.3682, allocations: 32.42 kB / 0.5116 GB, free: 39 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001786/0.3684, allocations: 356.4 kB / 0.512 GB, free: 38.72 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001003/0.3685, allocations: 164.6 kB / 0.5121 GB, free: 38.59 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001826/0.3687, allocations: 146.3 kB / 0.5123 GB, free: 38.52 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.691e-05/0.3688, allocations: 374.7 kB / 0.5126 GB, free: 38.18 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003559/0.3691, allocations: 223 kB / 0.5128 GB, free: 38.11 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004936/0.3696, allocations: 0.5191 MB / 0.5133 GB, free: 37.65 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008365/0.3705, allocations: 0.7818 MB / 0.5141 GB, free: 37.08 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.022e-06/0.3705, allocations: 3.391 kB / 0.5141 GB, free: 37.08 MB / 382.1 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001683/0.3722, allocations: 0.9423 MB / 0.515 GB, free: 36.69 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.951e-05/0.3722, allocations: 9.562 kB / 0.515 GB, free: 36.69 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.278e-05/0.3722, allocations: 12.28 kB / 0.515 GB, free: 36.69 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001068/0.3733, allocations: 262.3 kB / 0.5153 GB, free: 36.64 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004005/0.3737, allocations: 129.8 kB / 0.5154 GB, free: 36.62 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007705/0.3745, allocations: 0.8677 MB / 0.5163 GB, free: 35.96 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004846/0.375, allocations: 31.72 kB / 0.5163 GB, free: 35.95 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.755e-05/0.375, allocations: 37.89 kB / 0.5163 GB, free: 35.95 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 42 * Number of states: 0 () * Number of discrete variables: 4 (volume.regularFlow[1],volume.regularFlow[2],volume.inFlow[2],volume.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (73): * Single equations (assignments): 72 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,14)} Notification: Performance of prepare postOptimizeDAE: time 0.0002913/0.3753, allocations: 246.6 kB / 0.5166 GB, free: 35.76 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001179/0.3755, allocations: 67.47 kB / 0.5166 GB, free: 35.73 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001273/0.3767, allocations: 0.7108 MB / 0.5173 GB, free: 35.41 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.175e-05/0.3768, allocations: 6.391 kB / 0.5173 GB, free: 35.41 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.302e-06/0.3768, allocations: 0 / 0.5173 GB, free: 35.41 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.067e-06/0.3768, allocations: 3.953 kB / 0.5173 GB, free: 35.41 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002116/0.3789, allocations: 1.407 MB / 0.5187 GB, free: 34.63 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.773e-06/0.3789, allocations: 4.422 kB / 0.5187 GB, free: 34.63 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001012/0.38, allocations: 190.8 kB / 0.5189 GB, free: 34.62 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002603/0.3802, allocations: 58.22 kB / 0.519 GB, free: 34.6 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.323e-05/0.3803, allocations: 15.58 kB / 0.519 GB, free: 34.59 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001788/0.3821, allocations: 2.978 MB / 0.5219 GB, free: 31.64 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.316e-06/0.3821, allocations: 2.031 kB / 0.5219 GB, free: 31.64 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001717/0.3838, allocations: 1.001 MB / 0.5229 GB, free: 31.09 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003315/0.3842, allocations: 200 kB / 0.523 GB, free: 30.93 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.333e-05/0.3843, allocations: 13.12 kB / 0.5231 GB, free: 30.93 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003696/0.3846, allocations: 20.5 kB / 0.5231 GB, free: 30.91 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.685e-05/0.3848, allocations: 38.84 kB / 0.5231 GB, free: 30.91 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.524e-05/0.3848, allocations: 19.66 kB / 0.5231 GB, free: 30.9 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005299/0.3853, allocations: 426.9 kB / 0.5235 GB, free: 30.71 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3854, allocations: 1.125 kB / 0.5235 GB, free: 30.71 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008116/0.3862, allocations: 202.8 kB / 0.5237 GB, free: 30.69 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 2 (volume.medium.p,volume.medium.T) * 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 (47): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002003/0.3882, allocations: 1.672 MB / 0.5254 GB, free: 29.59 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001332/0.3895, allocations: 0.6786 MB / 0.526 GB, free: 29.36 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/0.3895, allocations: 1.312 kB / 0.526 GB, free: 29.36 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00111/0.3907, allocations: 478.5 kB / 0.5265 GB, free: 29.16 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001745/0.3924, allocations: 388.1 kB / 0.5269 GB, free: 29.05 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008402/0.4008, allocations: 6.755 MB / 0.5335 GB, free: 24.9 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003991/0.4013, allocations: 0.9377 MB / 0.5344 GB, free: 24.09 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0008488/0.4021, allocations: 209.2 kB / 0.5346 GB, free: 24.01 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002842/0.4024, allocations: 231.5 kB / 0.5348 GB, free: 23.83 MB / 382.1 MB Notification: Performance of SimCode: time 6.01e-07/0.4024, allocations: 0 / 0.5348 GB, free: 23.83 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04854/0.451, allocations: 21.95 MB / 0.5562 GB, free: 3.934 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.54/12.99, allocations: 6.344 kB / 0.5562 GB, free: 3.93 MB / 382.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater_res.csv --start-time 0 --stop-time 1.01 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000404 ModelicaTest_4_1_0-beta_om_ModelicaTest_Media_TestsWithFluid_MediaTestModels_LinearFluid_LinearColdWater.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater.pipe 2>&1)