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.0009568/0.0009569, allocations: 84.38 kB / 15.06 MB, free: 1.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008843/0.0008844, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.311/1.311, allocations: 205.4 MB / 222.1 MB, free: 5.641 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.619/1.619, allocations: 292.7 MB / 0.5499 GB, free: 14.59 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.0005082/0.0005083, allocations: 13.81 kB / 0.6737 GB, free: 26.18 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2236/0.2241, allocations: 116.3 MB / 0.7873 GB, free: 11.97 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Examples.Carnot_TCon): time 0.05172/0.2759, allocations: 56.51 MB / 0.8425 GB, free: 3.301 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.01408/0.29, allocations: 11.13 MB / 0.8533 GB, free: 8.148 MB / 0.67 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001967/0.292, allocations: 51.62 kB / 0.8534 GB, free: 8.098 MB / 0.67 GB Notification: Performance of NFTyping.typeComponents: time 0.001494/0.2935, allocations: 472.8 kB / 0.8538 GB, free: 7.633 MB / 0.67 GB Notification: Performance of NFTyping.typeBindings: time 0.004379/0.2979, allocations: 1.514 MB / 0.8553 GB, free: 6.113 MB / 0.67 GB Notification: Performance of NFTyping.typeClassSections: time 0.0026/0.3005, allocations: 0.8677 MB / 0.8562 GB, free: 5.254 MB / 0.67 GB Notification: Performance of NFFlatten.flatten: time 0.004272/0.3048, allocations: 3.396 MB / 0.8595 GB, free: 1.848 MB / 0.67 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001385/0.3062, allocations: 0.7935 MB / 0.8603 GB, free: 1.027 MB / 0.67 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00223/0.3085, allocations: 1.042 MB / 0.8613 GB, free: 15.98 MB / 0.6856 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001239/0.3097, allocations: 0.8127 MB / 0.8621 GB, free: 15.16 MB / 0.6856 GB Notification: Performance of NFPackage.collectConstants: time 0.0001313/0.3099, allocations: 40 kB / 0.8621 GB, free: 15.12 MB / 0.6856 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002278/0.3122, allocations: 1.095 MB / 0.8632 GB, free: 14.02 MB / 0.6856 GB Notification: Performance of NFScalarize.scalarize: time 0.0002429/0.3124, allocations: 203 kB / 0.8634 GB, free: 13.82 MB / 0.6856 GB Notification: Performance of NFVerifyModel.verify: time 0.0003654/0.3128, allocations: 289 kB / 0.8636 GB, free: 13.54 MB / 0.6856 GB Notification: Performance of NFConvertDAE.convert: time 0.002107/0.3149, allocations: 1.641 MB / 0.8652 GB, free: 11.89 MB / 0.6856 GB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/0.3149, allocations: 0 / 0.8652 GB, free: 11.89 MB / 0.6856 GB Notification: Performance of FrontEnd: time 1.713e-06/0.315, allocations: 0 / 0.8652 GB, free: 11.89 MB / 0.6856 GB Notification: Performance of Transformations before backend: time 2.573e-05/0.315, allocations: 0 / 0.8652 GB, free: 11.89 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.002652/0.3176, allocations: 1.501 MB / 0.8667 GB, free: 10.34 MB / 0.6856 GB Notification: Performance of prepare preOptimizeDAE: time 5.029e-05/0.3177, allocations: 16.02 kB / 0.8667 GB, free: 10.32 MB / 0.6856 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001961/0.3197, allocations: 469.9 kB / 0.8672 GB, free: 9.859 MB / 0.6856 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002021/0.3217, allocations: 1.101 MB / 0.8682 GB, free: 8.699 MB / 0.6856 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003039/0.322, allocations: 125.9 kB / 0.8684 GB, free: 8.578 MB / 0.6856 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001272/0.3222, allocations: 80 kB / 0.8684 GB, free: 8.5 MB / 0.6856 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001868/0.324, allocations: 1.007 MB / 0.8694 GB, free: 7.453 MB / 0.6856 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.625e-05/0.3241, allocations: 0 / 0.8694 GB, free: 7.453 MB / 0.6856 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.249e-05/0.3242, allocations: 32 kB / 0.8695 GB, free: 7.422 MB / 0.6856 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.758e-05/0.3242, allocations: 20 kB / 0.8695 GB, free: 7.402 MB / 0.6856 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002183/0.3264, allocations: 0.925 MB / 0.8704 GB, free: 6.48 MB / 0.6856 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.006032/0.3324, allocations: 4.623 MB / 0.8749 GB, free: 1.547 MB / 0.6856 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003057/0.3355, allocations: 0.9342 MB / 0.8758 GB, free: 0.6016 MB / 0.6856 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007064/0.3362, allocations: 342 kB / 0.8761 GB, free: 272 kB / 0.6856 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006462/0.3369, allocations: 0.9029 MB / 0.877 GB, free: 15.16 MB / 0.7012 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.972e-05/0.3369, allocations: 42.94 kB / 0.8771 GB, free: 15.11 MB / 0.7012 GB Notification: Performance of pre-optimization done (n=47): time 2.655e-06/0.3369, allocations: 0 / 0.8771 GB, free: 15.11 MB / 0.7012 GB Notification: Performance of matching and sorting (n=47): time 0.007031/0.344, allocations: 2.006 MB / 0.879 GB, free: 13.07 MB / 0.7012 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.817e-05/0.3441, allocations: 55.84 kB / 0.8791 GB, free: 13 MB / 0.7012 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001592/0.3456, allocations: 1.048 MB / 0.8801 GB, free: 11.94 MB / 0.7012 GB Notification: Performance of collectPreVariables (initialization): time 0.0001087/0.3458, allocations: 37.7 kB / 0.8801 GB, free: 11.9 MB / 0.7012 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004435/0.3462, allocations: 0.5235 MB / 0.8806 GB, free: 11.37 MB / 0.7012 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001407/0.3464, allocations: 161.6 kB / 0.8808 GB, free: 11.21 MB / 0.7012 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.348e-05/0.3464, allocations: 8 kB / 0.8808 GB, free: 11.2 MB / 0.7012 GB Notification: Performance of setup shared object (initialization): time 0.0001158/0.3465, allocations: 341.9 kB / 0.8811 GB, free: 10.86 MB / 0.7012 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008308/0.3474, allocations: 332.9 kB / 0.8814 GB, free: 10.54 MB / 0.7012 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009846/0.3484, allocations: 0.5329 MB / 0.882 GB, free: 9.922 MB / 0.7012 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008638/0.3493, allocations: 364.5 kB / 0.8823 GB, free: 9.57 MB / 0.7012 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.571e-06/0.3493, allocations: 4 kB / 0.8823 GB, free: 9.566 MB / 0.7012 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.003278/0.3526, allocations: 1.229 MB / 0.8835 GB, free: 8.324 MB / 0.7012 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001199/0.3527, allocations: 207.9 kB / 0.8837 GB, free: 8.066 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.033e-05/0.3527, allocations: 7.984 kB / 0.8837 GB, free: 8.059 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001124/0.3538, allocations: 328.5 kB / 0.884 GB, free: 7.734 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005444/0.3544, allocations: 131.8 kB / 0.8842 GB, free: 7.605 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001344/0.3557, allocations: 0.9384 MB / 0.8851 GB, free: 6.645 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001204/0.357, allocations: 203 kB / 0.8853 GB, free: 6.445 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.914e-05/0.357, allocations: 27.98 kB / 0.8853 GB, free: 6.418 MB / 0.7012 GB Notification: Performance of prepare postOptimizeDAE: time 8.687e-06/0.3571, allocations: 8 kB / 0.8853 GB, free: 6.41 MB / 0.7012 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00298/0.3601, allocations: 1.084 MB / 0.8864 GB, free: 5.32 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.492e-06/0.3601, allocations: 4 kB / 0.8864 GB, free: 5.316 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009657/0.361, allocations: 328.9 kB / 0.8867 GB, free: 4.992 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005111/0.3616, allocations: 131.8 kB / 0.8868 GB, free: 4.863 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001321/0.3629, allocations: 0.9425 MB / 0.8877 GB, free: 3.895 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001019/0.3639, allocations: 159.5 kB / 0.8879 GB, free: 3.738 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.74e-05/0.364, allocations: 35.97 kB / 0.8879 GB, free: 3.703 MB / 0.7012 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.0004882/0.3645, allocations: 356.9 kB / 0.8883 GB, free: 3.344 MB / 0.7012 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001783/0.3647, allocations: 114.5 kB / 0.8884 GB, free: 3.23 MB / 0.7012 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003432/0.3681, allocations: 1.237 MB / 0.8896 GB, free: 1.984 MB / 0.7012 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.358e-05/0.3682, allocations: 12 kB / 0.8896 GB, free: 1.973 MB / 0.7012 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.202e-06/0.3682, allocations: 0 / 0.8896 GB, free: 1.973 MB / 0.7012 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.685e-06/0.3682, allocations: 3.984 kB / 0.8896 GB, free: 1.969 MB / 0.7012 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004761/0.373, allocations: 2.302 MB / 0.8918 GB, free: 15.58 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.797e-06/0.373, allocations: 4.234 kB / 0.8918 GB, free: 15.58 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003051/0.3733, allocations: 83.88 kB / 0.8919 GB, free: 15.5 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009568/0.3743, allocations: 332.4 kB / 0.8922 GB, free: 15.17 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.127e-05/0.3743, allocations: 12 kB / 0.8922 GB, free: 15.16 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001333/0.3757, allocations: 0.97 MB / 0.8932 GB, free: 14.16 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.063e-06/0.3757, allocations: 7.938 kB / 0.8932 GB, free: 14.15 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004126/0.3798, allocations: 1.457 MB / 0.8946 GB, free: 12.65 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005304/0.3804, allocations: 287.4 kB / 0.8949 GB, free: 12.35 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001984/0.3806, allocations: 12 kB / 0.8949 GB, free: 12.34 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000908/0.3815, allocations: 111.8 kB / 0.895 GB, free: 12.23 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.98e-05/0.3816, allocations: 43.91 kB / 0.8951 GB, free: 12.18 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.047e-05/0.3817, allocations: 23.98 kB / 0.8951 GB, free: 12.16 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.001301/0.383, allocations: 0.7352 MB / 0.8958 GB, free: 11.42 MB / 0.7169 GB Notification: Performance of sort global known variables: time 4.71e-07/0.383, allocations: 0 / 0.8958 GB, free: 11.42 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.001859/0.3849, allocations: 0.5614 MB / 0.8963 GB, free: 10.86 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 (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.0008532/0.3857, allocations: 368 kB / 0.8967 GB, free: 10.49 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.003117/0.3888, allocations: 1.206 MB / 0.8979 GB, free: 9.285 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 5.611e-06/0.3889, allocations: 0 / 0.8979 GB, free: 9.285 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0009512/0.3898, allocations: 395.3 kB / 0.8983 GB, free: 8.902 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002477/0.3923, allocations: 0.5215 MB / 0.8988 GB, free: 8.379 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005177/0.3975, allocations: 2.512 MB / 0.9012 GB, free: 5.816 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006106/0.3981, allocations: 1.062 MB / 0.9023 GB, free: 4.727 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.001065/0.3992, allocations: 232.8 kB / 0.9025 GB, free: 4.496 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001941/0.3994, allocations: 79.42 kB / 0.9026 GB, free: 4.418 MB / 0.7169 GB Notification: Performance of SimCode: time 4.61e-07/0.3994, allocations: 0 / 0.9026 GB, free: 4.418 MB / 0.7169 GB Notification: Performance of Templates: time 0.3773/0.7768, allocations: 23.58 MB / 0.9256 GB, free: 133.4 MB / 0.7325 GB make -j1 -f Buildings_8_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: