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.001274/0.001274, allocations: 100.2 kB / 15.05 MB, free: 1.105 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.001583/0.001583, allocations: 177.3 kB / 15.95 MB, free: 216 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.339/1.339, allocations: 205.4 MB / 222.1 MB, free: 5.66 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.593/1.593, allocations: 292.5 MB / 0.5497 GB, free: 14.63 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.0005528/0.0005528, allocations: 17.81 kB / 0.6735 GB, free: 26.28 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2279/0.2284, allocations: 116.3 MB / 0.7871 GB, free: 11.98 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Examples.Carnot_TCon): time 0.05083/0.2793, allocations: 51.31 MB / 0.8372 GB, free: 8.535 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.01341/0.2928, allocations: 10.24 MB / 0.8472 GB, free: 14.29 MB / 0.67 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001737/0.2945, allocations: 43.69 kB / 0.8473 GB, free: 14.24 MB / 0.67 GB Notification: Performance of NFTyping.typeComponents: time 0.002265/0.2968, allocations: 0.6336 MB / 0.8479 GB, free: 13.61 MB / 0.67 GB Notification: Performance of NFTyping.typeBindings: time 0.00621/0.3031, allocations: 1.897 MB / 0.8497 GB, free: 11.7 MB / 0.67 GB Notification: Performance of NFTyping.typeClassSections: time 0.004317/0.3074, allocations: 1.323 MB / 0.851 GB, free: 10.4 MB / 0.67 GB Notification: Performance of NFFlatten.flatten: time 0.004484/0.3119, allocations: 1.843 MB / 0.8528 GB, free: 8.555 MB / 0.67 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001475/0.3134, allocations: 0.8132 MB / 0.8536 GB, free: 7.715 MB / 0.67 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002176/0.3156, allocations: 0.9886 MB / 0.8546 GB, free: 6.723 MB / 0.67 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001144/0.3167, allocations: 0.6066 MB / 0.8552 GB, free: 6.113 MB / 0.67 GB Notification: Performance of NFPackage.collectConstants: time 0.000177/0.3169, allocations: 44 kB / 0.8552 GB, free: 6.07 MB / 0.67 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002233/0.3191, allocations: 0.9868 MB / 0.8562 GB, free: 5.082 MB / 0.67 GB Notification: Performance of NFScalarize.scalarize: time 0.0002576/0.3194, allocations: 191.1 kB / 0.8564 GB, free: 4.895 MB / 0.67 GB Notification: Performance of NFVerifyModel.verify: time 0.0003773/0.3198, allocations: 289 kB / 0.8566 GB, free: 4.605 MB / 0.67 GB Notification: Performance of NFConvertDAE.convert: time 0.001877/0.3217, allocations: 1.594 MB / 0.8582 GB, free: 3.008 MB / 0.67 GB Notification: Performance of FrontEnd - DAE generated: time 3.437e-06/0.3217, allocations: 0 / 0.8582 GB, free: 3.008 MB / 0.67 GB Notification: Performance of FrontEnd: time 1.563e-06/0.3217, allocations: 0 / 0.8582 GB, free: 3.008 MB / 0.67 GB Notification: Performance of Transformations before backend: time 1.948e-05/0.3217, allocations: 0 / 0.8582 GB, free: 3.008 MB / 0.67 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.002931/0.3247, allocations: 1.493 MB / 0.8596 GB, free: 1.457 MB / 0.67 GB Notification: Performance of prepare preOptimizeDAE: time 3.799e-05/0.3247, allocations: 8.031 kB / 0.8597 GB, free: 1.449 MB / 0.67 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002012/0.3267, allocations: 473.9 kB / 0.8601 GB, free: 0.9844 MB / 0.67 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001777/0.3285, allocations: 1.051 MB / 0.8611 GB, free: 15.87 MB / 0.6856 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003357/0.3289, allocations: 129.9 kB / 0.8613 GB, free: 15.75 MB / 0.6856 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001067/0.329, allocations: 80 kB / 0.8613 GB, free: 15.67 MB / 0.6856 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001857/0.3309, allocations: 0.9956 MB / 0.8623 GB, free: 14.63 MB / 0.6856 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.782e-05/0.3309, allocations: 4 kB / 0.8623 GB, free: 14.63 MB / 0.6856 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.623e-05/0.331, allocations: 35.94 kB / 0.8623 GB, free: 14.59 MB / 0.6856 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.571e-05/0.331, allocations: 20 kB / 0.8624 GB, free: 14.57 MB / 0.6856 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002212/0.3332, allocations: 0.925 MB / 0.8633 GB, free: 13.65 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.3393, allocations: 4.657 MB / 0.8678 GB, free: 8.691 MB / 0.6856 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003344/0.3426, allocations: 0.946 MB / 0.8687 GB, free: 7.734 MB / 0.6856 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00062/0.3432, allocations: 0.9029 MB / 0.8696 GB, free: 6.629 MB / 0.6856 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.396e-05/0.3433, allocations: 39 kB / 0.8697 GB, free: 6.582 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=47): time 2.705e-06/0.3433, allocations: 3.938 kB / 0.8697 GB, free: 6.578 MB / 0.6856 GB Notification: Performance of matching and sorting (n=47): time 0.007536/0.3508, allocations: 1.995 MB / 0.8716 GB, free: 4.555 MB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.187e-05/0.3509, allocations: 59.83 kB / 0.8717 GB, free: 4.484 MB / 0.6856 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001445/0.3524, allocations: 1.067 MB / 0.8727 GB, free: 3.402 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 7.117e-05/0.3524, allocations: 37.7 kB / 0.8727 GB, free: 3.359 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003813/0.3528, allocations: 0.5196 MB / 0.8733 GB, free: 2.836 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001347/0.353, allocations: 165.7 kB / 0.8734 GB, free: 2.672 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.568e-05/0.353, allocations: 12 kB / 0.8734 GB, free: 2.66 MB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 0.0001061/0.3531, allocations: 333.9 kB / 0.8737 GB, free: 2.328 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008635/0.354, allocations: 332.8 kB / 0.8741 GB, free: 2.004 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001004/0.355, allocations: 0.5368 MB / 0.8746 GB, free: 1.383 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008875/0.3559, allocations: 364.5 kB / 0.8749 GB, free: 1.027 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.362e-06/0.3559, allocations: 4 kB / 0.8749 GB, free: 1.023 MB / 0.6856 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.003395/0.3593, allocations: 1.233 MB / 0.8761 GB, free: 15.78 MB / 0.7012 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006786/0.36, allocations: 1.494 MB / 0.8776 GB, free: 14.18 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.102e-05/0.36, allocations: 8 kB / 0.8776 GB, free: 14.17 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00117/0.3612, allocations: 332.4 kB / 0.8779 GB, free: 13.84 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005395/0.3618, allocations: 135.8 kB / 0.878 GB, free: 13.71 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001393/0.3632, allocations: 0.9379 MB / 0.879 GB, free: 12.75 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001314/0.3645, allocations: 199.1 kB / 0.8792 GB, free: 12.55 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.767e-05/0.3646, allocations: 31.98 kB / 0.8792 GB, free: 12.52 MB / 0.7012 GB Notification: Performance of prepare postOptimizeDAE: time 1.047e-05/0.3646, allocations: 4 kB / 0.8792 GB, free: 12.52 MB / 0.7012 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003136/0.3678, allocations: 1.096 MB / 0.8803 GB, free: 11.41 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.792e-06/0.3678, allocations: 4 kB / 0.8803 GB, free: 11.41 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009932/0.3688, allocations: 320.6 kB / 0.8806 GB, free: 11.09 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005282/0.3693, allocations: 135.8 kB / 0.8807 GB, free: 10.96 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001346/0.3707, allocations: 0.9348 MB / 0.8816 GB, free: 10 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001133/0.3718, allocations: 171.3 kB / 0.8818 GB, free: 9.832 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.84e-05/0.3719, allocations: 27.98 kB / 0.8818 GB, free: 9.805 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.0005572/0.3724, allocations: 353 kB / 0.8821 GB, free: 9.449 MB / 0.7012 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001772/0.3726, allocations: 110.6 kB / 0.8822 GB, free: 9.34 MB / 0.7012 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003686/0.3763, allocations: 1.245 MB / 0.8835 GB, free: 8.082 MB / 0.7012 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.115e-05/0.3764, allocations: 8 kB / 0.8835 GB, free: 8.074 MB / 0.7012 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.382e-06/0.3764, allocations: 0 / 0.8835 GB, free: 8.074 MB / 0.7012 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.987e-06/0.3764, allocations: 3.984 kB / 0.8835 GB, free: 8.07 MB / 0.7012 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004954/0.3813, allocations: 2.325 MB / 0.8857 GB, free: 5.664 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.151e-06/0.3814, allocations: 0 / 0.8857 GB, free: 5.664 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003051/0.3817, allocations: 76.17 kB / 0.8858 GB, free: 5.59 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000982/0.3827, allocations: 320.6 kB / 0.8861 GB, free: 5.273 MB / 0.7012 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.956e-05/0.3827, allocations: 19.98 kB / 0.8861 GB, free: 5.254 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00136/0.3841, allocations: 0.9727 MB / 0.8871 GB, free: 4.258 MB / 0.7012 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.898e-06/0.3841, allocations: 4 kB / 0.8871 GB, free: 4.254 MB / 0.7012 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004354/0.3885, allocations: 1.576 MB / 0.8886 GB, free: 2.582 MB / 0.7012 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005861/0.3891, allocations: 291.4 kB / 0.8889 GB, free: 2.277 MB / 0.7012 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001361/0.3892, allocations: 8 kB / 0.8889 GB, free: 2.27 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008642/0.3901, allocations: 115.8 kB / 0.889 GB, free: 2.156 MB / 0.7012 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.08e-05/0.3902, allocations: 47.77 kB / 0.8891 GB, free: 2.109 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.384e-05/0.3903, allocations: 23.98 kB / 0.8891 GB, free: 2.086 MB / 0.7012 GB Notification: Performance of sorting global known variables: time 0.001104/0.3914, allocations: 0.7547 MB / 0.8898 GB, free: 1.324 MB / 0.7012 GB Notification: Performance of sort global known variables: time 2.4e-07/0.3914, allocations: 0 / 0.8898 GB, free: 1.324 MB / 0.7012 GB Notification: Performance of remove unused functions: time 0.00145/0.3928, allocations: 0.5614 MB / 0.8904 GB, free: 0.7617 MB / 0.7012 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.0006795/0.3935, allocations: 376.9 kB / 0.8907 GB, free: 396 kB / 0.7012 GB Notification: Performance of simCode: created initialization part: time 0.003022/0.3966, allocations: 1.206 MB / 0.8919 GB, free: 15.18 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 6.282e-06/0.3966, allocations: 7.938 kB / 0.8919 GB, free: 15.17 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0008806/0.3975, allocations: 391.4 kB / 0.8923 GB, free: 14.79 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002286/0.3998, allocations: 0.5087 MB / 0.8928 GB, free: 14.28 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005181/0.405, allocations: 2.504 MB / 0.8952 GB, free: 11.72 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005879/0.4056, allocations: 1.085 MB / 0.8963 GB, free: 10.61 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.0008959/0.4065, allocations: 232.7 kB / 0.8965 GB, free: 10.38 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001736/0.4066, allocations: 79.42 kB / 0.8966 GB, free: 10.3 MB / 0.7169 GB Notification: Performance of SimCode: time 4.71e-07/0.4066, allocations: 0 / 0.8966 GB, free: 10.3 MB / 0.7169 GB Notification: Performance of Templates: time 0.03521/0.4419, allocations: 23.9 MB / 0.9199 GB, free: 2.699 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: