Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_twoPhaseOverall_KC.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.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_twoPhaseOverall_KC,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Fluid_Dissipation_Verifications_HeatTransfer_StraightPipe_kc_twoPhaseOverall_KC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_twoPhaseOverall_KC,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Fluid_Dissipation_Verifications_HeatTransfer_StraightPipe_kc_twoPhaseOverall_KC",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001756/0.001756, allocations: 117.6 kB / 17.78 MB, free: 5.25 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002107/0.002107, allocations: 199.9 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.435/1.435, allocations: 227.4 MB / 247 MB, free: 10.47 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.2285/0.2285, allocations: 46.12 MB / 344.4 MB, free: 11.48 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.002197/0.002197, allocations: 79.88 kB / 481 MB, free: 4.492 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3575/0.3597, allocations: 62.43 MB / 0.5307 GB, free: 13.41 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_twoPhaseOverall_KC): time 0.004337/0.3641, allocations: 2.91 MB / 0.5335 GB, free: 11.11 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.004037/0.3681, allocations: 2.585 MB / 0.536 GB, free: 9.027 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002779/0.3684, allocations: 2.531 kB / 0.536 GB, free: 9.027 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004414/0.3689, allocations: 121.4 kB / 0.5361 GB, free: 8.934 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000446/0.3694, allocations: 226.2 kB / 0.5364 GB, free: 8.758 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001404/0.3708, allocations: 0.5557 MB / 0.5369 GB, free: 8.41 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009851/0.3718, allocations: 0.9363 MB / 0.5378 GB, free: 7.871 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001736/0.372, allocations: 117 kB / 0.5379 GB, free: 7.812 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004622/0.3724, allocations: 338.2 kB / 0.5382 GB, free: 7.621 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004922/0.3729, allocations: 410.8 kB / 0.5386 GB, free: 7.367 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.136e-05/0.373, allocations: 23.84 kB / 0.5387 GB, free: 7.367 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001572/0.3746, allocations: 0.9538 MB / 0.5396 GB, free: 6.797 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002757/0.3749, allocations: 268.6 kB / 0.5398 GB, free: 6.621 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004505/0.3753, allocations: 459.7 kB / 0.5403 GB, free: 6.328 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001844/0.3772, allocations: 1.396 MB / 0.5416 GB, free: 5.426 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.3772, allocations: 1.156 kB / 0.5416 GB, free: 5.426 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.3772, allocations: 3.938 kB / 0.5417 GB, free: 5.422 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.57e-05/0.3772, allocations: 0 / 0.5417 GB, free: 5.422 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 275 * Number of variables: 275 Notification: Performance of Generate backend data structure: time 0.002387/0.3796, allocations: 1.497 MB / 0.5431 GB, free: 4.27 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.905e-05/0.3797, allocations: 9.75 kB / 0.5431 GB, free: 4.27 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001846/0.3799, allocations: 170 kB / 0.5433 GB, free: 4.133 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008405/0.3807, allocations: 194.2 kB / 0.5435 GB, free: 4.043 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008244/0.3816, allocations: 0.5212 MB / 0.544 GB, free: 3.613 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.157e-05/0.3816, allocations: 72.56 kB / 0.544 GB, free: 3.582 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001147/0.3818, allocations: 91.97 kB / 0.5441 GB, free: 3.551 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002076/0.3838, allocations: 1.425 MB / 0.5455 GB, free: 2.32 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.257e-05/0.3839, allocations: 3.938 kB / 0.5455 GB, free: 2.316 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.402e-05/0.3839, allocations: 36 kB / 0.5456 GB, free: 2.281 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.409e-05/0.384, allocations: 74.06 kB / 0.5456 GB, free: 2.207 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002227/0.3863, allocations: 1.37 MB / 0.547 GB, free: 0.8281 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004551/0.3908, allocations: 3.087 MB / 0.55 GB, free: 13.65 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001355/0.3922, allocations: 0.7147 MB / 0.5507 GB, free: 12.88 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006883/0.3929, allocations: 289.4 kB / 0.551 GB, free: 12.58 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.546e-05/0.393, allocations: 20.16 kB / 0.551 GB, free: 12.56 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.137e-05/0.3931, allocations: 46.73 kB / 0.551 GB, free: 12.51 MB / 414.1 MB Notification: Performance of pre-optimization done (n=32): time 2.504e-06/0.3931, allocations: 0 / 0.551 GB, free: 12.51 MB / 414.1 MB Notification: Performance of matching and sorting (n=32): time 0.002489/0.3956, allocations: 0.9318 MB / 0.5519 GB, free: 11.57 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001251/0.3957, allocations: 188.1 kB / 0.5521 GB, free: 11.34 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002026/0.3977, allocations: 1.362 MB / 0.5534 GB, free: 9.965 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.881e-05/0.3978, allocations: 33.7 kB / 0.5535 GB, free: 9.926 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005596/0.3984, allocations: 0.5481 MB / 0.554 GB, free: 9.375 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001429/0.3985, allocations: 123 kB / 0.5541 GB, free: 9.254 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000269/0.3988, allocations: 158.2 kB / 0.5543 GB, free: 9.094 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002122/0.399, allocations: 334 kB / 0.5546 GB, free: 8.762 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007271/0.3998, allocations: 305 kB / 0.5549 GB, free: 8.465 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009821/0.4007, allocations: 0.6169 MB / 0.5555 GB, free: 7.688 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001782/0.4025, allocations: 0.9799 MB / 0.5565 GB, free: 6.551 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.402e-06/0.4026, allocations: 4 kB / 0.5565 GB, free: 6.547 MB / 414.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.002369/0.4049, allocations: 1.04 MB / 0.5575 GB, free: 5.5 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.884e-05/0.405, allocations: 10.66 kB / 0.5575 GB, free: 5.492 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.768e-05/0.405, allocations: 12 kB / 0.5575 GB, free: 5.48 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.297e-05/0.405, allocations: 16 kB / 0.5575 GB, free: 5.465 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000602/0.4056, allocations: 163.6 kB / 0.5577 GB, free: 5.305 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.347e-05/0.4057, allocations: 23.92 kB / 0.5577 GB, free: 5.281 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009651/0.4066, allocations: 174.7 kB / 0.5579 GB, free: 5.109 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.58e-05/0.4067, allocations: 47.98 kB / 0.5579 GB, free: 5.062 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 51 * Number of states: 0 () * Number of discrete variables: 26 (IN_var_3[6].target,IN_var_3[5].target,IN_var_3[4].target,IN_var_3[3].target,IN_var_3[2].target,IN_var_3[1].target,IN_con_3[6].target,IN_con_3[5].target,IN_con_3[4].target,IN_con_3[3].target,IN_con_3[2].target,IN_con_3[1].target,IN_var_2.target,IN_con_2.target,IN_var_1[6].target,IN_var_1[5].target,IN_var_1[4].target,IN_var_1[3].target,IN_var_1[2].target,IN_var_1[1].target,IN_con_1[6].target,IN_con_1[5].target,IN_con_1[4].target,IN_con_1[3].target,IN_con_1[2].target,IN_con_1[1].target) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (79): * Single equations (assignments): 79 * 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.0005707/0.4073, allocations: 359.6 kB / 0.5582 GB, free: 4.703 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002672/0.4076, allocations: 131.1 kB / 0.5584 GB, free: 4.574 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001508/0.4091, allocations: 0.7509 MB / 0.5591 GB, free: 3.812 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.775e-06/0.4091, allocations: 11.94 kB / 0.5591 GB, free: 3.801 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.029e-05/0.4091, allocations: 3.984 kB / 0.5591 GB, free: 3.797 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.223e-06/0.4092, allocations: 7.938 kB / 0.5591 GB, free: 3.789 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001473/0.4106, allocations: 0.7141 MB / 0.5598 GB, free: 3.02 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.673e-06/0.4106, allocations: 11.94 kB / 0.5598 GB, free: 3.008 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004407/0.4111, allocations: 99.86 kB / 0.5599 GB, free: 2.91 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.165e-06/0.4111, allocations: 4 kB / 0.5599 GB, free: 2.906 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.978e-05/0.4112, allocations: 12 kB / 0.5599 GB, free: 2.895 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.272e-06/0.4112, allocations: 4 kB / 0.5599 GB, free: 2.891 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.344e-06/0.4112, allocations: 0 / 0.5599 GB, free: 2.891 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001779/0.413, allocations: 1.169 MB / 0.5611 GB, free: 1.699 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003251/0.4133, allocations: 208.1 kB / 0.5613 GB, free: 1.477 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001371/0.4134, allocations: 11.98 kB / 0.5613 GB, free: 1.465 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005849/0.414, allocations: 31.97 kB / 0.5613 GB, free: 1.434 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001183/0.4142, allocations: 43.89 kB / 0.5614 GB, free: 1.391 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.153e-05/0.4142, allocations: 20 kB / 0.5614 GB, free: 1.371 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001199/0.4154, allocations: 0.9352 MB / 0.5623 GB, free: 444 kB / 414.1 MB Notification: Performance of sort global known variables: time 3.41e-07/0.4154, allocations: 0 / 0.5623 GB, free: 444 kB / 414.1 MB Notification: Performance of remove unused functions: time 0.00116/0.4166, allocations: 307.4 kB / 0.5626 GB, free: 136 kB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * 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 (32): * Single equations (assignments): 32 * 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 Backend phase and start with SimCode phase: time 0.002511/0.4191, allocations: 1.868 MB / 0.5644 GB, free: 14.23 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.00167/0.4208, allocations: 0.702 MB / 0.5651 GB, free: 13.53 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.297e-06/0.4208, allocations: 4.125 kB / 0.5651 GB, free: 13.53 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007013/0.4215, allocations: 307.5 kB / 0.5654 GB, free: 13.23 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001443/0.423, allocations: 264 kB / 0.5657 GB, free: 12.97 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01598/0.439, allocations: 11.2 MB / 0.5766 GB, free: 1.262 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008266/0.4398, allocations: 1.157 MB / 0.5777 GB, free: 76 kB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0009815/0.4408, allocations: 394.6 kB / 0.5781 GB, free: 15.68 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005638/0.4414, allocations: 391.3 kB / 0.5785 GB, free: 15.3 MB / 446.1 MB Notification: Performance of SimCode: time 1.072e-06/0.4414, allocations: 0 / 0.5785 GB, free: 15.3 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06024/0.5016, allocations: 27.86 MB / 0.6057 GB, free: 3.777 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.01/10.51, allocations: 8.766 kB / 0.6057 GB, free: 3.77 MB / 462.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_twoPhaseOverall_KC.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_twoPhaseOverall_KC.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_twoPhaseOverall_KC.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_twoPhaseOverall_KC.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_twoPhaseOverall_KC_res.csv --start-time 0 --stop-time 1.01 --timeout 50 --relative-tolerance 1e-05 --interface-type ModelExchange --solver CVode --output-interval 0.000404 ModelicaTest_4_1_0-beta_om_ModelicaTest_Fluid_Dissipation_Verifications_HeatTransfer_StraightPipe_kc_twoPhaseOverall_KC.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_twoPhaseOverall_KC.pipe 2>&1)