Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.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.Examples.Carnot_TCon,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon") translateModel(Buildings.Fluid.HeatPumps.Examples.Carnot_TCon,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001339/0.001339, allocations: 105.4 kB / 15.7 MB, free: 28 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.001483/0.001483, allocations: 194.8 kB / 16.64 MB, free: 6.48 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.507/1.507, allocations: 205.1 MB / 222.5 MB, free: 4.551 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.775/1.775, allocations: 292.3 MB / 0.549 GB, free: 12.76 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.001483/0.001483, allocations: 64.5 kB / 0.6723 GB, free: 25.95 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2476/0.2491, allocations: 114.5 MB / 0.7841 GB, free: 12.76 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Examples.Carnot_TCon): time 0.05918/0.3083, allocations: 61.22 MB / 0.8439 GB, free: 15.31 MB / 0.67 GB Notification: Performance of NFInst.instExpressions: time 0.01845/0.3268, allocations: 11.88 MB / 0.8555 GB, free: 3.402 MB / 0.67 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00215/0.329, allocations: 59.62 kB / 0.8556 GB, free: 3.344 MB / 0.67 GB Notification: Performance of NFTyping.typeComponents: time 0.002169/0.3313, allocations: 0.683 MB / 0.8562 GB, free: 2.656 MB / 0.67 GB Notification: Performance of NFTyping.typeBindings: time 0.005402/0.3367, allocations: 1.958 MB / 0.8581 GB, free: 0.6914 MB / 0.67 GB Notification: Performance of NFTyping.typeClassSections: time 0.003237/0.34, allocations: 1.225 MB / 0.8593 GB, free: 15.47 MB / 0.6856 GB Notification: Performance of NFFlatten.flatten: time 0.004248/0.3442, allocations: 3.067 MB / 0.8623 GB, free: 12.39 MB / 0.6856 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001836/0.3461, allocations: 1.119 MB / 0.8634 GB, free: 11.25 MB / 0.6856 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003283/0.3494, allocations: 1.348 MB / 0.8647 GB, free: 9.898 MB / 0.6856 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001614/0.351, allocations: 0.8983 MB / 0.8656 GB, free: 8.996 MB / 0.6856 GB Notification: Performance of NFPackage.collectConstants: time 0.0003031/0.3513, allocations: 119.9 kB / 0.8657 GB, free: 8.879 MB / 0.6856 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002902/0.3542, allocations: 1.439 MB / 0.8671 GB, free: 7.438 MB / 0.6856 GB Notification: Performance of NFScalarize.scalarize: time 0.0003951/0.3546, allocations: 298.9 kB / 0.8674 GB, free: 7.145 MB / 0.6856 GB Notification: Performance of NFVerifyModel.verify: time 0.001103/0.3558, allocations: 0.6997 MB / 0.8681 GB, free: 6.441 MB / 0.6856 GB Notification: Performance of NFConvertDAE.convert: time 0.003787/0.3596, allocations: 2.31 MB / 0.8704 GB, free: 4.125 MB / 0.6856 GB Notification: Performance of FrontEnd - DAE generated: time 5.541e-06/0.3596, allocations: 0 / 0.8704 GB, free: 4.125 MB / 0.6856 GB Notification: Performance of FrontEnd: time 2.205e-06/0.3596, allocations: 4 kB / 0.8704 GB, free: 4.121 MB / 0.6856 GB Notification: Performance of Transformations before backend: time 4.711e-05/0.3597, allocations: 0 / 0.8704 GB, free: 4.121 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: 192 * Number of variables: 192 Notification: Performance of Generate backend data structure: time 0.003438/0.3631, allocations: 1.73 MB / 0.8721 GB, free: 2.328 MB / 0.6856 GB Notification: Performance of prepare preOptimizeDAE: time 4.257e-05/0.3631, allocations: 12.02 kB / 0.8721 GB, free: 2.316 MB / 0.6856 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002108/0.3653, allocations: 406.9 kB / 0.8725 GB, free: 1.918 MB / 0.6856 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002173/0.3675, allocations: 1.175 MB / 0.8736 GB, free: 0.6875 MB / 0.6856 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.417e-05/0.3675, allocations: 62 kB / 0.8737 GB, free: 0.625 MB / 0.6856 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001172/0.3676, allocations: 83.98 kB / 0.8737 GB, free: 0.543 MB / 0.6856 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00203/0.3697, allocations: 0.9999 MB / 0.8747 GB, free: 15.49 MB / 0.7012 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.907e-05/0.3697, allocations: 7.875 kB / 0.8747 GB, free: 15.48 MB / 0.7012 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.744e-05/0.3698, allocations: 32 kB / 0.8748 GB, free: 15.45 MB / 0.7012 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.797e-05/0.3698, allocations: 24 kB / 0.8748 GB, free: 15.43 MB / 0.7012 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00228/0.3721, allocations: 0.8625 MB / 0.8756 GB, free: 14.56 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.006845/0.379, allocations: 4.948 MB / 0.8805 GB, free: 9.293 MB / 0.7012 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003405/0.3824, allocations: 0.8273 MB / 0.8813 GB, free: 8.461 MB / 0.7012 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008143/0.3832, allocations: 318 kB / 0.8816 GB, free: 8.148 MB / 0.7012 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008402/0.3841, allocations: 0.9029 MB / 0.8824 GB, free: 7.043 MB / 0.7012 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.202e-05/0.3841, allocations: 39 kB / 0.8825 GB, free: 6.996 MB / 0.7012 GB Notification: Performance of pre-optimization done (n=47): time 2.385e-06/0.3841, allocations: 0 / 0.8825 GB, free: 6.996 MB / 0.7012 GB Notification: Performance of matching and sorting (n=47): time 0.00792/0.3921, allocations: 1.764 MB / 0.8842 GB, free: 5.199 MB / 0.7012 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.786e-05/0.3921, allocations: 55.84 kB / 0.8843 GB, free: 5.133 MB / 0.7012 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001759/0.3939, allocations: 1.076 MB / 0.8853 GB, free: 4.043 MB / 0.7012 GB Notification: Performance of collectPreVariables (initialization): time 0.0001254/0.3941, allocations: 37.7 kB / 0.8853 GB, free: 4 MB / 0.7012 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004987/0.3946, allocations: 0.5312 MB / 0.8859 GB, free: 3.465 MB / 0.7012 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001583/0.3947, allocations: 165.6 kB / 0.886 GB, free: 3.301 MB / 0.7012 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002331/0.395, allocations: 142.2 kB / 0.8862 GB, free: 3.156 MB / 0.7012 GB Notification: Performance of setup shared object (initialization): time 0.0001117/0.3951, allocations: 330 kB / 0.8865 GB, free: 2.828 MB / 0.7012 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009012/0.396, allocations: 319.2 kB / 0.8868 GB, free: 2.512 MB / 0.7012 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001091/0.3971, allocations: 0.5364 MB / 0.8873 GB, free: 1.879 MB / 0.7012 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001706/0.3988, allocations: 0.7326 MB / 0.888 GB, free: 1.082 MB / 0.7012 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.316e-06/0.3988, allocations: 4 kB / 0.888 GB, free: 1.078 MB / 0.7012 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.003851/0.4027, allocations: 1.19 MB / 0.8892 GB, free: 15.88 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.117e-05/0.4027, allocations: 11.94 kB / 0.8892 GB, free: 15.87 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.32e-05/0.4028, allocations: 4 kB / 0.8892 GB, free: 15.86 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001209/0.404, allocations: 304.6 kB / 0.8895 GB, free: 15.56 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005634/0.4045, allocations: 135.8 kB / 0.8896 GB, free: 15.43 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001461/0.406, allocations: 0.9025 MB / 0.8905 GB, free: 14.5 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001269/0.4073, allocations: 155.2 kB / 0.8907 GB, free: 14.35 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.342e-05/0.4074, allocations: 31.98 kB / 0.8907 GB, free: 14.32 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001258/0.4087, allocations: 0.5285 MB / 0.8912 GB, free: 13.79 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001117/0.4098, allocations: 0.5364 MB / 0.8917 GB, free: 13.16 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001681/0.4115, allocations: 0.713 MB / 0.8924 GB, free: 12.38 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.266e-06/0.4115, allocations: 3.938 kB / 0.8924 GB, free: 12.38 MB / 0.7169 GB Notification: Performance of matching and sorting (n=75) (initialization_lambda0): time 0.00358/0.4151, allocations: 1.163 MB / 0.8936 GB, free: 11.2 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.519e-05/0.4151, allocations: 8 kB / 0.8936 GB, free: 11.19 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.772e-06/0.4151, allocations: 4 kB / 0.8936 GB, free: 11.19 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001024/0.4162, allocations: 296.7 kB / 0.8939 GB, free: 10.89 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005627/0.4167, allocations: 139.8 kB / 0.894 GB, free: 10.76 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001325/0.4181, allocations: 0.8956 MB / 0.8949 GB, free: 9.836 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001274/0.4194, allocations: 143.5 kB / 0.895 GB, free: 9.695 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.788e-05/0.4194, allocations: 31.98 kB / 0.895 GB, free: 9.664 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * 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 (61): * Single equations (assignments): 60 * 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.0002519/0.4197, allocations: 215 kB / 0.8952 GB, free: 9.449 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002075/0.4199, allocations: 110.7 kB / 0.8953 GB, free: 9.34 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003945/0.4239, allocations: 1.139 MB / 0.8964 GB, free: 8.176 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.157e-05/0.4239, allocations: 4 kB / 0.8965 GB, free: 8.172 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.578e-06/0.4239, allocations: 0 / 0.8965 GB, free: 8.172 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.113e-05/0.424, allocations: 3.984 kB / 0.8965 GB, free: 8.168 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005457/0.4294, allocations: 2.208 MB / 0.8986 GB, free: 5.875 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.204e-06/0.4294, allocations: 8.281 kB / 0.8986 GB, free: 5.867 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003063/0.4298, allocations: 71.88 kB / 0.8987 GB, free: 5.797 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009853/0.4308, allocations: 303.5 kB / 0.899 GB, free: 5.5 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.654e-05/0.4308, allocations: 16 kB / 0.899 GB, free: 5.484 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001448/0.4323, allocations: 0.9153 MB / 0.8999 GB, free: 4.543 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.362e-06/0.4323, allocations: 7.938 kB / 0.8999 GB, free: 4.535 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004411/0.4367, allocations: 1.313 MB / 0.9012 GB, free: 3.176 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005011/0.4372, allocations: 275.4 kB / 0.9014 GB, free: 2.887 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001478/0.4374, allocations: 12 kB / 0.9015 GB, free: 2.875 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007922/0.4382, allocations: 75.84 kB / 0.9015 GB, free: 2.801 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.556e-05/0.4383, allocations: 39.83 kB / 0.9016 GB, free: 2.762 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.588e-05/0.4383, allocations: 31.98 kB / 0.9016 GB, free: 2.73 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.001185/0.4395, allocations: 0.7551 MB / 0.9023 GB, free: 1.969 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.6e-07/0.4395, allocations: 0 / 0.9023 GB, free: 1.969 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.001545/0.4411, allocations: 0.5693 MB / 0.9029 GB, free: 1.398 MB / 0.7169 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.0007444/0.4418, allocations: 378 kB / 0.9032 GB, free: 1.02 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.003309/0.4452, allocations: 1.171 MB / 0.9044 GB, free: 15.85 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 5.46e-06/0.4452, allocations: 4 kB / 0.9044 GB, free: 15.85 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0009487/0.4461, allocations: 371.4 kB / 0.9047 GB, free: 15.48 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002339/0.4485, allocations: 0.5334 MB / 0.9053 GB, free: 14.96 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005294/0.4538, allocations: 2.039 MB / 0.9073 GB, free: 12.87 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008149/0.4546, allocations: 1.062 MB / 0.9083 GB, free: 11.78 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.000961/0.4556, allocations: 245 kB / 0.9085 GB, free: 11.54 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001994/0.4558, allocations: 79.42 kB / 0.9086 GB, free: 11.46 MB / 0.7325 GB Notification: Performance of SimCode: time 6.71e-07/0.4558, allocations: 0 / 0.9086 GB, free: 11.46 MB / 0.7325 GB Notification: Performance of Templates: time 0.4005/0.8563, allocations: 25.58 MB / 0.9336 GB, free: 132.5 MB / 0.7325 GB make -j1 -f Buildings_8_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.makefile (rm -f Buildings_8_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.pipe ; mkfifo Buildings_8_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.pipe >> ../files/Buildings_8_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.sim & ./Buildings_8_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.pipe 2>&1)