Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.HeatPumps.Examples.Carnot_TCon,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Fluid_HeatPumps_Examples_Carnot_TCon",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatPumps.Examples.Carnot_TCon,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Fluid_HeatPumps_Examples_Carnot_TCon",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.475/1.475, allocations: 251.9 MB / 266.9 MB, free: 11.08 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001054/0.001054, allocations: 176.8 kB / 326.5 MB, free: 2.293 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.655/1.655, allocations: 205.4 MB / 0.5775 GB, free: 20.42 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009388/0.0009387, allocations: 86.38 kB / 0.6821 GB, free: 12.93 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003475/0.0003478, allocations: 12.92 kB / 0.7963 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.216/0.2164, allocations: 106.3 MB / 0.9001 GB, free: 63.91 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Examples.Carnot_TCon): time 0.03757/0.254, allocations: 51.33 MB / 0.9503 GB, free: 12.45 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.01335/0.2674, allocations: 10.2 MB / 0.9602 GB, free: 2.227 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001934/0.2694, allocations: 47.62 kB / 0.9603 GB, free: 2.18 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.002146/0.2715, allocations: 0.6374 MB / 0.9609 GB, free: 1.539 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.006114/0.2777, allocations: 1.885 MB / 0.9627 GB, free: 15.65 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.004047/0.2817, allocations: 1.247 MB / 0.964 GB, free: 14.42 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.004445/0.2862, allocations: 1.839 MB / 0.9658 GB, free: 12.58 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001641/0.2879, allocations: 0.8095 MB / 0.9665 GB, free: 11.74 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002311/0.2902, allocations: 0.9808 MB / 0.9675 GB, free: 10.76 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001127/0.2913, allocations: 0.6027 MB / 0.9681 GB, free: 10.15 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 0.0001323/0.2915, allocations: 44 kB / 0.9681 GB, free: 10.11 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002339/0.2938, allocations: 0.9868 MB / 0.9691 GB, free: 9.121 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 0.0002282/0.2941, allocations: 195.2 kB / 0.9693 GB, free: 8.93 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 0.0003956/0.2945, allocations: 281 kB / 0.9695 GB, free: 8.648 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.002139/0.2966, allocations: 1.575 MB / 0.9711 GB, free: 7.066 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 4.94e-06/0.2966, allocations: 0 / 0.9711 GB, free: 7.066 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.775e-06/0.2966, allocations: 3.938 kB / 0.9711 GB, free: 7.062 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 2.399e-05/0.2967, allocations: 0 / 0.9711 GB, free: 7.062 MB / 0.6198 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 192 * Number of variables: 192 Notification: Performance of Generate backend data structure: time 0.003056/0.2997, allocations: 1.481 MB / 0.9725 GB, free: 5.523 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.973e-05/0.2998, allocations: 8.031 kB / 0.9725 GB, free: 5.516 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001676/0.3, allocations: 126.7 kB / 0.9727 GB, free: 5.383 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002182/0.3022, allocations: 473.9 kB / 0.9731 GB, free: 4.918 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002051/0.3042, allocations: 1.055 MB / 0.9741 GB, free: 3.805 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000375/0.3046, allocations: 125.9 kB / 0.9743 GB, free: 3.684 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000131/0.3048, allocations: 84 kB / 0.9743 GB, free: 3.602 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00214/0.3069, allocations: 0.9995 MB / 0.9753 GB, free: 2.562 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.057e-05/0.3069, allocations: 3.938 kB / 0.9753 GB, free: 2.559 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.21e-05/0.307, allocations: 32 kB / 0.9754 GB, free: 2.527 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.846e-05/0.3071, allocations: 23.95 kB / 0.9754 GB, free: 2.504 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002402/0.3095, allocations: 0.9251 MB / 0.9763 GB, free: 1.578 MB / 0.6198 GB 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.00705/0.3165, allocations: 4.668 MB / 0.9808 GB, free: 12.59 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003687/0.3202, allocations: 0.9473 MB / 0.9818 GB, free: 11.64 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007014/0.321, allocations: 0.899 MB / 0.9826 GB, free: 10.54 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.722e-05/0.321, allocations: 43 kB / 0.9827 GB, free: 10.48 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=47): time 2.785e-06/0.321, allocations: 0 / 0.9827 GB, free: 10.48 MB / 0.6355 GB Notification: Performance of matching and sorting (n=47): time 0.0082/0.3292, allocations: 2.002 MB / 0.9846 GB, free: 8.453 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.338e-05/0.3293, allocations: 63.73 kB / 0.9847 GB, free: 8.379 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001766/0.3311, allocations: 1.067 MB / 0.9857 GB, free: 7.297 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 0.0001333/0.3313, allocations: 37.7 kB / 0.9858 GB, free: 7.254 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004924/0.3318, allocations: 0.5196 MB / 0.9863 GB, free: 6.73 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001902/0.332, allocations: 169.6 kB / 0.9865 GB, free: 6.562 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.526e-05/0.332, allocations: 8 kB / 0.9865 GB, free: 6.555 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001367/0.3322, allocations: 330 kB / 0.9868 GB, free: 6.227 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009813/0.3331, allocations: 328.9 kB / 0.9871 GB, free: 5.906 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00118/0.3343, allocations: 0.5328 MB / 0.9876 GB, free: 5.293 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009955/0.3353, allocations: 368.6 kB / 0.988 GB, free: 4.934 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.099e-06/0.3354, allocations: 7.938 kB / 0.988 GB, free: 4.926 MB / 0.6355 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.004022/0.3394, allocations: 1.221 MB / 0.9892 GB, free: 3.691 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006832/0.3401, allocations: 1.504 MB / 0.9906 GB, free: 2.082 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.027e-05/0.3401, allocations: 4 kB / 0.9906 GB, free: 2.078 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001312/0.3414, allocations: 332.6 kB / 0.9909 GB, free: 1.75 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005668/0.342, allocations: 131.8 kB / 0.9911 GB, free: 1.621 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001531/0.3435, allocations: 0.9323 MB / 0.992 GB, free: 0.6641 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001589/0.3452, allocations: 203.1 kB / 0.9922 GB, free: 476 kB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.787e-05/0.3453, allocations: 31.92 kB / 0.9922 GB, free: 444 kB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.378e-05/0.3453, allocations: 8 kB / 0.9922 GB, free: 436 kB / 0.6355 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003449/0.3487, allocations: 1.081 MB / 0.9933 GB, free: 15.34 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.035e-06/0.3488, allocations: 4 kB / 0.9933 GB, free: 15.33 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001187/0.3499, allocations: 328.9 kB / 0.9936 GB, free: 15.01 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005699/0.3505, allocations: 127.8 kB / 0.9937 GB, free: 14.88 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001489/0.352, allocations: 0.9451 MB / 0.9946 GB, free: 13.91 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001371/0.3534, allocations: 175.3 kB / 0.9948 GB, free: 13.74 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.521e-05/0.3535, allocations: 27.98 kB / 0.9948 GB, free: 13.71 MB / 0.6511 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * 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 (55): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 14} Notification: Performance of prepare postOptimizeDAE: time 0.0006214/0.3541, allocations: 360.9 kB / 0.9952 GB, free: 13.35 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001703/0.3543, allocations: 110.6 kB / 0.9953 GB, free: 13.24 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003976/0.3583, allocations: 1.237 MB / 0.9965 GB, free: 11.99 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.361e-05/0.3583, allocations: 8 kB / 0.9965 GB, free: 11.98 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.392e-06/0.3583, allocations: 0 / 0.9965 GB, free: 11.98 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.686e-06/0.3584, allocations: 3.984 kB / 0.9965 GB, free: 11.98 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006003/0.3644, allocations: 2.321 MB / 0.9988 GB, free: 9.578 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.793e-05/0.3644, allocations: 4.234 kB / 0.9988 GB, free: 9.574 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003571/0.3648, allocations: 83.88 kB / 0.9988 GB, free: 9.492 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001169/0.366, allocations: 328.5 kB / 0.9992 GB, free: 9.168 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.658e-05/0.366, allocations: 15.98 kB / 0.9992 GB, free: 9.152 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001634/0.3677, allocations: 0.9698 MB / 1 GB, free: 8.156 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.797e-06/0.3677, allocations: 11.92 kB / 1 GB, free: 8.145 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004902/0.3726, allocations: 1.564 MB / 1.002 GB, free: 6.484 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007189/0.3734, allocations: 291.4 kB / 1.002 GB, free: 6.18 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001412/0.3735, allocations: 12 kB / 1.002 GB, free: 6.168 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009239/0.3745, allocations: 119.8 kB / 1.002 GB, free: 6.051 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001008/0.3746, allocations: 43.89 kB / 1.002 GB, free: 6.008 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.653e-05/0.3746, allocations: 23.98 kB / 1.002 GB, free: 5.984 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.001274/0.3759, allocations: 0.7469 MB / 1.003 GB, free: 5.23 MB / 0.6511 GB Notification: Performance of sort global known variables: time 2.9e-07/0.3759, allocations: 4 kB / 1.003 GB, free: 5.227 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.00173/0.3777, allocations: 0.5575 MB / 1.003 GB, free: 4.668 MB / 0.6511 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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 (37): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 16} Notification: Performance of Backend phase and start with SimCode phase: time 0.005255/0.3829, allocations: 2.851 MB / 1.006 GB, free: 1.73 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.003344/0.3863, allocations: 1.21 MB / 1.007 GB, free: 0.5234 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 6.472e-06/0.3863, allocations: 0 / 1.007 GB, free: 0.5234 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.001207/0.3875, allocations: 387 kB / 1.008 GB, free: 152 kB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002731/0.3903, allocations: 0.5152 MB / 1.008 GB, free: 15.63 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007877/0.3982, allocations: 5.644 MB / 1.014 GB, free: 9.836 MB / 0.6667 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006696/0.3989, allocations: 1.093 MB / 1.015 GB, free: 8.707 MB / 0.6667 GB Notification: Performance of simCode: alias equations: time 0.001227/0.4001, allocations: 236.8 kB / 1.015 GB, free: 8.473 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005582/0.4007, allocations: 411.3 kB / 1.015 GB, free: 8.074 MB / 0.6667 GB Notification: Performance of SimCode: time 1.252e-06/0.4007, allocations: 0 / 1.015 GB, free: 8.074 MB / 0.6667 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0614/0.4621, allocations: 33.57 MB / 1.048 GB, free: 6.867 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002357/0.4624, allocations: 257.5 kB / 1.048 GB, free: 6.527 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.053/3.516, allocations: 0 / 1.048 GB, free: 6.527 MB / 0.698 GB (rm -f Buildings_maint.7.0.x_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Fluid_HeatPumps_Examples_Carnot_TCon_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Fluid_HeatPumps_Examples_Carnot_TCon.fmu > Buildings_maint.7.0.x_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.pipe 2>&1)