Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Fluid_Examples_HeatingSystem",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.HeatingSystem,fileNamePrefix="Modelica_3_2_3_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.001374/0.001374, allocations: 110.5 kB / 17.73 MB, free: 5.359 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.001365/0.001365, allocations: 187.1 kB / 18.66 MB, free: 4.438 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.492/1.492, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001661/0.001661, allocations: 55.94 kB / 328 MB, free: 3.816 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1067/0.1084, allocations: 46.62 MB / 374.6 MB, free: 5.09 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.HeatingSystem): time 0.342/0.4504, allocations: 90.13 MB / 464.8 MB, free: 5.723 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03866/0.4891, allocations: 21.3 MB / 486.1 MB, free: 376 kB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004288/0.4935, allocations: 83.5 kB / 486.1 MB, free: 292 kB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003822/0.4974, allocations: 0.9435 MB / 487.1 MB, free: 15.33 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01274/0.5102, allocations: 3.721 MB / 490.8 MB, free: 11.59 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01641/0.5266, allocations: 5.617 MB / 496.4 MB, free: 5.965 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01268/0.5393, allocations: 7.034 MB / 0.4917 GB, free: 14.91 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00384/0.5432, allocations: 1.845 MB / 0.4935 GB, free: 13.05 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.4875/1.031, allocations: 74.85 MB / 0.5666 GB, free: 56.32 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.07224/1.103, allocations: 31.9 MB / 0.5977 GB, free: 46.62 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001196/1.104, allocations: 252.1 kB / 0.598 GB, free: 46.62 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01721/1.122, allocations: 6.081 MB / 0.6039 GB, free: 45.01 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00239/1.124, allocations: 1.091 MB / 0.605 GB, free: 44.65 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002867/1.127, allocations: 1.495 MB / 0.6064 GB, free: 44.05 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01099/1.138, allocations: 5.546 MB / 0.6118 GB, free: 39.73 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.983e-06/1.138, allocations: 0 / 0.6118 GB, free: 39.73 MB / 478.1 MB Notification: Performance of FrontEnd: time 2.084e-06/1.138, allocations: 0 / 0.6118 GB, free: 39.73 MB / 478.1 MB Notification: Performance of Transformations before backend: time 9.04e-05/1.138, allocations: 4 kB / 0.6118 GB, free: 39.73 MB / 478.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.008411/1.146, allocations: 3.599 MB / 0.6154 GB, free: 36.5 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.655e-05/1.146, allocations: 8.031 kB / 0.6154 GB, free: 36.5 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004667/1.147, allocations: 344.1 kB / 0.6157 GB, free: 36.28 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009821/1.148, allocations: 321.6 kB / 0.616 GB, free: 35.96 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00238/1.15, allocations: 1.687 MB / 0.6176 GB, free: 34.61 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000141/1.15, allocations: 223.8 kB / 0.6179 GB, free: 34.45 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002637/1.151, allocations: 196.4 kB / 0.618 GB, free: 34.32 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00434/1.155, allocations: 3.308 MB / 0.6213 GB, free: 31.89 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.63e-05/1.155, allocations: 11.12 kB / 0.6213 GB, free: 31.88 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002305/1.155, allocations: 84.97 kB / 0.6214 GB, free: 31.86 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002731/1.156, allocations: 249.4 kB / 0.6216 GB, free: 31.65 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004499/1.16, allocations: 3.113 MB / 0.6246 GB, free: 29.58 MB / 478.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.01644/1.177, allocations: 13.83 MB / 0.6382 GB, free: 17.46 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003509/1.18, allocations: 2.219 MB / 0.6403 GB, free: 15.45 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001792/1.182, allocations: 1.374 MB / 0.6417 GB, free: 14.08 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007035/1.189, allocations: 5.861 MB / 0.6474 GB, free: 7.75 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.391e-05/1.189, allocations: 52.56 kB / 0.6474 GB, free: 7.691 MB / 478.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007268/1.19, allocations: 178.4 kB / 0.6476 GB, free: 7.52 MB / 478.1 MB Notification: Performance of pre-optimization done (n=171): time 3.306e-06/1.19, allocations: 0 / 0.6476 GB, free: 7.52 MB / 478.1 MB Notification: Performance of matching and sorting (n=197): time 0.02045/1.21, allocations: 9.195 MB / 0.6566 GB, free: 14.26 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.577e-05/1.21, allocations: 73.41 kB / 0.6567 GB, free: 14.18 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003143/1.214, allocations: 1.845 MB / 0.6585 GB, free: 12.29 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004032/1.214, allocations: 61.69 kB / 0.6585 GB, free: 12.23 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009722/1.215, allocations: 1.092 MB / 0.6596 GB, free: 11.13 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008946/1.216, allocations: 0.7074 MB / 0.6603 GB, free: 10.43 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008313/1.217, allocations: 464.5 kB / 0.6607 GB, free: 9.973 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001468/1.217, allocations: 305.1 kB / 0.661 GB, free: 9.672 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002273/1.219, allocations: 1.237 MB / 0.6622 GB, free: 8.426 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002849/1.222, allocations: 1.801 MB / 0.664 GB, free: 6.387 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005156/1.227, allocations: 3.166 MB / 0.6671 GB, free: 3.055 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.372e-05/1.227, allocations: 4 kB / 0.6671 GB, free: 3.051 MB / 494.1 MB Notification: Performance of matching and sorting (n=299) (initialization): time 0.008193/1.235, allocations: 4.302 MB / 0.6713 GB, free: 14.84 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 3.489e-05/1.236, allocations: 12 kB / 0.6713 GB, free: 14.83 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.664e-05/1.236, allocations: 20.12 kB / 0.6713 GB, free: 14.81 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01418/1.25, allocations: 3.637 MB / 0.6749 GB, free: 11.18 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001432/1.251, allocations: 327.4 kB / 0.6752 GB, free: 10.88 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007387/1.259, allocations: 3.949 MB / 0.679 GB, free: 6.941 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002324/1.261, allocations: 95.88 kB / 0.6791 GB, free: 6.848 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002936/1.261, allocations: 116 kB / 0.6792 GB, free: 6.734 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.003228/1.265, allocations: 1.676 MB / 0.6809 GB, free: 5.051 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002685/1.267, allocations: 1.744 MB / 0.6826 GB, free: 3.062 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.004873/1.272, allocations: 3.056 MB / 0.6856 GB, free: 15.84 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.552e-05/1.272, allocations: 7.984 kB / 0.6856 GB, free: 15.83 MB / 0.5137 GB Notification: Performance of matching and sorting (n=299) (initialization_lambda0): time 0.007585/1.28, allocations: 4.036 MB / 0.6895 GB, free: 11.89 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 7.643e-05/1.28, allocations: 12 kB / 0.6895 GB, free: 11.88 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.18e-05/1.28, allocations: 20 kB / 0.6895 GB, free: 11.86 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01001/1.29, allocations: 2.749 MB / 0.6922 GB, free: 9.117 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00178/1.292, allocations: 369.7 kB / 0.6926 GB, free: 8.781 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006105/1.298, allocations: 3.479 MB / 0.696 GB, free: 5.305 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002269/1.3, allocations: 91.94 kB / 0.6961 GB, free: 5.215 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000287/1.301, allocations: 115.9 kB / 0.6962 GB, free: 5.102 MB / 0.5137 GB 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.0006961/1.301, allocations: 307.7 kB / 0.6965 GB, free: 4.816 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000571/1.302, allocations: 238.5 kB / 0.6967 GB, free: 4.582 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008143/1.31, allocations: 3.949 MB / 0.7005 GB, free: 0.6406 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.914e-05/1.31, allocations: 27.98 kB / 0.7006 GB, free: 0.6133 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.724e-05/1.31, allocations: 4 kB / 0.7006 GB, free: 0.6094 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006256/1.316, allocations: 3.378 MB / 0.7039 GB, free: 13.15 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01192/1.328, allocations: 6.294 MB / 0.71 GB, free: 6.836 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.117e-05/1.328, allocations: 3.938 kB / 0.71 GB, free: 6.832 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001445/1.33, allocations: 319.9 kB / 0.7103 GB, free: 6.535 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00414/1.334, allocations: 1.16 MB / 0.7115 GB, free: 5.355 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003736/1.334, allocations: 71.95 kB / 0.7115 GB, free: 5.285 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01154/1.346, allocations: 11.07 MB / 0.7223 GB, free: 9.5 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.874e-06/1.346, allocations: 0 / 0.7223 GB, free: 9.5 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0103/1.356, allocations: 5.194 MB / 0.7274 GB, free: 4.285 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001609/1.358, allocations: 0.6123 MB / 0.728 GB, free: 3.652 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005011/1.358, allocations: 55.98 kB / 0.7281 GB, free: 3.598 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001402/1.36, allocations: 71.94 kB / 0.7281 GB, free: 3.527 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004547/1.36, allocations: 169.8 kB / 0.7283 GB, free: 3.359 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002087/1.36, allocations: 79.95 kB / 0.7284 GB, free: 3.281 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.002167/1.363, allocations: 1.26 MB / 0.7296 GB, free: 2 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.9e-07/1.363, allocations: 0 / 0.7296 GB, free: 2 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.006464/1.369, allocations: 1.739 MB / 0.7313 GB, free: 264 kB / 0.545 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.01282/1.382, allocations: 6.68 MB / 0.7378 GB, free: 9.621 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01204/1.394, allocations: 5.132 MB / 0.7428 GB, free: 4.605 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 6.562e-06/1.394, allocations: 0 / 0.7428 GB, free: 4.605 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.00453/1.399, allocations: 2.253 MB / 0.745 GB, free: 2.32 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005279/1.404, allocations: 1.034 MB / 0.746 GB, free: 1.285 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2627/1.667, allocations: 24.25 MB / 0.7697 GB, free: 260.5 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001982/1.669, allocations: 1.875 MB / 0.7716 GB, free: 259.7 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.003154/1.672, allocations: 0.9602 MB / 0.7725 GB, free: 259.7 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001294/1.673, allocations: 1.01 MB / 0.7735 GB, free: 259.1 MB / 0.5762 GB Notification: Performance of SimCode: time 1.343e-06/1.673, allocations: 0 / 0.7735 GB, free: 259.1 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1563/1.83, allocations: 98.74 MB / 0.8699 GB, free: 179.3 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.2/20.02, allocations: 15.84 kB / 0.8699 GB, free: 179.3 MB / 0.5762 GB (rm -f Modelica_3.2.3_Modelica.Fluid.Examples.HeatingSystem.pipe ; mkfifo Modelica_3.2.3_Modelica.Fluid.Examples.HeatingSystem.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Fluid.Examples.HeatingSystem.pipe >> ../files/Modelica_3.2.3_Modelica.Fluid.Examples.HeatingSystem.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Fluid_Examples_HeatingSystem.fmu > Modelica_3.2.3_Modelica.Fluid.Examples.HeatingSystem.pipe 2>&1)