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.408/1.408, allocations: 251.5 MB / 266.7 MB, free: 11.05 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.001106/0.001106, allocations: 174.8 kB / 325.8 MB, free: 2.676 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.596/1.596, allocations: 205 MB / 0.576 GB, free: 20.97 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.0007731/0.0007733, allocations: 89.73 kB / 0.6797 GB, free: 14.7 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003032/0.0003032, allocations: 11.16 kB / 0.7932 GB, free: 136.5 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1791/0.1794, allocations: 105.4 MB / 0.8962 GB, free: 68.05 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Examples.Carnot_TCon): time 0.03633/0.2158, allocations: 60.53 MB / 0.9553 GB, free: 7.312 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0133/0.2291, allocations: 11.92 MB / 0.967 GB, free: 11.36 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001943/0.2311, allocations: 55.62 kB / 0.967 GB, free: 11.3 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.001799/0.2329, allocations: 0.5516 MB / 0.9675 GB, free: 10.75 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.005013/0.238, allocations: 1.787 MB / 0.9693 GB, free: 8.953 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.002764/0.2407, allocations: 1.094 MB / 0.9704 GB, free: 7.863 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.004088/0.2448, allocations: 3.888 MB / 0.9742 GB, free: 3.961 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00117/0.246, allocations: 0.8884 MB / 0.975 GB, free: 3.039 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002022/0.2481, allocations: 1.12 MB / 0.9761 GB, free: 1.914 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001049/0.2491, allocations: 0.8709 MB / 0.977 GB, free: 1.039 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 0.0001165/0.2493, allocations: 40 kB / 0.977 GB, free: 1 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002341/0.2516, allocations: 1.298 MB / 0.9783 GB, free: 15.7 MB / 0.6355 GB Notification: Performance of NFScalarize.scalarize: time 0.0002082/0.2518, allocations: 210.9 kB / 0.9785 GB, free: 15.49 MB / 0.6355 GB Notification: Performance of NFVerifyModel.verify: time 0.0005703/0.2524, allocations: 0.6021 MB / 0.9791 GB, free: 14.89 MB / 0.6355 GB Notification: Performance of NFConvertDAE.convert: time 0.002694/0.2551, allocations: 2.188 MB / 0.9812 GB, free: 12.69 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 5.661e-06/0.2551, allocations: 8 kB / 0.9812 GB, free: 12.68 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.803e-06/0.2551, allocations: 0 / 0.9812 GB, free: 12.68 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 3.393e-05/0.2552, allocations: 0 / 0.9812 GB, free: 12.68 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.002704/0.2579, allocations: 1.492 MB / 0.9827 GB, free: 11.13 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.036e-05/0.2579, allocations: 12.03 kB / 0.9827 GB, free: 11.12 MB / 0.6355 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000133/0.2581, allocations: 122.8 kB / 0.9828 GB, free: 10.99 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002098/0.2602, allocations: 474.8 kB / 0.9832 GB, free: 10.53 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001873/0.2621, allocations: 1.132 MB / 0.9843 GB, free: 9.34 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003401/0.2624, allocations: 125.9 kB / 0.9845 GB, free: 9.215 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001109/0.2626, allocations: 80 kB / 0.9845 GB, free: 9.137 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001879/0.2644, allocations: 1.007 MB / 0.9855 GB, free: 8.094 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.925e-05/0.2645, allocations: 4 kB / 0.9855 GB, free: 8.09 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.639e-05/0.2646, allocations: 35.94 kB / 0.9856 GB, free: 8.055 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.569e-05/0.2646, allocations: 20 kB / 0.9856 GB, free: 8.035 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002233/0.2668, allocations: 0.9328 MB / 0.9865 GB, free: 7.098 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.005791/0.2726, allocations: 4.659 MB / 0.991 GB, free: 2.125 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003362/0.276, allocations: 0.9336 MB / 0.992 GB, free: 1.184 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007222/0.2767, allocations: 342 kB / 0.9923 GB, free: 0.8477 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006089/0.2774, allocations: 0.9028 MB / 0.9932 GB, free: 15.74 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.682e-05/0.2774, allocations: 39 kB / 0.9932 GB, free: 15.7 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=47): time 2.515e-06/0.2774, allocations: 0 / 0.9932 GB, free: 15.7 MB / 0.6511 GB Notification: Performance of matching and sorting (n=47): time 0.007557/0.285, allocations: 2.026 MB / 0.9952 GB, free: 13.64 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.855e-05/0.285, allocations: 59.84 kB / 0.9952 GB, free: 13.57 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001434/0.2865, allocations: 1.059 MB / 0.9963 GB, free: 12.5 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 6.712e-05/0.2866, allocations: 41.64 kB / 0.9963 GB, free: 12.45 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003941/0.287, allocations: 0.5196 MB / 0.9968 GB, free: 11.93 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001231/0.2871, allocations: 157.7 kB / 0.997 GB, free: 11.77 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.94e-05/0.2872, allocations: 53.69 kB / 0.997 GB, free: 11.71 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001008/0.2873, allocations: 326 kB / 0.9973 GB, free: 11.39 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008696/0.2882, allocations: 336.9 kB / 0.9977 GB, free: 11.06 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00102/0.2892, allocations: 0.5368 MB / 0.9982 GB, free: 10.45 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001626/0.2908, allocations: 0.7449 MB / 0.9989 GB, free: 9.648 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.907e-06/0.2908, allocations: 0 / 0.9989 GB, free: 9.648 MB / 0.6511 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.003499/0.2943, allocations: 1.253 MB / 1 GB, free: 8.383 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 0.000108/0.2945, allocations: 209.1 kB / 1 GB, free: 8.125 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.899e-06/0.2945, allocations: 4 kB / 1 GB, free: 8.121 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001169/0.2957, allocations: 334.5 kB / 1.001 GB, free: 7.793 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005316/0.2962, allocations: 135.8 kB / 1.001 GB, free: 7.66 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001379/0.2976, allocations: 0.9387 MB / 1.002 GB, free: 6.695 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001209/0.2988, allocations: 199.1 kB / 1.002 GB, free: 6.5 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.029e-05/0.2989, allocations: 27.98 kB / 1.002 GB, free: 6.473 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 7.814e-06/0.2989, allocations: 6.656 kB / 1.002 GB, free: 6.469 MB / 0.6511 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003115/0.302, allocations: 1.111 MB / 1.003 GB, free: 5.352 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.568e-06/0.302, allocations: 4 kB / 1.003 GB, free: 5.348 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001027/0.3031, allocations: 326.5 kB / 1.003 GB, free: 5.027 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005228/0.3036, allocations: 135.8 kB / 1.003 GB, free: 4.895 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001322/0.305, allocations: 0.9426 MB / 1.004 GB, free: 3.926 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001073/0.306, allocations: 175.2 kB / 1.005 GB, free: 3.754 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.148e-05/0.3061, allocations: 27.98 kB / 1.005 GB, free: 3.727 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 (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.0004539/0.3066, allocations: 352 kB / 1.005 GB, free: 3.375 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001652/0.3067, allocations: 114.6 kB / 1.005 GB, free: 3.262 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00367/0.3104, allocations: 1.245 MB / 1.006 GB, free: 1.996 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.047e-05/0.3104, allocations: 8 kB / 1.006 GB, free: 1.988 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/0.3105, allocations: 0 / 1.006 GB, free: 1.988 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.051e-05/0.3105, allocations: 7.984 kB / 1.006 GB, free: 1.98 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004895/0.3154, allocations: 2.306 MB / 1.008 GB, free: 15.59 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.656e-06/0.3154, allocations: 4.281 kB / 1.008 GB, free: 15.59 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003038/0.3157, allocations: 83.88 kB / 1.009 GB, free: 15.5 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009808/0.3167, allocations: 320.5 kB / 1.009 GB, free: 15.19 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.774e-05/0.3168, allocations: 15.98 kB / 1.009 GB, free: 15.17 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001338/0.3181, allocations: 0.9738 MB / 1.01 GB, free: 14.17 MB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.354e-06/0.3181, allocations: 0 / 1.01 GB, free: 14.17 MB / 0.6667 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004286/0.3224, allocations: 1.465 MB / 1.011 GB, free: 12.66 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004937/0.3229, allocations: 267.5 kB / 1.012 GB, free: 12.38 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001353/0.3231, allocations: 16 kB / 1.012 GB, free: 12.36 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008716/0.3239, allocations: 115.8 kB / 1.012 GB, free: 12.25 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.812e-05/0.324, allocations: 39.91 kB / 1.012 GB, free: 12.21 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.488e-05/0.3241, allocations: 23.98 kB / 1.012 GB, free: 12.18 MB / 0.6667 GB Notification: Performance of sorting global known variables: time 0.001079/0.3252, allocations: 0.7546 MB / 1.012 GB, free: 11.42 MB / 0.6667 GB Notification: Performance of sort global known variables: time 1.7e-07/0.3252, allocations: 0 / 1.012 GB, free: 11.42 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.001435/0.3266, allocations: 0.5575 MB / 1.013 GB, free: 10.86 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.004679/0.3313, allocations: 2.125 MB / 1.015 GB, free: 8.691 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.003106/0.3344, allocations: 1.225 MB / 1.016 GB, free: 7.469 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 4.699e-06/0.3345, allocations: 4.25 kB / 1.016 GB, free: 7.465 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 0.0008898/0.3354, allocations: 386.8 kB / 1.017 GB, free: 7.086 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002585/0.338, allocations: 0.5291 MB / 1.017 GB, free: 6.562 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0191/0.3571, allocations: 9.454 MB / 1.026 GB, free: 12.67 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005841/0.3577, allocations: 1.058 MB / 1.027 GB, free: 11.59 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 0.000991/0.3587, allocations: 236.8 kB / 1.028 GB, free: 11.35 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005103/0.3592, allocations: 411.3 kB / 1.028 GB, free: 10.95 MB / 0.6823 GB Notification: Performance of SimCode: time 5.21e-07/0.3592, allocations: 3.938 kB / 1.028 GB, free: 10.95 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9196/1.279, allocations: 32.72 MB / 1.06 GB, free: 150.3 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002635/1.279, allocations: 281.9 kB / 1.06 GB, free: 149.9 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.156/4.435, allocations: 3.562 kB / 1.06 GB, free: 149.9 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)