Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermalSeparation_ThermalSeparation.Examples.Testing.Pump.PumpSystem.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/ThermalSeparation 0.2.0-master/package.mo", uses=false) Using package ThermalSeparation with version 0.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermalSeparation 0.2.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(ThermalSeparation.Examples.Testing.Pump.PumpSystem,fileNamePrefix="ThermalSeparation_ThermalSeparation_Examples_Testing_Pump_PumpSystem",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermalSeparation.Examples.Testing.Pump.PumpSystem,fileNamePrefix="ThermalSeparation_ThermalSeparation_Examples_Testing_Pump_PumpSystem",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.001137/0.001137, allocations: 105.1 kB / 16.27 MB, free: 6.316 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.001105/0.001105, allocations: 188.1 kB / 17.19 MB, free: 5.93 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.309/1.309, allocations: 222.9 MB / 240.9 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermalSeparation 0.2.0-master/package.mo): time 0.4125/0.4125, allocations: 64.93 MB / 356 MB, free: 14.82 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001236/0.001236, allocations: 64 kB / 430.6 MB, free: 5.211 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1054/0.1067, allocations: 63.54 MB / 494.2 MB, free: 5.645 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ThermalSeparation.Examples.Testing.Pump.PumpSystem): time 0.007757/0.1145, allocations: 7.384 MB / 0.4898 GB, free: 14.23 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.005668/0.1202, allocations: 4.38 MB / 0.4941 GB, free: 9.828 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005055/0.1207, allocations: 8 kB / 0.4941 GB, free: 9.82 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001233/0.122, allocations: 0.563 MB / 0.4946 GB, free: 9.254 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001198/0.1232, allocations: 0.6987 MB / 0.4953 GB, free: 8.551 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009303/0.1242, allocations: 0.5228 MB / 0.4958 GB, free: 8.027 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002287/0.1265, allocations: 2.462 MB / 0.4982 GB, free: 5.559 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008544/0.1273, allocations: 0.7235 MB / 0.4989 GB, free: 4.82 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000955/0.1283, allocations: 0.8724 MB / 0.4998 GB, free: 3.945 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001259/0.1296, allocations: 1.043 MB / 0.5008 GB, free: 2.898 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002865/0.1299, allocations: 208 kB / 0.501 GB, free: 2.695 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003498/0.1302, allocations: 204 kB / 0.5012 GB, free: 2.496 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006448/0.1309, allocations: 0.7949 MB / 0.502 GB, free: 1.699 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001009/0.1319, allocations: 1.093 MB / 0.5031 GB, free: 0.6016 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1794/0.3113, allocations: 3.013 MB / 0.506 GB, free: 16.48 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.171e-06/0.3114, allocations: 0 / 0.506 GB, free: 16.48 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.244e-06/0.3114, allocations: 1.141 kB / 0.506 GB, free: 16.48 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.598e-05/0.3115, allocations: 0 / 0.506 GB, free: 16.48 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: 546 * Number of variables: 546 Notification: Performance of Generate backend data structure: time 0.004215/0.3157, allocations: 2.161 MB / 0.5081 GB, free: 15.6 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.807e-05/0.3157, allocations: 8.688 kB / 0.5081 GB, free: 15.6 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003527/0.3161, allocations: 298.9 kB / 0.5084 GB, free: 15.55 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003275/0.3164, allocations: 198.1 kB / 0.5086 GB, free: 15.45 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001042/0.3175, allocations: 0.7492 MB / 0.5093 GB, free: 15.15 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.001e-05/0.3176, allocations: 150 kB / 0.5095 GB, free: 15.14 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007277/0.3183, allocations: 271.8 kB / 0.5097 GB, free: 15.14 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003854/0.3222, allocations: 2.731 MB / 0.5124 GB, free: 14.61 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.308e-05/0.3222, allocations: 10.41 kB / 0.5124 GB, free: 14.61 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001991/0.3224, allocations: 83.84 kB / 0.5125 GB, free: 14.61 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001562/0.3226, allocations: 149.9 kB / 0.5126 GB, free: 14.61 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003604/0.3262, allocations: 2.181 MB / 0.5148 GB, free: 14.05 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.01017/0.3364, allocations: 10.85 MB / 0.5253 GB, free: 6.086 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002072/0.3385, allocations: 2.784 MB / 0.5281 GB, free: 3.523 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00101/0.3395, allocations: 0.6535 MB / 0.5287 GB, free: 3.234 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.093e-05/0.3396, allocations: 20.31 kB / 0.5287 GB, free: 3.23 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.404e-05/0.3396, allocations: 48.97 kB / 0.5288 GB, free: 3.18 MB / 382.1 MB Notification: Performance of pre-optimization done (n=115): time 3.156e-06/0.3396, allocations: 5.969 kB / 0.5288 GB, free: 3.176 MB / 382.1 MB Notification: Performance of matching and sorting (n=140): time 0.02036/0.36, allocations: 7.607 MB / 0.5362 GB, free: 14.71 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.004647/0.3647, allocations: 4.104 MB / 0.5402 GB, free: 10.89 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001501/0.3662, allocations: 1.083 MB / 0.5413 GB, free: 10.27 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002/0.3664, allocations: 51.78 kB / 0.5413 GB, free: 10.21 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005812/0.367, allocations: 0.9389 MB / 0.5422 GB, free: 9.383 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004562/0.3675, allocations: 0.4949 MB / 0.5427 GB, free: 8.957 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006898/0.3682, allocations: 434.6 kB / 0.5431 GB, free: 8.707 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001314/0.3683, allocations: 342.4 kB / 0.5435 GB, free: 8.375 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001623/0.3699, allocations: 0.9163 MB / 0.5444 GB, free: 7.91 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002061/0.372, allocations: 1.882 MB / 0.5462 GB, free: 6.145 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00372/0.3757, allocations: 2.95 MB / 0.5491 GB, free: 3.887 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.206e-05/0.3758, allocations: 8.375 kB / 0.5491 GB, free: 3.887 MB / 398.1 MB Notification: Performance of matching and sorting (n=301) (initialization): time 0.008846/0.3846, allocations: 3.711 MB / 0.5527 GB, free: 0.7969 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.023e-05/0.3847, allocations: 20 kB / 0.5527 GB, free: 0.7773 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.653e-05/0.3847, allocations: 32 kB / 0.5528 GB, free: 0.7461 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004852/0.3896, allocations: 0.9857 MB / 0.5537 GB, free: 15.75 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003061/0.3926, allocations: 0.5618 MB / 0.5543 GB, free: 15.23 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01143/0.4041, allocations: 6.672 MB / 0.5608 GB, free: 8.398 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002122/0.4062, allocations: 159.8 kB / 0.5609 GB, free: 8.242 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002065/0.4064, allocations: 120 kB / 0.5611 GB, free: 8.125 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 147 * Number of states: 0 () * Number of discrete variables: 5 (tank.mediumLiquidIn.state.phase,tank.mediumLiquid.state.phase,sourceLiquid.medium.state.phase,idealPumpControlledVdot.mediumLiquidIn.state.phase,idealPumpControlledVdot.mediumLiquid.state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (269): * Single equations (assignments): 264 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(9,14,63.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,3), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0009373/0.4074, allocations: 0.566 MB / 0.5616 GB, free: 7.594 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003231/0.4077, allocations: 146.3 kB / 0.5617 GB, free: 7.449 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008282/0.416, allocations: 2.854 MB / 0.5645 GB, free: 4.605 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.007443/0.4235, allocations: 2.487 MB / 0.567 GB, free: 2.121 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.671e-05/0.4235, allocations: 12 kB / 0.567 GB, free: 2.109 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.011e-05/0.4235, allocations: 11.91 kB / 0.567 GB, free: 2.098 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01398/0.4375, allocations: 6.078 MB / 0.5729 GB, free: 11.96 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.828e-06/0.4375, allocations: 4 kB / 0.5729 GB, free: 11.96 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00202/0.4396, allocations: 283.7 kB / 0.5732 GB, free: 11.7 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0058/0.4454, allocations: 1.199 MB / 0.5744 GB, free: 10.49 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001898/0.4456, allocations: 43.97 kB / 0.5744 GB, free: 10.45 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01007/0.4557, allocations: 6.324 MB / 0.5806 GB, free: 3.922 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.004971/0.4607, allocations: 3.971 MB / 0.5845 GB, free: 15.64 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01016/0.4708, allocations: 4.339 MB / 0.5887 GB, free: 11.21 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005593/0.4714, allocations: 219.5 kB / 0.5889 GB, free: 10.98 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002253/0.4717, allocations: 35.98 kB / 0.5889 GB, free: 10.94 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001366/0.473, allocations: 79.91 kB / 0.589 GB, free: 10.86 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003293/0.4734, allocations: 120.7 kB / 0.5891 GB, free: 10.74 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001063/0.4735, allocations: 47.97 kB / 0.5892 GB, free: 10.7 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0009108/0.4744, allocations: 0.7039 MB / 0.5899 GB, free: 9.98 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4744, allocations: 4 kB / 0.5899 GB, free: 9.977 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002178/0.4766, allocations: 0.5508 MB / 0.5904 GB, free: 9.426 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 26 * Number of states: 4 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],tank.level) * 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 (126): * Single equations (assignments): 122 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(7,10,61.2%)} * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,3), (5,3), (1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.009731/0.4863, allocations: 4.937 MB / 0.5952 GB, free: 4.395 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007689/0.494, allocations: 2.919 MB / 0.5981 GB, free: 1.465 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.869e-06/0.4941, allocations: 0 / 0.5981 GB, free: 1.465 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00396/0.498, allocations: 1.387 MB / 0.5994 GB, free: 68 kB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00249/0.5005, allocations: 425.1 kB / 0.5998 GB, free: 15.66 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03087/0.5314, allocations: 18.56 MB / 0.618 GB, free: 11.35 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001145/0.5326, allocations: 1.415 MB / 0.6193 GB, free: 9.906 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001792/0.5344, allocations: 455.2 kB / 0.6198 GB, free: 9.457 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000922/0.5353, allocations: 0.6476 MB / 0.6204 GB, free: 8.809 MB / 478.1 MB Notification: Performance of SimCode: time 5.71e-07/0.5353, allocations: 0 / 0.6204 GB, free: 8.809 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07169/0.607, allocations: 42.4 MB / 0.6618 GB, free: 14.71 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.86/12.47, allocations: 7.984 kB / 0.6618 GB, free: 14.71 MB / 0.5137 GB (rm -f ThermalSeparation_ThermalSeparation.Examples.Testing.Pump.PumpSystem.pipe ; mkfifo ThermalSeparation_ThermalSeparation.Examples.Testing.Pump.PumpSystem.pipe ; head -c 1048576 < ThermalSeparation_ThermalSeparation.Examples.Testing.Pump.PumpSystem.pipe >> ../files/ThermalSeparation_ThermalSeparation.Examples.Testing.Pump.PumpSystem.sim & python3 -m fmpy simulate --output-file ThermalSeparation_ThermalSeparation.Examples.Testing.Pump.PumpSystem_res.csv --start-time 0 --stop-time 1500 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.6 ThermalSeparation_ThermalSeparation_Examples_Testing_Pump_PumpSystem.fmu > ThermalSeparation_ThermalSeparation.Examples.Testing.Pump.PumpSystem.pipe 2>&1)