Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(IDEAS.Fluid.HeatPumps.Examples.Carnot_TCon,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Fluid.HeatPumps.Examples.Carnot_TCon") translateModel(IDEAS.Fluid.HeatPumps.Examples.Carnot_TCon,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.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.001141/0.001141, allocations: 104.9 kB / 16.27 MB, free: 6.402 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.001103/0.001103, allocations: 191.5 kB / 17.2 MB, free: 5.969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.412/1.412, allocations: 222.9 MB / 240.9 MB, free: 15.29 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8479/0.8479, allocations: 135.1 MB / 426.2 MB, free: 4.191 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001541/0.001541, allocations: 59.91 kB / 0.506 GB, free: 8.43 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4501/0.4517, allocations: 80.92 MB / 0.585 GB, free: 25.59 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.HeatPumps.Examples.Carnot_TCon): time 0.05286/0.5046, allocations: 61.17 MB / 0.6447 GB, free: 13.49 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.01693/0.5216, allocations: 11.97 MB / 0.6564 GB, free: 1.492 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002254/0.5238, allocations: 59.62 kB / 0.6565 GB, free: 1.434 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00218/0.5261, allocations: 0.6752 MB / 0.6571 GB, free: 0.7539 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005773/0.5319, allocations: 1.962 MB / 0.6591 GB, free: 14.79 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.003327/0.5353, allocations: 1.194 MB / 0.6602 GB, free: 13.6 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.004682/0.54, allocations: 3.075 MB / 0.6632 GB, free: 10.51 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001867/0.5418, allocations: 1.1 MB / 0.6643 GB, free: 9.379 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003404/0.5453, allocations: 1.328 MB / 0.6656 GB, free: 8.051 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001527/0.5468, allocations: 0.9022 MB / 0.6665 GB, free: 7.145 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0002278/0.5471, allocations: 116 kB / 0.6666 GB, free: 7.031 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003042/0.5501, allocations: 1.443 MB / 0.668 GB, free: 5.586 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0003307/0.5505, allocations: 290.8 kB / 0.6683 GB, free: 5.301 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0008705/0.5513, allocations: 0.692 MB / 0.669 GB, free: 4.605 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.003782/0.5551, allocations: 2.279 MB / 0.6712 GB, free: 2.32 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.529e-06/0.5552, allocations: 0 / 0.6712 GB, free: 2.32 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.623e-06/0.5552, allocations: 0 / 0.6712 GB, free: 2.32 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 2.497e-05/0.5552, allocations: 0 / 0.6712 GB, free: 2.32 MB / 0.4981 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.003245/0.5584, allocations: 1.719 MB / 0.6729 GB, free: 0.5391 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.189e-05/0.5585, allocations: 9.109 kB / 0.6729 GB, free: 0.5312 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002229/0.5607, allocations: 406.8 kB / 0.6733 GB, free: 136 kB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002191/0.5629, allocations: 1.104 MB / 0.6743 GB, free: 14.97 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003618/0.5633, allocations: 121.9 kB / 0.6745 GB, free: 14.85 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001283/0.5635, allocations: 80 kB / 0.6745 GB, free: 14.77 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002045/0.5655, allocations: 1.001 MB / 0.6755 GB, free: 13.71 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.1e-05/0.5656, allocations: 7.875 kB / 0.6755 GB, free: 13.71 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.286e-05/0.5657, allocations: 32 kB / 0.6755 GB, free: 13.68 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.925e-05/0.5657, allocations: 24 kB / 0.6756 GB, free: 13.65 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002347/0.568, allocations: 0.8703 MB / 0.6764 GB, free: 12.78 MB / 0.5137 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.006864/0.5749, allocations: 5.262 MB / 0.6816 GB, free: 7.137 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003485/0.5784, allocations: 0.8007 MB / 0.6823 GB, free: 6.328 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007473/0.5792, allocations: 303.5 kB / 0.6826 GB, free: 6.031 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007862/0.58, allocations: 0.9103 MB / 0.6835 GB, free: 4.918 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.261e-05/0.58, allocations: 42.52 kB / 0.6836 GB, free: 4.867 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=43): time 2.384e-06/0.58, allocations: 0 / 0.6836 GB, free: 4.867 MB / 0.5137 GB Notification: Performance of matching and sorting (n=43): time 0.008927/0.589, allocations: 1.918 MB / 0.6854 GB, free: 2.918 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.029e-05/0.589, allocations: 59.34 kB / 0.6855 GB, free: 2.848 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001768/0.5908, allocations: 1.068 MB / 0.6865 GB, free: 1.766 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 8.758e-05/0.5909, allocations: 37.7 kB / 0.6866 GB, free: 1.723 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004444/0.5914, allocations: 0.539 MB / 0.6871 GB, free: 1.18 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001364/0.5915, allocations: 149.8 kB / 0.6872 GB, free: 1.031 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002314/0.5917, allocations: 134.1 kB / 0.6874 GB, free: 0.8945 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001291/0.5919, allocations: 334 kB / 0.6877 GB, free: 0.5625 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000919/0.5928, allocations: 311.3 kB / 0.688 GB, free: 260 kB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001165/0.594, allocations: 0.5385 MB / 0.6885 GB, free: 15.62 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001744/0.5957, allocations: 0.7252 MB / 0.6892 GB, free: 14.82 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.909e-06/0.5958, allocations: 0 / 0.6892 GB, free: 14.82 MB / 0.5294 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.002907/0.5987, allocations: 1.028 MB / 0.6902 GB, free: 13.78 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 2.468e-05/0.5987, allocations: 7.984 kB / 0.6902 GB, free: 13.77 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.36e-05/0.5987, allocations: 8 kB / 0.6902 GB, free: 13.77 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001351/0.6001, allocations: 308.7 kB / 0.6905 GB, free: 13.46 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005677/0.6007, allocations: 135.8 kB / 0.6907 GB, free: 13.33 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001575/0.6023, allocations: 0.9074 MB / 0.6915 GB, free: 12.39 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001354/0.6036, allocations: 159.2 kB / 0.6917 GB, free: 12.24 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.805e-05/0.6037, allocations: 31.98 kB / 0.6917 GB, free: 12.21 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001332/0.6051, allocations: 0.5168 MB / 0.6922 GB, free: 11.68 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001112/0.6062, allocations: 0.5383 MB / 0.6928 GB, free: 11.05 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001679/0.6079, allocations: 0.7141 MB / 0.6935 GB, free: 10.26 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.986e-06/0.6079, allocations: 0 / 0.6935 GB, free: 10.26 MB / 0.5294 GB Notification: Performance of matching and sorting (n=71) (initialization_lambda0): time 0.002898/0.6108, allocations: 1.027 MB / 0.6945 GB, free: 9.223 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 1.448e-05/0.6108, allocations: 4 kB / 0.6945 GB, free: 9.219 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.204e-05/0.6109, allocations: 8 kB / 0.6945 GB, free: 9.211 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001177/0.612, allocations: 307.3 kB / 0.6948 GB, free: 8.91 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005595/0.6126, allocations: 131.8 kB / 0.6949 GB, free: 8.781 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001493/0.6141, allocations: 0.9113 MB / 0.6958 GB, free: 7.844 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001296/0.6154, allocations: 135.6 kB / 0.6959 GB, free: 7.711 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.86e-05/0.6155, allocations: 43.86 kB / 0.6959 GB, free: 7.668 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * 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 (57): * Single equations (assignments): 56 * 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.0002364/0.6157, allocations: 216.1 kB / 0.6962 GB, free: 7.449 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001964/0.6159, allocations: 110.6 kB / 0.6963 GB, free: 7.34 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003932/0.6199, allocations: 1.099 MB / 0.6973 GB, free: 6.227 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.256e-05/0.6199, allocations: 11.88 kB / 0.6973 GB, free: 6.215 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.192e-06/0.6199, allocations: 0 / 0.6973 GB, free: 6.215 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.376e-06/0.6199, allocations: 3.984 kB / 0.6973 GB, free: 6.211 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005263/0.6252, allocations: 2.154 MB / 0.6994 GB, free: 3.977 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.734e-06/0.6252, allocations: 4 kB / 0.6995 GB, free: 3.973 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002983/0.6256, allocations: 68.17 kB / 0.6995 GB, free: 3.906 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001046/0.6266, allocations: 306.7 kB / 0.6998 GB, free: 3.605 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.622e-05/0.6267, allocations: 19.98 kB / 0.6998 GB, free: 3.586 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001491/0.6282, allocations: 0.9308 MB / 0.7007 GB, free: 2.629 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.6282, allocations: 7.969 kB / 0.7007 GB, free: 2.621 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00379/0.632, allocations: 1.168 MB / 0.7019 GB, free: 1.406 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005271/0.6325, allocations: 267.5 kB / 0.7021 GB, free: 1.125 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001731/0.6327, allocations: 8 kB / 0.7021 GB, free: 1.117 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008509/0.6336, allocations: 71.92 kB / 0.7022 GB, free: 1.047 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.005e-05/0.6336, allocations: 35.89 kB / 0.7023 GB, free: 1.012 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.156e-05/0.6337, allocations: 27.92 kB / 0.7023 GB, free: 0.9844 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.001169/0.6349, allocations: 0.7551 MB / 0.703 GB, free: 228 kB / 0.5294 GB Notification: Performance of sort global known variables: time 3.11e-07/0.6349, allocations: 0 / 0.703 GB, free: 228 kB / 0.5294 GB Notification: Performance of remove unused functions: time 0.001603/0.6365, allocations: 0.5731 MB / 0.7036 GB, free: 15.64 MB / 0.545 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 (33): * Single equations (assignments): 28 * 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.0007954/0.6373, allocations: 384 kB / 0.7039 GB, free: 15.27 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.003439/0.6408, allocations: 1.156 MB / 0.7051 GB, free: 14.12 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 4.819e-06/0.6408, allocations: 0 / 0.7051 GB, free: 14.12 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0009205/0.6417, allocations: 346.5 kB / 0.7054 GB, free: 13.78 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002419/0.6441, allocations: 0.5179 MB / 0.7059 GB, free: 13.3 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00549/0.6496, allocations: 2.077 MB / 0.7079 GB, free: 11.16 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005853/0.6503, allocations: 1.057 MB / 0.709 GB, free: 10.07 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002867/0.6506, allocations: 83.41 kB / 0.709 GB, free: 9.984 MB / 0.545 GB Notification: Performance of SimCode: time 9.12e-07/0.6506, allocations: 0 / 0.709 GB, free: 9.984 MB / 0.545 GB Notification: Performance of Templates: time 0.0333/0.6839, allocations: 24 MB / 0.7325 GB, free: 2.145 MB / 0.5606 GB make -j1 -f IDEAS_dev_IDEAS.Fluid.HeatPumps.Examples.Carnot_TCon.makefile (rm -f IDEAS_dev_IDEAS.Fluid.HeatPumps.Examples.Carnot_TCon.pipe ; mkfifo IDEAS_dev_IDEAS.Fluid.HeatPumps.Examples.Carnot_TCon.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Fluid.HeatPumps.Examples.Carnot_TCon.pipe >> ../files/IDEAS_dev_IDEAS.Fluid.HeatPumps.Examples.Carnot_TCon.sim & ./IDEAS_dev_IDEAS.Fluid.HeatPumps.Examples.Carnot_TCon -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_dev_IDEAS.Fluid.HeatPumps.Examples.Carnot_TCon.pipe 2>&1)