Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.HeatingSystem.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) 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(Modelica.Fluid.Examples.HeatingSystem,fileNamePrefix="Modelica_4_0_0_Modelica_Fluid_Examples_HeatingSystem",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.HeatingSystem,fileNamePrefix="Modelica_4_0_0_Modelica_Fluid_Examples_HeatingSystem",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.001647/0.001647, allocations: 110 kB / 16.92 MB, free: 6.332 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.00246/0.002459, allocations: 191.4 kB / 17.85 MB, free: 5.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.494/2.494, allocations: 222.9 MB / 241.5 MB, free: 15.31 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001753/0.001753, allocations: 43.53 kB / 300.7 MB, free: 5.844 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1573/0.159, allocations: 49.44 MB / 350.1 MB, free: 4.395 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.HeatingSystem): time 0.5873/0.7464, allocations: 90.1 MB / 440.2 MB, free: 10.17 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0612/0.8077, allocations: 21.31 MB / 461.6 MB, free: 4.801 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004778/0.8125, allocations: 87.44 kB / 461.6 MB, free: 4.715 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004894/0.8174, allocations: 0.9317 MB / 462.6 MB, free: 3.777 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01583/0.8334, allocations: 3.729 MB / 466.3 MB, free: 32 kB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01967/0.8531, allocations: 5.669 MB / 472 MB, free: 10.36 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01434/0.8675, allocations: 7.05 MB / 479 MB, free: 3.305 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005387/0.8729, allocations: 1.835 MB / 480.9 MB, free: 1.457 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.7304/1.603, allocations: 74.88 MB / 0.5427 GB, free: 61.31 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.09919/1.703, allocations: 31.92 MB / 0.5739 GB, free: 51.6 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002233/1.705, allocations: 247.4 kB / 0.5741 GB, free: 51.6 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02883/1.734, allocations: 6.082 MB / 0.5801 GB, free: 50 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00379/1.738, allocations: 1.095 MB / 0.5811 GB, free: 49.36 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005875/1.744, allocations: 1.497 MB / 0.5826 GB, free: 48.58 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01799/1.762, allocations: 5.458 MB / 0.5879 GB, free: 44.5 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.214e-05/1.762, allocations: 2 kB / 0.5879 GB, free: 44.5 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.405e-06/1.762, allocations: 4 kB / 0.5879 GB, free: 44.5 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0001732/1.762, allocations: 0 / 0.5879 GB, free: 44.5 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 538 * Number of variables: 538 Notification: Performance of Generate backend data structure: time 0.01801/1.78, allocations: 3.489 MB / 0.5913 GB, free: 41.47 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.876e-05/1.78, allocations: 12.03 kB / 0.5913 GB, free: 41.46 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001276/1.781, allocations: 348.4 kB / 0.5917 GB, free: 41.24 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002049/1.783, allocations: 314.8 kB / 0.592 GB, free: 40.93 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006012/1.79, allocations: 1.574 MB / 0.5935 GB, free: 39.69 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003598/1.79, allocations: 220.4 kB / 0.5937 GB, free: 39.54 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001075/1.791, allocations: 195.3 kB / 0.5939 GB, free: 39.41 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01027/1.801, allocations: 3.313 MB / 0.5971 GB, free: 36.97 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.449e-05/1.802, allocations: 7.844 kB / 0.5972 GB, free: 36.97 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004465/1.802, allocations: 85.09 kB / 0.5972 GB, free: 36.95 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005098/1.803, allocations: 254.6 kB / 0.5975 GB, free: 36.73 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01007/1.813, allocations: 3.109 MB / 0.6005 GB, free: 34.66 MB / 446.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.03738/1.85, allocations: 13.85 MB / 0.614 GB, free: 22.21 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007538/1.858, allocations: 2.215 MB / 0.6162 GB, free: 20 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003684/1.861, allocations: 1.349 MB / 0.6175 GB, free: 18.65 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01539/1.877, allocations: 5.86 MB / 0.6232 GB, free: 12.32 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.819e-05/1.877, allocations: 54.38 kB / 0.6233 GB, free: 12.26 MB / 446.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001698/1.879, allocations: 173 kB / 0.6235 GB, free: 12.09 MB / 446.1 MB Notification: Performance of pre-optimization done (n=171): time 9.217e-06/1.879, allocations: 4 kB / 0.6235 GB, free: 12.09 MB / 446.1 MB Notification: Performance of matching and sorting (n=197): time 0.03944/1.918, allocations: 9.149 MB / 0.6324 GB, free: 2.879 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.907e-05/1.918, allocations: 77.41 kB / 0.6325 GB, free: 2.789 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003993/1.922, allocations: 1.841 MB / 0.6343 GB, free: 0.9062 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000772/1.923, allocations: 61.7 kB / 0.6343 GB, free: 0.8398 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001203/1.924, allocations: 1.063 MB / 0.6354 GB, free: 15.76 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001506/1.926, allocations: 0.6825 MB / 0.636 GB, free: 15.09 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001438/1.927, allocations: 460.4 kB / 0.6365 GB, free: 14.63 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001693/1.928, allocations: 301.1 kB / 0.6368 GB, free: 14.33 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003848/1.931, allocations: 1.233 MB / 0.638 GB, free: 13.09 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005038/1.936, allocations: 1.806 MB / 0.6397 GB, free: 11.05 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009959/1.946, allocations: 3.157 MB / 0.6428 GB, free: 7.727 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.167e-05/1.947, allocations: 5.375 kB / 0.6428 GB, free: 7.723 MB / 462.1 MB Notification: Performance of matching and sorting (n=299) (initialization): time 0.01562/1.962, allocations: 4.292 MB / 0.647 GB, free: 3.52 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.611e-05/1.962, allocations: 16 kB / 0.647 GB, free: 3.504 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.209e-05/1.963, allocations: 19.09 kB / 0.647 GB, free: 3.488 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02516/1.988, allocations: 3.65 MB / 0.6506 GB, free: 15.85 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002554/1.99, allocations: 335.5 kB / 0.6509 GB, free: 15.54 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01499/2.005, allocations: 3.949 MB / 0.6548 GB, free: 11.6 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004823/2.01, allocations: 91.95 kB / 0.6549 GB, free: 11.51 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008532/2.011, allocations: 116 kB / 0.655 GB, free: 11.39 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.006788/2.018, allocations: 1.672 MB / 0.6566 GB, free: 9.715 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.005423/2.023, allocations: 1.756 MB / 0.6583 GB, free: 7.715 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.009962/2.034, allocations: 3.047 MB / 0.6613 GB, free: 4.496 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.851e-05/2.034, allocations: 8 kB / 0.6613 GB, free: 4.488 MB / 478.1 MB Notification: Performance of matching and sorting (n=299) (initialization_lambda0): time 0.01561/2.049, allocations: 4.028 MB / 0.6652 GB, free: 0.5547 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.648e-05/2.049, allocations: 18.91 kB / 0.6653 GB, free: 0.5391 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.549e-05/2.049, allocations: 19.98 kB / 0.6653 GB, free: 0.5195 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01694/2.066, allocations: 2.76 MB / 0.668 GB, free: 13.77 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003202/2.07, allocations: 372.1 kB / 0.6683 GB, free: 13.43 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01062/2.08, allocations: 3.469 MB / 0.6717 GB, free: 9.961 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004161/2.085, allocations: 95.88 kB / 0.6718 GB, free: 9.867 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008996/2.086, allocations: 112.6 kB / 0.6719 GB, free: 9.758 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 78 * Number of states: 0 () * Number of discrete variables: 4 (tank.inFlow[2],tank.inFlow[1],tank.regularFlow[2],tank.regularFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (175): * Single equations (assignments): 174 * 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 {(18,107)} Notification: Performance of prepare postOptimizeDAE: time 0.001403/2.087, allocations: 317 kB / 0.6722 GB, free: 9.465 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001239/2.088, allocations: 221.4 kB / 0.6724 GB, free: 9.246 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01163/2.1, allocations: 3.955 MB / 0.6763 GB, free: 5.293 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.231e-05/2.1, allocations: 28 kB / 0.6763 GB, free: 5.266 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.672e-05/2.1, allocations: 0 / 0.6763 GB, free: 5.266 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.008117/2.108, allocations: 3.37 MB / 0.6796 GB, free: 1.816 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01959/2.128, allocations: 6.308 MB / 0.6858 GB, free: 11.49 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.847e-05/2.128, allocations: 0 / 0.6858 GB, free: 11.49 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001663/2.129, allocations: 317.6 kB / 0.6861 GB, free: 11.2 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005015/2.134, allocations: 1.172 MB / 0.6872 GB, free: 10 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009522/2.136, allocations: 71.95 kB / 0.6873 GB, free: 9.934 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01372/2.149, allocations: 11.07 MB / 0.6981 GB, free: 14.15 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.37e-06/2.149, allocations: 4.031 kB / 0.6981 GB, free: 14.14 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01499/2.164, allocations: 5.187 MB / 0.7032 GB, free: 8.938 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003248/2.168, allocations: 0.5993 MB / 0.7037 GB, free: 8.316 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001303/2.169, allocations: 51.98 kB / 0.7038 GB, free: 8.266 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003647/2.173, allocations: 79.88 kB / 0.7039 GB, free: 8.188 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001142/2.174, allocations: 165.8 kB / 0.704 GB, free: 8.023 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005898/2.174, allocations: 83.95 kB / 0.7041 GB, free: 7.941 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.004455/2.179, allocations: 1.257 MB / 0.7053 GB, free: 6.664 MB / 0.5137 GB Notification: Performance of sort global known variables: time 4.61e-07/2.179, allocations: 0 / 0.7053 GB, free: 6.664 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.01304/2.192, allocations: 1.726 MB / 0.707 GB, free: 4.938 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 10 (tank.level,tank.medium.T,heater.mediums[1].p,heater.mediums[1].T,radiator.mediums[1].p,radiator.mediums[1].T,pipe.mediums[1].p,pipe.mediums[1].T,pipe.mediums[2].p,pipe.mediums[2].T) * Number of discrete variables: 4 (tank.regularFlow[1],tank.regularFlow[2],tank.inFlow[1],tank.inFlow[2]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (182): * Single equations (assignments): 168 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,9), (2,8), (5,17)} Notification: Performance of Backend phase and start with SimCode phase: time 0.02655/2.219, allocations: 6.643 MB / 0.7135 GB, free: 14.34 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.0311/2.25, allocations: 6.855 MB / 0.7202 GB, free: 7.613 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.928e-05/2.25, allocations: 7.156 kB / 0.7202 GB, free: 7.609 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.007368/2.257, allocations: 2.243 MB / 0.7224 GB, free: 5.332 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008278/2.266, allocations: 1.054 MB / 0.7234 GB, free: 4.309 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4722/2.738, allocations: 26.73 MB / 0.7495 GB, free: 235.1 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003955/2.742, allocations: 1.879 MB / 0.7514 GB, free: 234.3 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.00876/2.751, allocations: 0.9622 MB / 0.7523 GB, free: 234.2 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004222/2.755, allocations: 1.008 MB / 0.7533 GB, free: 233.5 MB / 0.5294 GB Notification: Performance of SimCode: time 2.755e-06/2.755, allocations: 0 / 0.7533 GB, free: 233.5 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4481/3.203, allocations: 97.77 MB / 0.8488 GB, free: 143.4 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 23.86/27.07, allocations: 11.84 kB / 0.8488 GB, free: 143.4 MB / 0.5294 GB (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.HeatingSystem.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.HeatingSystem.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.HeatingSystem.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.HeatingSystem.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Fluid.Examples.HeatingSystem_res.csv --start-time 0 --stop-time 6000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 2.4 Modelica_4_0_0_Modelica_Fluid_Examples_HeatingSystem.fmu > Modelica_4.0.0_Modelica.Fluid.Examples.HeatingSystem.pipe 2>&1)