Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.Fluid.HeatPumps.Examples.Carnot_y.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_y,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Fluid.HeatPumps.Examples.Carnot_y") translateModel(IDEAS.Fluid.HeatPumps.Examples.Carnot_y,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Fluid.HeatPumps.Examples.Carnot_y") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001618/0.001618, allocations: 110.4 kB / 15.99 MB, free: 6.367 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.001886/0.001887, allocations: 191.5 kB / 16.91 MB, free: 6.195 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.378/1.378, allocations: 222.9 MB / 240.6 MB, free: 15.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8136/0.8136, allocations: 135.1 MB / 425.9 MB, free: 4.301 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001403/0.001403, allocations: 55.91 kB / 0.5055 GB, free: 8.711 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3879/0.3893, allocations: 80.91 MB / 0.5845 GB, free: 25.08 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.HeatPumps.Examples.Carnot_y): time 0.06291/0.4522, allocations: 74.52 MB / 0.6573 GB, free: 72 kB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.02063/0.4729, allocations: 15.04 MB / 0.672 GB, free: 0.9961 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002888/0.4759, allocations: 63.62 kB / 0.672 GB, free: 0.9336 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.002439/0.4784, allocations: 0.715 MB / 0.6727 GB, free: 220 kB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.007164/0.4856, allocations: 2.407 MB / 0.6751 GB, free: 13.8 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.00369/0.4893, allocations: 1.279 MB / 0.6763 GB, free: 12.54 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.006379/0.4956, allocations: 4.434 MB / 0.6807 GB, free: 8.09 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002394/0.4981, allocations: 1.437 MB / 0.6821 GB, free: 6.617 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004317/0.5024, allocations: 1.641 MB / 0.6837 GB, free: 4.977 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002212/0.5047, allocations: 1.256 MB / 0.6849 GB, free: 3.715 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 0.0004828/0.5052, allocations: 167.9 kB / 0.685 GB, free: 3.551 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003342/0.5085, allocations: 1.419 MB / 0.6864 GB, free: 2.129 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0005034/0.509, allocations: 406.6 kB / 0.6868 GB, free: 1.73 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.001302/0.5103, allocations: 0.906 MB / 0.6877 GB, free: 0.8203 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.003196/0.5135, allocations: 2.245 MB / 0.6899 GB, free: 14.57 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 6.201e-06/0.5136, allocations: 3.938 kB / 0.6899 GB, free: 14.57 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.964e-06/0.5136, allocations: 0 / 0.6899 GB, free: 14.57 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 3.917e-05/0.5136, allocations: 0 / 0.6899 GB, free: 14.57 MB / 0.5294 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 240 * Number of variables: 240 Notification: Performance of Generate backend data structure: time 0.003988/0.5176, allocations: 2.095 MB / 0.6919 GB, free: 12.41 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.782e-05/0.5177, allocations: 9.109 kB / 0.692 GB, free: 12.4 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008536/0.5185, allocations: 238.8 kB / 0.6922 GB, free: 12.16 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002559/0.5211, allocations: 1.489 MB / 0.6936 GB, free: 10.62 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.972e-05/0.5212, allocations: 74 kB / 0.6937 GB, free: 10.55 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001526/0.5214, allocations: 108 kB / 0.6938 GB, free: 10.44 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002086/0.5234, allocations: 1.096 MB / 0.6949 GB, free: 9.309 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.63e-05/0.5235, allocations: 0 / 0.6949 GB, free: 9.309 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001002/0.5236, allocations: 36 kB / 0.6949 GB, free: 9.273 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.812e-05/0.5236, allocations: 27.94 kB / 0.6949 GB, free: 9.246 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001855/0.5255, allocations: 0.8978 MB / 0.6958 GB, free: 8.348 MB / 0.5294 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.006462/0.532, allocations: 4.911 MB / 0.7006 GB, free: 3.148 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001442/0.5334, allocations: 0.6165 MB / 0.7012 GB, free: 2.527 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006905/0.5341, allocations: 346.3 kB / 0.7016 GB, free: 2.188 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006698/0.5348, allocations: 0.8238 MB / 0.7024 GB, free: 1.18 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.603e-05/0.5349, allocations: 39.12 kB / 0.7024 GB, free: 1.133 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=61): time 2.665e-06/0.5349, allocations: 0 / 0.7024 GB, free: 1.133 MB / 0.5294 GB Notification: Performance of matching and sorting (n=61): time 0.007285/0.5422, allocations: 1.701 MB / 0.7041 GB, free: 15.4 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.277e-05/0.5423, allocations: 59.97 kB / 0.7041 GB, free: 15.33 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002065/0.5443, allocations: 1.214 MB / 0.7053 GB, free: 14.1 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0001267/0.5445, allocations: 41.7 kB / 0.7053 GB, free: 14.05 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005729/0.5451, allocations: 0.6065 MB / 0.7059 GB, free: 13.44 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002559/0.5453, allocations: 209 kB / 0.7061 GB, free: 13.23 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002825/0.5456, allocations: 158.5 kB / 0.7063 GB, free: 13.07 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001319/0.5458, allocations: 341.9 kB / 0.7066 GB, free: 12.73 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006777/0.5464, allocations: 288.7 kB / 0.7069 GB, free: 12.44 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008908/0.5473, allocations: 0.4937 MB / 0.7074 GB, free: 11.86 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001439/0.5488, allocations: 0.709 MB / 0.7081 GB, free: 11.11 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.196e-06/0.5488, allocations: 4 kB / 0.7081 GB, free: 11.11 MB / 0.545 GB Notification: Performance of matching and sorting (n=88) (initialization): time 0.004815/0.5536, allocations: 1.273 MB / 0.7093 GB, free: 9.82 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 2.344e-05/0.5537, allocations: 4.375 kB / 0.7093 GB, free: 9.816 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.42e-05/0.5537, allocations: 8 kB / 0.7093 GB, free: 9.809 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006259/0.5543, allocations: 145.7 kB / 0.7095 GB, free: 9.664 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006504/0.555, allocations: 151.8 kB / 0.7096 GB, free: 9.516 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008875/0.5559, allocations: 0.707 MB / 0.7103 GB, free: 8.785 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001347/0.5573, allocations: 155.1 kB / 0.7104 GB, free: 8.633 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.617e-05/0.5574, allocations: 35.97 kB / 0.7105 GB, free: 8.598 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001179/0.5586, allocations: 0.5526 MB / 0.711 GB, free: 8.043 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0008647/0.5594, allocations: 0.4928 MB / 0.7115 GB, free: 7.473 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001413/0.5609, allocations: 0.7012 MB / 0.7122 GB, free: 6.719 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.606e-06/0.5609, allocations: 0 / 0.7122 GB, free: 6.719 MB / 0.545 GB Notification: Performance of matching and sorting (n=88) (initialization_lambda0): time 0.004882/0.5658, allocations: 1.269 MB / 0.7134 GB, free: 5.438 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.598e-05/0.5658, allocations: 4.375 kB / 0.7134 GB, free: 5.434 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.053e-05/0.5658, allocations: 11.94 kB / 0.7134 GB, free: 5.422 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005403/0.5664, allocations: 140.7 kB / 0.7136 GB, free: 5.281 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006257/0.567, allocations: 151.8 kB / 0.7137 GB, free: 5.133 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009026/0.5679, allocations: 0.7045 MB / 0.7144 GB, free: 4.402 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001499/0.5694, allocations: 141.7 kB / 0.7145 GB, free: 4.266 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001004/0.5695, allocations: 28 kB / 0.7146 GB, free: 4.238 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (78): * Single equations (assignments): 77 * 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,10)} Notification: Performance of prepare postOptimizeDAE: time 0.0003175/0.5699, allocations: 232 kB / 0.7148 GB, free: 4.004 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004513/0.5703, allocations: 142.3 kB / 0.7149 GB, free: 3.863 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004719/0.5751, allocations: 1.256 MB / 0.7161 GB, free: 2.594 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.101e-05/0.5751, allocations: 8 kB / 0.7161 GB, free: 2.586 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.975e-06/0.5751, allocations: 0 / 0.7161 GB, free: 2.586 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004093/0.5792, allocations: 1.115 MB / 0.7172 GB, free: 1.438 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007383/0.5866, allocations: 2.595 MB / 0.7198 GB, free: 14.73 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.138e-05/0.5867, allocations: 8.094 kB / 0.7198 GB, free: 14.72 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005084/0.5872, allocations: 111.9 kB / 0.7199 GB, free: 14.61 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005125/0.5877, allocations: 132.7 kB / 0.72 GB, free: 14.48 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.665e-05/0.5878, allocations: 20 kB / 0.72 GB, free: 14.46 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005112/0.5929, allocations: 2.64 MB / 0.7226 GB, free: 11.66 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.452e-06/0.593, allocations: 4 kB / 0.7226 GB, free: 11.66 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005397/0.5984, allocations: 1.695 MB / 0.7243 GB, free: 9.898 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000825/0.5992, allocations: 311.4 kB / 0.7246 GB, free: 9.574 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003897/0.5996, allocations: 19.92 kB / 0.7246 GB, free: 9.555 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001112/0.6007, allocations: 83.83 kB / 0.7247 GB, free: 9.473 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001669/0.6009, allocations: 60.23 kB / 0.7247 GB, free: 9.414 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.598e-05/0.601, allocations: 27.98 kB / 0.7247 GB, free: 9.387 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.001612/0.6026, allocations: 0.8779 MB / 0.7256 GB, free: 8.508 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6027, allocations: 0 / 0.7256 GB, free: 8.508 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.002441/0.6051, allocations: 0.7096 MB / 0.7263 GB, free: 7.797 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 2 (heaPum.con.vol.dynBal.U,heaPum.eva.vol.dynBal.U) * 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 (55): * Single equations (assignments): 50 * 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,10)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001062/0.6062, allocations: 452.3 kB / 0.7267 GB, free: 7.359 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.002935/0.6091, allocations: 1.16 MB / 0.7279 GB, free: 6.199 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 6.683e-06/0.6091, allocations: 0 / 0.7279 GB, free: 6.199 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.00151/0.6107, allocations: 0.5566 MB / 0.7284 GB, free: 5.633 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003939/0.6146, allocations: 0.8119 MB / 0.7292 GB, free: 4.875 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004798/0.6194, allocations: 2.801 MB / 0.7319 GB, free: 1.988 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009513/0.6204, allocations: 1.164 MB / 0.7331 GB, free: 0.7969 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003792/0.6208, allocations: 115.4 kB / 0.7332 GB, free: 0.6836 MB / 0.5606 GB Notification: Performance of SimCode: time 8.72e-07/0.6208, allocations: 0 / 0.7332 GB, free: 0.6836 MB / 0.5606 GB Notification: Performance of Templates: time 0.3341/0.9549, allocations: 30.94 MB / 0.7634 GB, free: 150.2 MB / 0.5762 GB make -j1 -f IDEAS_dev_IDEAS.Fluid.HeatPumps.Examples.Carnot_y.makefile (rm -f IDEAS_dev_IDEAS.Fluid.HeatPumps.Examples.Carnot_y.pipe ; mkfifo IDEAS_dev_IDEAS.Fluid.HeatPumps.Examples.Carnot_y.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Fluid.HeatPumps.Examples.Carnot_y.pipe >> ../files/IDEAS_dev_IDEAS.Fluid.HeatPumps.Examples.Carnot_y.sim & ./IDEAS_dev_IDEAS.Fluid.HeatPumps.Examples.Carnot_y -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_dev_IDEAS.Fluid.HeatPumps.Examples.Carnot_y.pipe 2>&1)