Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.Fluid.HeatPumps.Validation.Carnot_TCon_reverseFlow.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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 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: translateModel(Buildings.Fluid.HeatPumps.Validation.Carnot_TCon_reverseFlow,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.HeatPumps.Validation.Carnot_TCon_reverseFlow") translateModel(Buildings.Fluid.HeatPumps.Validation.Carnot_TCon_reverseFlow,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.HeatPumps.Validation.Carnot_TCon_reverseFlow") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00117/0.00117, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001184/0.001184, allocations: 193.6 kB / 16.53 MB, free: 6.391 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.379/1.379, allocations: 205.1 MB / 222.4 MB, free: 4.578 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.705/1.705, allocations: 292.3 MB / 0.5489 GB, free: 12.8 MB / 462.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.001428/0.001428, allocations: 66.3 kB / 0.6715 GB, free: 26.32 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2201/0.2215, allocations: 114.6 MB / 0.7834 GB, free: 13.48 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Validation.Carnot_TCon_reverseFlow): time 0.05846/0.28, allocations: 61.24 MB / 0.8432 GB, free: 16 kB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.01596/0.296, allocations: 11.91 MB / 0.8548 GB, free: 4.078 MB / 0.67 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002017/0.2981, allocations: 55.69 kB / 0.8549 GB, free: 4.023 MB / 0.67 GB Notification: Performance of NFTyping.typeComponents: time 0.002002/0.3002, allocations: 0.6791 MB / 0.8555 GB, free: 3.34 MB / 0.67 GB Notification: Performance of NFTyping.typeBindings: time 0.005565/0.3058, allocations: 1.951 MB / 0.8574 GB, free: 1.379 MB / 0.67 GB Notification: Performance of NFTyping.typeClassSections: time 0.003101/0.3089, allocations: 1.217 MB / 0.8586 GB, free: 176 kB / 0.67 GB Notification: Performance of NFFlatten.flatten: time 0.004423/0.3133, allocations: 3.075 MB / 0.8616 GB, free: 13.09 MB / 0.6856 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001805/0.3151, allocations: 1.135 MB / 0.8627 GB, free: 11.92 MB / 0.6856 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003151/0.3183, allocations: 1.332 MB / 0.864 GB, free: 10.59 MB / 0.6856 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001615/0.3199, allocations: 0.91 MB / 0.8649 GB, free: 9.672 MB / 0.6856 GB Notification: Performance of NFPackage.collectConstants: time 0.000264/0.3202, allocations: 120 kB / 0.865 GB, free: 9.555 MB / 0.6856 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003183/0.3234, allocations: 1.439 MB / 0.8664 GB, free: 8.113 MB / 0.6856 GB Notification: Performance of NFScalarize.scalarize: time 0.0003923/0.3238, allocations: 298.8 kB / 0.8667 GB, free: 7.82 MB / 0.6856 GB Notification: Performance of NFVerifyModel.verify: time 0.001058/0.3249, allocations: 0.7037 MB / 0.8674 GB, free: 7.113 MB / 0.6856 GB Notification: Performance of NFConvertDAE.convert: time 0.003916/0.3288, allocations: 2.314 MB / 0.8697 GB, free: 4.793 MB / 0.6856 GB Notification: Performance of FrontEnd - DAE generated: time 6.062e-06/0.3289, allocations: 0 / 0.8697 GB, free: 4.793 MB / 0.6856 GB Notification: Performance of FrontEnd: time 1.363e-06/0.3289, allocations: 0 / 0.8697 GB, free: 4.793 MB / 0.6856 GB Notification: Performance of Transformations before backend: time 2.342e-05/0.3289, allocations: 0 / 0.8697 GB, free: 4.793 MB / 0.6856 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 194 * Number of variables: 194 Notification: Performance of Generate backend data structure: time 0.003149/0.3321, allocations: 1.738 MB / 0.8714 GB, free: 2.996 MB / 0.6856 GB Notification: Performance of prepare preOptimizeDAE: time 4.068e-05/0.3321, allocations: 12.03 kB / 0.8714 GB, free: 2.984 MB / 0.6856 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0025/0.3346, allocations: 454.8 kB / 0.8718 GB, free: 2.539 MB / 0.6856 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002219/0.3369, allocations: 1.12 MB / 0.8729 GB, free: 1.359 MB / 0.6856 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003639/0.3372, allocations: 121.9 kB / 0.873 GB, free: 1.242 MB / 0.6856 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001261/0.3374, allocations: 80 kB / 0.8731 GB, free: 1.164 MB / 0.6856 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002099/0.3395, allocations: 1.006 MB / 0.8741 GB, free: 128 kB / 0.6856 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.693e-05/0.3395, allocations: 4 kB / 0.8741 GB, free: 124 kB / 0.6856 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.798e-05/0.3396, allocations: 32 kB / 0.8741 GB, free: 92 kB / 0.6856 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.68e-05/0.3396, allocations: 19.98 kB / 0.8741 GB, free: 72 kB / 0.6856 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002606/0.3422, allocations: 0.9562 MB / 0.8751 GB, free: 15.12 MB / 0.7012 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.006184/0.3484, allocations: 4.716 MB / 0.8797 GB, free: 10.05 MB / 0.7012 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004073/0.3525, allocations: 1 MB / 0.8806 GB, free: 9.043 MB / 0.7012 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001085/0.3536, allocations: 413.8 kB / 0.881 GB, free: 8.637 MB / 0.7012 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009637/0.3546, allocations: 1.021 MB / 0.882 GB, free: 7.395 MB / 0.7012 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.779e-05/0.3546, allocations: 38.98 kB / 0.8821 GB, free: 7.348 MB / 0.7012 GB Notification: Performance of pre-optimization done (n=53): time 2.094e-06/0.3547, allocations: 0 / 0.8821 GB, free: 7.348 MB / 0.7012 GB Notification: Performance of matching and sorting (n=53): time 0.009621/0.3643, allocations: 2.232 MB / 0.8842 GB, free: 5.082 MB / 0.7012 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.592e-05/0.3643, allocations: 55.84 kB / 0.8843 GB, free: 5.016 MB / 0.7012 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001257/0.3656, allocations: 0.951 MB / 0.8852 GB, free: 4.047 MB / 0.7012 GB Notification: Performance of collectPreVariables (initialization): time 8.146e-05/0.3657, allocations: 37.7 kB / 0.8853 GB, free: 4.004 MB / 0.7012 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003964/0.3661, allocations: 0.504 MB / 0.8858 GB, free: 3.496 MB / 0.7012 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001655/0.3663, allocations: 181.3 kB / 0.8859 GB, free: 3.316 MB / 0.7012 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000216/0.3665, allocations: 134.1 kB / 0.8861 GB, free: 3.176 MB / 0.7012 GB Notification: Performance of setup shared object (initialization): time 0.0001115/0.3666, allocations: 330 kB / 0.8864 GB, free: 2.848 MB / 0.7012 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001067/0.3677, allocations: 362.8 kB / 0.8867 GB, free: 2.492 MB / 0.7012 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001214/0.3689, allocations: 0.5155 MB / 0.8872 GB, free: 1.91 MB / 0.7012 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002113/0.371, allocations: 0.7619 MB / 0.888 GB, free: 1.117 MB / 0.7012 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.427e-06/0.3711, allocations: 0 / 0.888 GB, free: 1.117 MB / 0.7012 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.003044/0.3741, allocations: 1.076 MB / 0.889 GB, free: 28 kB / 0.7012 GB Notification: Performance of prepare postOptimizeDAE: time 1.825e-05/0.3741, allocations: 8 kB / 0.889 GB, free: 20 kB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.883e-06/0.3742, allocations: 320 / 0.889 GB, free: 20 kB / 0.7012 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001327/0.3755, allocations: 324.5 kB / 0.8893 GB, free: 15.7 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006561/0.3762, allocations: 131.8 kB / 0.8895 GB, free: 15.57 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001539/0.3777, allocations: 0.902 MB / 0.8903 GB, free: 14.64 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001034/0.3788, allocations: 135.3 kB / 0.8905 GB, free: 14.51 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001129/0.3789, allocations: 27.98 kB / 0.8905 GB, free: 14.48 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001378/0.3803, allocations: 0.5596 MB / 0.891 GB, free: 13.92 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001264/0.3815, allocations: 0.5156 MB / 0.8915 GB, free: 13.34 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002107/0.3837, allocations: 0.7579 MB / 0.8923 GB, free: 12.55 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.139e-06/0.3837, allocations: 4 kB / 0.8923 GB, free: 12.55 MB / 0.7169 GB Notification: Performance of matching and sorting (n=69) (initialization_lambda0): time 0.003074/0.3868, allocations: 1.064 MB / 0.8933 GB, free: 11.47 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.344e-05/0.3868, allocations: 8.312 kB / 0.8933 GB, free: 11.46 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.563e-06/0.3868, allocations: 7.938 kB / 0.8933 GB, free: 11.46 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001127/0.3879, allocations: 308.5 kB / 0.8936 GB, free: 11.15 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006308/0.3886, allocations: 135.8 kB / 0.8938 GB, free: 11.02 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00145/0.39, allocations: 0.9026 MB / 0.8947 GB, free: 10.09 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001008/0.3911, allocations: 115.6 kB / 0.8948 GB, free: 9.98 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.188e-05/0.3911, allocations: 31.98 kB / 0.8948 GB, free: 9.949 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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.0002192/0.3914, allocations: 220.1 kB / 0.895 GB, free: 9.727 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001884/0.3915, allocations: 106.7 kB / 0.8951 GB, free: 9.621 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004689/0.3962, allocations: 1.322 MB / 0.8964 GB, free: 8.285 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.43e-05/0.3963, allocations: 8 kB / 0.8964 GB, free: 8.277 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.019e-06/0.3963, allocations: 0 / 0.8964 GB, free: 8.277 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.947e-06/0.3963, allocations: 7.922 kB / 0.8964 GB, free: 8.27 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006001/0.4023, allocations: 2.424 MB / 0.8988 GB, free: 5.766 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.331e-06/0.4023, allocations: 0 / 0.8988 GB, free: 5.766 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005372/0.4029, allocations: 103.8 kB / 0.8989 GB, free: 5.664 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001006/0.4039, allocations: 307.7 kB / 0.8992 GB, free: 5.363 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.499e-05/0.4039, allocations: 15.98 kB / 0.8992 GB, free: 5.348 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001577/0.4055, allocations: 0.9463 MB / 0.9001 GB, free: 4.375 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.372e-06/0.4056, allocations: 12.03 kB / 0.9001 GB, free: 4.363 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004378/0.4099, allocations: 1.331 MB / 0.9014 GB, free: 2.996 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004579/0.4104, allocations: 287.5 kB / 0.9017 GB, free: 2.695 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001385/0.4106, allocations: 8 kB / 0.9017 GB, free: 2.688 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008392/0.4114, allocations: 75.91 kB / 0.9018 GB, free: 2.613 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.785e-05/0.4115, allocations: 48.33 kB / 0.9018 GB, free: 2.566 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.574e-05/0.4116, allocations: 23.98 kB / 0.9018 GB, free: 2.543 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0009736/0.4126, allocations: 0.6637 MB / 0.9025 GB, free: 1.871 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.71e-07/0.4126, allocations: 0 / 0.9025 GB, free: 1.871 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.001393/0.414, allocations: 0.573 MB / 0.9031 GB, free: 1.297 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 (42): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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.0007422/0.4147, allocations: 383.7 kB / 0.9034 GB, free: 0.918 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.003978/0.4187, allocations: 1.342 MB / 0.9047 GB, free: 15.57 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 3.948e-06/0.4187, allocations: 8 kB / 0.9047 GB, free: 15.57 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.001322/0.42, allocations: 460.8 kB / 0.9052 GB, free: 15.12 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002295/0.4224, allocations: 0.503 MB / 0.9057 GB, free: 14.63 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003875/0.4262, allocations: 1.929 MB / 0.9076 GB, free: 12.65 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006632/0.4269, allocations: 1.062 MB / 0.9086 GB, free: 11.56 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.001046/0.428, allocations: 239.4 kB / 0.9088 GB, free: 11.33 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002485/0.4282, allocations: 83.41 kB / 0.9089 GB, free: 11.25 MB / 0.7325 GB Notification: Performance of SimCode: time 7.11e-07/0.4282, allocations: 0 / 0.9089 GB, free: 11.25 MB / 0.7325 GB Notification: Performance of Templates: time 0.3652/0.7934, allocations: 24.95 MB / 0.9333 GB, free: 133.6 MB / 0.7325 GB make -j1 -f Buildings_8_Buildings.Fluid.HeatPumps.Validation.Carnot_TCon_reverseFlow.makefile (rm -f Buildings_8_Buildings.Fluid.HeatPumps.Validation.Carnot_TCon_reverseFlow.pipe ; mkfifo Buildings_8_Buildings.Fluid.HeatPumps.Validation.Carnot_TCon_reverseFlow.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.HeatPumps.Validation.Carnot_TCon_reverseFlow.pipe >> ../files/Buildings_8_Buildings.Fluid.HeatPumps.Validation.Carnot_TCon_reverseFlow.sim & ./Buildings_8_Buildings.Fluid.HeatPumps.Validation.Carnot_TCon_reverseFlow -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Fluid.HeatPumps.Validation.Carnot_TCon_reverseFlow.pipe 2>&1)