Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Thermal.FluidHeatFlow.Examples.PumpDropOut.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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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(Modelica.Thermal.FluidHeatFlow.Examples.PumpDropOut,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Thermal_FluidHeatFlow_Examples_PumpDropOut",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.PumpDropOut,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Thermal_FluidHeatFlow_Examples_PumpDropOut",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001835/0.001835, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002075/0.002075, allocations: 210.4 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.56/1.56, allocations: 227.7 MB / 247 MB, free: 10.37 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex 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. Warning: Requested package ModelicaServices 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.001899/0.001899, allocations: 66.17 kB / 307.3 MB, free: 412 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1268/0.1287, allocations: 50.54 MB / 357.9 MB, free: 13.84 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.PumpDropOut): time 0.008343/0.1371, allocations: 3.751 MB / 361.6 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003347/0.1405, allocations: 1.024 MB / 362.6 MB, free: 9.043 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007798/0.1413, allocations: 8 kB / 362.7 MB, free: 9.035 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007284/0.1421, allocations: 119 kB / 362.8 MB, free: 8.918 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001032/0.1432, allocations: 198.3 kB / 363 MB, free: 8.723 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005873/0.1438, allocations: 139.8 kB / 363.1 MB, free: 8.586 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00145/0.1452, allocations: 0.7 MB / 363.8 MB, free: 7.887 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005628/0.1458, allocations: 214.9 kB / 364 MB, free: 7.672 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007966/0.1466, allocations: 263.1 kB / 364.3 MB, free: 7.414 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006942/0.1473, allocations: 302.7 kB / 364.6 MB, free: 7.117 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001877/0.1476, allocations: 63.94 kB / 364.6 MB, free: 7.055 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002891/0.1479, allocations: 60 kB / 364.7 MB, free: 6.996 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001841/0.148, allocations: 135.5 kB / 364.8 MB, free: 6.863 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005669/0.1486, allocations: 322.5 kB / 365.1 MB, free: 6.547 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001145/0.1498, allocations: 0.7046 MB / 365.8 MB, free: 5.84 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.651e-06/0.1498, allocations: 0 / 365.8 MB, free: 5.84 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.1498, allocations: 4 kB / 365.8 MB, free: 5.836 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.437e-05/0.1499, allocations: 0 / 365.8 MB, free: 5.836 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 85 * Number of variables: 85 Notification: Performance of Generate backend data structure: time 0.002937/0.1528, allocations: 0.9169 MB / 366.8 MB, free: 4.859 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.96e-05/0.1529, allocations: 12.03 kB / 366.8 MB, free: 4.848 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002192/0.1531, allocations: 79.7 kB / 366.8 MB, free: 4.762 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002414/0.1534, allocations: 68.19 kB / 366.9 MB, free: 4.695 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001092/0.1545, allocations: 434.8 kB / 367.3 MB, free: 4.23 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002851/0.1548, allocations: 87.22 kB / 367.4 MB, free: 4.141 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.56e-05/0.1549, allocations: 36.38 kB / 367.5 MB, free: 4.105 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001528/0.1564, allocations: 0.5253 MB / 368 MB, free: 3.523 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.18e-05/0.1564, allocations: 0 / 368 MB, free: 3.523 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.655e-05/0.1565, allocations: 16 kB / 368 MB, free: 3.508 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.406e-05/0.1565, allocations: 8 kB / 368 MB, free: 3.5 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001504/0.158, allocations: 387.7 kB / 368.4 MB, free: 3.121 MB / 302.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.003323/0.1614, allocations: 1.374 MB / 369.8 MB, free: 1.656 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001378/0.1628, allocations: 464.6 kB / 370.2 MB, free: 1.172 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00081/0.1636, allocations: 212.7 kB / 370.4 MB, free: 0.9609 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.002e-05/0.1637, allocations: 7.984 kB / 370.4 MB, free: 0.9531 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.281e-05/0.1637, allocations: 46.56 kB / 370.5 MB, free: 0.8984 MB / 302.1 MB Notification: Performance of pre-optimization done (n=37): time 2.925e-06/0.1638, allocations: 0 / 370.5 MB, free: 0.8984 MB / 302.1 MB Notification: Performance of matching and sorting (n=37): time 0.002709/0.1665, allocations: 0.7737 MB / 371.2 MB, free: 76 kB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.2135/0.3799, allocations: 447 kB / 371.7 MB, free: 19.8 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007111/0.3807, allocations: 473.7 kB / 372.1 MB, free: 19.68 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001306/0.3808, allocations: 36.83 kB / 372.2 MB, free: 19.65 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001902/0.381, allocations: 253.5 kB / 372.4 MB, free: 19.57 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001211/0.3812, allocations: 130.1 kB / 372.6 MB, free: 19.55 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001534/0.3813, allocations: 80.45 kB / 372.6 MB, free: 19.53 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.828e-05/0.3814, allocations: 363.4 kB / 373 MB, free: 19.21 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004897/0.3819, allocations: 152.2 kB / 373.1 MB, free: 19.21 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005579/0.3825, allocations: 300.6 kB / 373.4 MB, free: 19.08 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008845/0.3834, allocations: 381.3 kB / 373.8 MB, free: 19.02 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.387e-06/0.3834, allocations: 1.406 kB / 373.8 MB, free: 19.02 MB / 302.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.001231/0.3846, allocations: 0.5111 MB / 374.3 MB, free: 18.81 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.474e-05/0.3847, allocations: 33.94 kB / 374.4 MB, free: 18.78 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.085e-06/0.3847, allocations: 1.125 kB / 374.4 MB, free: 18.78 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001897/0.3849, allocations: 57.75 kB / 374.4 MB, free: 18.75 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004722/0.3854, allocations: 89.36 kB / 374.5 MB, free: 18.75 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002135/0.3875, allocations: 2.965 MB / 377.5 MB, free: 15.85 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007008/0.3882, allocations: 60.73 kB / 377.5 MB, free: 15.83 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.344e-05/0.3883, allocations: 8.812 kB / 377.5 MB, free: 15.83 MB / 302.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 (39): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(3,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0002276/0.3885, allocations: 182.1 kB / 377.7 MB, free: 15.68 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.52e-05/0.3886, allocations: 59.84 kB / 377.8 MB, free: 15.64 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001035/0.3887, allocations: 55.95 kB / 377.8 MB, free: 15.61 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.921e-06/0.3887, allocations: 5.75 kB / 377.8 MB, free: 15.61 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.18e-06/0.3887, allocations: 0 / 377.8 MB, free: 15.61 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001052/0.3898, allocations: 0.762 MB / 378.6 MB, free: 14.99 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001827/0.3916, allocations: 1.076 MB / 379.7 MB, free: 14.38 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.869e-06/0.3917, allocations: 7.281 kB / 379.7 MB, free: 14.37 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004567/0.3921, allocations: 93.91 kB / 379.8 MB, free: 14.37 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.438e-06/0.3921, allocations: 1.375 kB / 379.8 MB, free: 14.37 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.497e-05/0.3922, allocations: 10.38 kB / 379.8 MB, free: 14.36 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.216e-06/0.3922, allocations: 1.375 kB / 379.8 MB, free: 14.36 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.943e-06/0.3922, allocations: 5.25 kB / 379.8 MB, free: 14.36 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001391/0.3936, allocations: 0.7201 MB / 380.5 MB, free: 14.01 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002029/0.3938, allocations: 176 kB / 380.7 MB, free: 13.85 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.113e-05/0.3939, allocations: 9 kB / 380.7 MB, free: 13.85 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000402/0.3943, allocations: 36.67 kB / 380.7 MB, free: 13.84 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.629e-05/0.3944, allocations: 27.47 kB / 380.7 MB, free: 13.83 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.103e-05/0.3944, allocations: 6.844 kB / 380.8 MB, free: 13.83 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003957/0.3948, allocations: 341.7 kB / 381.1 MB, free: 13.67 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3948, allocations: 0 / 381.1 MB, free: 13.67 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004915/0.3953, allocations: 140.9 kB / 381.2 MB, free: 13.65 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (pipe.T,heatCapacitor.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 (37): * Single equations (assignments): 37 * 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.001582/0.3969, allocations: 1.267 MB / 382.5 MB, free: 12.76 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001356/0.3983, allocations: 0.6997 MB / 383.2 MB, free: 12.34 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.308e-06/0.3983, allocations: 1.188 kB / 383.2 MB, free: 12.34 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004422/0.3987, allocations: 195.7 kB / 383.4 MB, free: 12.29 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007084/0.3994, allocations: 146.8 kB / 383.5 MB, free: 12.24 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007/0.4065, allocations: 4.89 MB / 388.4 MB, free: 9.465 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003337/0.4068, allocations: 0.8366 MB / 389.3 MB, free: 8.758 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003275/0.4072, allocations: 71.09 kB / 389.3 MB, free: 8.742 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002322/0.4074, allocations: 180.6 kB / 389.5 MB, free: 8.613 MB / 302.1 MB Notification: Performance of SimCode: time 5.52e-07/0.4074, allocations: 0 / 389.5 MB, free: 8.613 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04263/0.4501, allocations: 13.86 MB / 403.4 MB, free: 0.7422 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.76/12.21, allocations: 20.75 kB / 403.4 MB, free: 0.7266 MB / 302.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Thermal.FluidHeatFlow.Examples.PumpDropOut.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Thermal.FluidHeatFlow.Examples.PumpDropOut.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Thermal.FluidHeatFlow.Examples.PumpDropOut.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Thermal.FluidHeatFlow.Examples.PumpDropOut.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Thermal.FluidHeatFlow.Examples.PumpDropOut_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_4_1_0-beta_om_Modelica_Thermal_FluidHeatFlow_Examples_PumpDropOut.fmu > Modelica_4.1.0-beta.om_Modelica.Thermal.FluidHeatFlow.Examples.PumpDropOut.pipe 2>&1)