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.417/1.417, allocations: 252 MB / 267.3 MB, free: 10.85 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.0009955/0.0009958, allocations: 175.6 kB / 327 MB, free: 2.098 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.888/1.888, allocations: 205.4 MB / 0.578 GB, free: 20.12 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.000828/0.0008281, allocations: 103.3 kB / 0.6826 GB, free: 12.75 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003814/0.0003815, allocations: 11.19 kB / 0.7971 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.236/0.2364, allocations: 106.3 MB / 0.9009 GB, free: 63.39 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Examples.Carnot_TCon): time 0.04935/0.2858, allocations: 59.76 MB / 0.9593 GB, free: 3.422 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.01755/0.3034, allocations: 11.78 MB / 0.9708 GB, free: 7.602 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002868/0.3064, allocations: 51.69 kB / 0.9708 GB, free: 7.551 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.00212/0.3085, allocations: 0.5516 MB / 0.9714 GB, free: 6.996 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.006065/0.3146, allocations: 1.777 MB / 0.9731 GB, free: 5.211 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.003912/0.3185, allocations: 1.107 MB / 0.9742 GB, free: 4.117 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.006368/0.3249, allocations: 3.882 MB / 0.978 GB, free: 224 kB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001594/0.3265, allocations: 0.8941 MB / 0.9789 GB, free: 15.29 MB / 0.6355 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00269/0.3292, allocations: 1.139 MB / 0.98 GB, free: 14.15 MB / 0.6355 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001419/0.3306, allocations: 0.8593 MB / 0.9808 GB, free: 13.29 MB / 0.6355 GB Notification: Performance of NFPackage.collectConstants: time 0.0001233/0.3308, allocations: 44 kB / 0.9808 GB, free: 13.24 MB / 0.6355 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003034/0.3338, allocations: 1.298 MB / 0.9821 GB, free: 11.94 MB / 0.6355 GB Notification: Performance of NFScalarize.scalarize: time 0.0003015/0.3341, allocations: 222.8 kB / 0.9823 GB, free: 11.72 MB / 0.6355 GB Notification: Performance of NFVerifyModel.verify: time 0.0008656/0.335, allocations: 0.6234 MB / 0.9829 GB, free: 11.09 MB / 0.6355 GB Notification: Performance of NFConvertDAE.convert: time 0.003462/0.3385, allocations: 2.193 MB / 0.9851 GB, free: 8.891 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.3385, allocations: 0 / 0.9851 GB, free: 8.891 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.683e-06/0.3385, allocations: 0 / 0.9851 GB, free: 8.891 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 1.422e-05/0.3385, allocations: 0 / 0.9851 GB, free: 8.891 MB / 0.6355 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.003176/0.3417, allocations: 1.497 MB / 0.9865 GB, free: 7.336 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.482e-05/0.3418, allocations: 12.03 kB / 0.9866 GB, free: 7.324 MB / 0.6355 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001647/0.342, allocations: 118.9 kB / 0.9867 GB, free: 7.199 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002072/0.344, allocations: 466.8 kB / 0.9871 GB, free: 6.742 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002103/0.3462, allocations: 1.136 MB / 0.9882 GB, free: 5.547 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003613/0.3465, allocations: 125.9 kB / 0.9883 GB, free: 5.426 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001151/0.3467, allocations: 84 kB / 0.9884 GB, free: 5.344 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002049/0.3487, allocations: 1.003 MB / 0.9894 GB, free: 4.301 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.728e-05/0.3487, allocations: 3.938 kB / 0.9894 GB, free: 4.297 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.692e-05/0.3488, allocations: 36 kB / 0.9894 GB, free: 4.262 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.771e-05/0.3488, allocations: 20 kB / 0.9895 GB, free: 4.242 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002358/0.3512, allocations: 0.9329 MB / 0.9904 GB, free: 3.309 MB / 0.6355 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.006794/0.358, allocations: 4.648 MB / 0.9949 GB, free: 14.34 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003513/0.3615, allocations: 0.9342 MB / 0.9958 GB, free: 13.4 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00078/0.3623, allocations: 350 kB / 0.9962 GB, free: 13.05 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000735/0.3631, allocations: 0.899 MB / 0.997 GB, free: 11.95 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.228e-05/0.3631, allocations: 39 kB / 0.9971 GB, free: 11.91 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=47): time 4.027e-06/0.3632, allocations: 0 / 0.9971 GB, free: 11.91 MB / 0.6511 GB Notification: Performance of matching and sorting (n=47): time 0.008434/0.3716, allocations: 2.025 MB / 0.999 GB, free: 9.848 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.166e-05/0.3717, allocations: 55.84 kB / 0.9991 GB, free: 9.781 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002188/0.3739, allocations: 1.059 MB / 1 GB, free: 8.707 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 9.432e-05/0.374, allocations: 37.7 kB / 1 GB, free: 8.664 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005316/0.3745, allocations: 0.5235 MB / 1.001 GB, free: 8.137 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001713/0.3747, allocations: 153.8 kB / 1.001 GB, free: 7.984 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.514e-05/0.3748, allocations: 12 kB / 1.001 GB, free: 7.973 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001506/0.3749, allocations: 334 kB / 1.001 GB, free: 7.641 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009677/0.3759, allocations: 336.9 kB / 1.001 GB, free: 7.309 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00117/0.3771, allocations: 0.5522 MB / 1.002 GB, free: 6.68 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001767/0.3789, allocations: 0.7332 MB / 1.003 GB, free: 5.895 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.56e-06/0.3789, allocations: 4 kB / 1.003 GB, free: 5.891 MB / 0.6511 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.00394/0.3828, allocations: 1.241 MB / 1.004 GB, free: 4.641 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001592/0.383, allocations: 201.3 kB / 1.004 GB, free: 4.391 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.131e-05/0.383, allocations: 4 kB / 1.004 GB, free: 4.387 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001351/0.3844, allocations: 336.5 kB / 1.004 GB, free: 4.055 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000577/0.385, allocations: 127.8 kB / 1.005 GB, free: 3.93 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001597/0.3866, allocations: 0.9488 MB / 1.006 GB, free: 2.957 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001561/0.3882, allocations: 199.1 kB / 1.006 GB, free: 2.762 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.763e-05/0.3883, allocations: 31.98 kB / 1.006 GB, free: 2.73 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.107e-05/0.3883, allocations: 4 kB / 1.006 GB, free: 2.727 MB / 0.6511 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003477/0.3918, allocations: 1.092 MB / 1.007 GB, free: 1.629 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.586e-06/0.3918, allocations: 4 kB / 1.007 GB, free: 1.625 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001181/0.393, allocations: 321 kB / 1.007 GB, free: 1.309 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000573/0.3936, allocations: 139.8 kB / 1.007 GB, free: 1.172 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001535/0.3951, allocations: 0.927 MB / 1.008 GB, free: 224 kB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001427/0.3966, allocations: 183.2 kB / 1.008 GB, free: 40 kB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.637e-05/0.3967, allocations: 31.98 kB / 1.008 GB, free: 8 kB / 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 (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 {(1,14)} Notification: Performance of prepare postOptimizeDAE: time 0.000736/0.3974, allocations: 349 kB / 1.009 GB, free: 15.66 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003352/0.3978, allocations: 110.6 kB / 1.009 GB, free: 15.55 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00424/0.402, allocations: 1.248 MB / 1.01 GB, free: 14.28 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.885e-05/0.402, allocations: 8 kB / 1.01 GB, free: 14.27 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.293e-06/0.4021, allocations: 0 / 1.01 GB, free: 14.27 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.105e-06/0.4021, allocations: 3.984 kB / 1.01 GB, free: 14.27 MB / 0.6667 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006083/0.4082, allocations: 2.306 MB / 1.012 GB, free: 11.88 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.25e-05/0.4082, allocations: 7.984 kB / 1.012 GB, free: 11.88 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003361/0.4085, allocations: 75.89 kB / 1.012 GB, free: 11.8 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001068/0.4096, allocations: 326.9 kB / 1.013 GB, free: 11.48 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.427e-05/0.4097, allocations: 19.92 kB / 1.013 GB, free: 11.46 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001566/0.4113, allocations: 0.9621 MB / 1.014 GB, free: 10.47 MB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.488e-06/0.4113, allocations: 4 kB / 1.014 GB, free: 10.47 MB / 0.6667 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005028/0.4163, allocations: 1.465 MB / 1.015 GB, free: 8.949 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008302/0.4172, allocations: 295.4 kB / 1.015 GB, free: 8.641 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003725/0.4176, allocations: 8 kB / 1.015 GB, free: 8.633 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001176/0.4188, allocations: 115.8 kB / 1.015 GB, free: 8.52 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000116/0.4189, allocations: 39.84 kB / 1.016 GB, free: 8.48 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.156e-05/0.419, allocations: 27.92 kB / 1.016 GB, free: 8.453 MB / 0.6667 GB Notification: Performance of sorting global known variables: time 0.001726/0.4207, allocations: 0.7508 MB / 1.016 GB, free: 7.695 MB / 0.6667 GB Notification: Performance of sort global known variables: time 3.5e-07/0.4207, allocations: 0 / 1.016 GB, free: 7.695 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.002449/0.4232, allocations: 0.5575 MB / 1.017 GB, free: 7.137 MB / 0.6667 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 (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 {(1,16)} Notification: Performance of Backend phase and start with SimCode phase: time 0.005741/0.4289, allocations: 2.132 MB / 1.019 GB, free: 4.957 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.003745/0.4327, allocations: 1.218 MB / 1.02 GB, free: 3.742 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 6.652e-06/0.4327, allocations: 4 kB / 1.02 GB, free: 3.738 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 0.001033/0.4338, allocations: 391 kB / 1.02 GB, free: 3.359 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003597/0.4374, allocations: 0.5175 MB / 1.021 GB, free: 2.852 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02345/0.4608, allocations: 9.315 MB / 1.03 GB, free: 9.09 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009353/0.4618, allocations: 1.066 MB / 1.031 GB, free: 7.996 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 0.001285/0.4631, allocations: 228.7 kB / 1.031 GB, free: 7.773 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006699/0.4638, allocations: 419.3 kB / 1.032 GB, free: 7.363 MB / 0.6823 GB Notification: Performance of SimCode: time 7.11e-07/0.4638, allocations: 0 / 1.032 GB, free: 7.363 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4932/0.9571, allocations: 32.71 MB / 1.064 GB, free: 147.2 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001731/0.9573, allocations: 280.3 kB / 1.064 GB, free: 146.8 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.26/4.217, allocations: 3.938 kB / 1.064 GB, free: 146.8 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)