Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_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/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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_IDEAS.Fluid.HeatPumps.Examples.Carnot_TCon") translateModel(IDEAS.Fluid.HeatPumps.Examples.Carnot_TCon,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_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.001075/0.001075, allocations: 117.5 kB / 16.37 MB, free: 6.004 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.001037/0.001037, allocations: 193.3 kB / 17.31 MB, free: 5.613 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.336/1.336, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7979/0.7979, allocations: 132.2 MB / 423.4 MB, free: 6.609 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001209/0.001209, allocations: 64.08 kB / 0.5032 GB, free: 10.97 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3786/0.3798, allocations: 80.18 MB / 0.5815 GB, free: 27.64 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.HeatPumps.Examples.Carnot_TCon): time 0.05/0.4299, allocations: 61.18 MB / 0.6412 GB, free: 0.9102 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.01799/0.4479, allocations: 11.97 MB / 0.6529 GB, free: 4.91 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002401/0.4504, allocations: 63.69 kB / 0.653 GB, free: 4.848 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002169/0.4525, allocations: 0.6752 MB / 0.6536 GB, free: 4.168 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006218/0.4588, allocations: 1.958 MB / 0.6556 GB, free: 2.203 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003338/0.4622, allocations: 1.216 MB / 0.6567 GB, free: 0.9961 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.004518/0.4667, allocations: 3.075 MB / 0.6597 GB, free: 13.91 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001702/0.4684, allocations: 1.108 MB / 0.6608 GB, free: 12.77 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003071/0.4715, allocations: 1.329 MB / 0.6621 GB, free: 11.44 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001463/0.473, allocations: 0.8906 MB / 0.663 GB, free: 10.55 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0001762/0.4732, allocations: 112 kB / 0.6631 GB, free: 10.44 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002721/0.4759, allocations: 1.443 MB / 0.6645 GB, free: 8.992 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0003006/0.4762, allocations: 298.8 kB / 0.6648 GB, free: 8.699 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0007989/0.477, allocations: 0.6803 MB / 0.6655 GB, free: 8.016 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.003478/0.4805, allocations: 2.305 MB / 0.6677 GB, free: 5.707 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.106e-06/0.4805, allocations: 0 / 0.6677 GB, free: 5.707 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.232e-06/0.4806, allocations: 0 / 0.6677 GB, free: 5.707 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.833e-05/0.4806, allocations: 0 / 0.6677 GB, free: 5.707 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.003085/0.4837, allocations: 1.724 MB / 0.6694 GB, free: 3.922 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.677e-05/0.4837, allocations: 8.031 kB / 0.6694 GB, free: 3.914 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002038/0.4858, allocations: 410.8 kB / 0.6698 GB, free: 3.512 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002234/0.488, allocations: 1.167 MB / 0.6709 GB, free: 2.289 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.558e-05/0.4881, allocations: 66 kB / 0.671 GB, free: 2.223 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001251/0.4882, allocations: 80 kB / 0.6711 GB, free: 2.145 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002014/0.4902, allocations: 0.9976 MB / 0.672 GB, free: 1.09 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.234e-05/0.4903, allocations: 7.922 kB / 0.6721 GB, free: 1.082 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.994e-05/0.4904, allocations: 36 kB / 0.6721 GB, free: 1.047 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.678e-05/0.4904, allocations: 20 kB / 0.6721 GB, free: 1.027 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002126/0.4925, allocations: 0.8547 MB / 0.6729 GB, free: 172 kB / 0.4981 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.006587/0.4991, allocations: 5.227 MB / 0.678 GB, free: 10.56 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003093/0.5022, allocations: 0.7826 MB / 0.6788 GB, free: 9.777 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006729/0.5029, allocations: 295 kB / 0.6791 GB, free: 9.488 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006305/0.5036, allocations: 0.9141 MB / 0.68 GB, free: 8.371 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.749e-05/0.5036, allocations: 42.52 kB / 0.68 GB, free: 8.32 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=43): time 1.813e-06/0.5036, allocations: 0 / 0.68 GB, free: 8.32 MB / 0.5137 GB Notification: Performance of matching and sorting (n=43): time 0.007654/0.5113, allocations: 1.848 MB / 0.6818 GB, free: 6.441 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.632e-05/0.5114, allocations: 63.41 kB / 0.6819 GB, free: 6.367 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001595/0.513, allocations: 1.072 MB / 0.6829 GB, free: 5.281 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 7.727e-05/0.513, allocations: 41.64 kB / 0.683 GB, free: 5.234 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004198/0.5135, allocations: 0.5273 MB / 0.6835 GB, free: 4.703 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001263/0.5136, allocations: 149.8 kB / 0.6836 GB, free: 4.555 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000223/0.5138, allocations: 138.1 kB / 0.6838 GB, free: 4.41 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001118/0.514, allocations: 334 kB / 0.6841 GB, free: 4.078 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008117/0.5148, allocations: 307.2 kB / 0.6844 GB, free: 3.777 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009776/0.5158, allocations: 0.5346 MB / 0.6849 GB, free: 3.141 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001504/0.5173, allocations: 0.7172 MB / 0.6856 GB, free: 2.352 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.941e-06/0.5173, allocations: 7.938 kB / 0.6856 GB, free: 2.344 MB / 0.5137 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.00266/0.52, allocations: 1.008 MB / 0.6866 GB, free: 1.324 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 2.072e-05/0.52, allocations: 12 kB / 0.6866 GB, free: 1.312 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.078e-05/0.52, allocations: 4 kB / 0.6866 GB, free: 1.309 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001204/0.5212, allocations: 296.6 kB / 0.6869 GB, free: 1.016 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005411/0.5218, allocations: 131.8 kB / 0.687 GB, free: 0.8867 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001381/0.5232, allocations: 0.9026 MB / 0.6879 GB, free: 15.96 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001235/0.5244, allocations: 151.2 kB / 0.688 GB, free: 15.81 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.574e-05/0.5245, allocations: 31.98 kB / 0.6881 GB, free: 15.78 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001111/0.5256, allocations: 0.5051 MB / 0.6886 GB, free: 15.27 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0009964/0.5266, allocations: 0.5307 MB / 0.6891 GB, free: 14.64 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001522/0.5282, allocations: 0.7103 MB / 0.6898 GB, free: 13.86 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.99e-06/0.5282, allocations: 4 kB / 0.6898 GB, free: 13.86 MB / 0.5294 GB Notification: Performance of matching and sorting (n=71) (initialization_lambda0): time 0.002644/0.5308, allocations: 1.008 MB / 0.6908 GB, free: 12.84 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 1.427e-05/0.5308, allocations: 11.92 kB / 0.6908 GB, free: 12.83 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.178e-06/0.5309, allocations: 8 kB / 0.6908 GB, free: 12.82 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001026/0.5319, allocations: 296.5 kB / 0.6911 GB, free: 12.53 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005372/0.5324, allocations: 127.8 kB / 0.6912 GB, free: 12.4 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001308/0.5338, allocations: 0.8957 MB / 0.6921 GB, free: 11.48 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001233/0.535, allocations: 131.7 kB / 0.6922 GB, free: 11.35 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.768e-05/0.5351, allocations: 31.98 kB / 0.6922 GB, free: 11.32 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.0002223/0.5353, allocations: 224 kB / 0.6924 GB, free: 11.09 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001867/0.5355, allocations: 114.6 kB / 0.6925 GB, free: 10.98 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003539/0.5391, allocations: 1.078 MB / 0.6936 GB, free: 9.879 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.785e-05/0.5391, allocations: 15.92 kB / 0.6936 GB, free: 9.863 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.041e-06/0.5391, allocations: 0 / 0.6936 GB, free: 9.863 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.961e-06/0.5391, allocations: 0 / 0.6936 GB, free: 9.863 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004952/0.5441, allocations: 2.154 MB / 0.6957 GB, free: 7.629 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.257e-06/0.5441, allocations: 8 kB / 0.6957 GB, free: 7.621 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002824/0.5444, allocations: 64.17 kB / 0.6958 GB, free: 7.559 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009318/0.5453, allocations: 292.5 kB / 0.6961 GB, free: 7.27 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.086e-05/0.5454, allocations: 19.98 kB / 0.6961 GB, free: 7.25 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001364/0.5468, allocations: 0.9254 MB / 0.697 GB, free: 6.301 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.689e-06/0.5468, allocations: 4.031 kB / 0.697 GB, free: 6.297 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003329/0.5501, allocations: 1.141 MB / 0.6981 GB, free: 5.109 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005087/0.5506, allocations: 275.5 kB / 0.6984 GB, free: 4.82 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001414/0.5508, allocations: 11.98 kB / 0.6984 GB, free: 4.809 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007862/0.5516, allocations: 67.92 kB / 0.6984 GB, free: 4.742 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.376e-05/0.5517, allocations: 47.75 kB / 0.6985 GB, free: 4.695 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.209e-05/0.5517, allocations: 23.98 kB / 0.6985 GB, free: 4.672 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.001168/0.5529, allocations: 0.7551 MB / 0.6992 GB, free: 3.91 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.81e-07/0.5529, allocations: 0 / 0.6992 GB, free: 3.91 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.001545/0.5545, allocations: 0.5692 MB / 0.6998 GB, free: 3.34 MB / 0.5294 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.0007598/0.5552, allocations: 377.3 kB / 0.7002 GB, free: 2.973 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.002984/0.5582, allocations: 1.128 MB / 0.7013 GB, free: 1.848 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 4.278e-06/0.5583, allocations: 0 / 0.7013 GB, free: 1.848 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0008604/0.5591, allocations: 346.7 kB / 0.7016 GB, free: 1.508 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002057/0.5612, allocations: 0.5075 MB / 0.7021 GB, free: 1.027 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004733/0.5659, allocations: 1.996 MB / 0.704 GB, free: 14.97 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005967/0.5666, allocations: 1.065 MB / 0.7051 GB, free: 13.88 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0007995/0.5674, allocations: 226.4 kB / 0.7053 GB, free: 13.66 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001801/0.5676, allocations: 75.42 kB / 0.7054 GB, free: 13.59 MB / 0.545 GB Notification: Performance of SimCode: time 8.51e-07/0.5676, allocations: 0 / 0.7054 GB, free: 13.59 MB / 0.545 GB Notification: Performance of Templates: time 0.03879/0.6064, allocations: 24.92 MB / 0.7297 GB, free: 4.945 MB / 0.5606 GB make -j1 -f IDEAS_IDEAS.Fluid.HeatPumps.Examples.Carnot_TCon.makefile (rm -f IDEAS_IDEAS.Fluid.HeatPumps.Examples.Carnot_TCon.pipe ; mkfifo IDEAS_IDEAS.Fluid.HeatPumps.Examples.Carnot_TCon.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.HeatPumps.Examples.Carnot_TCon.pipe >> ../files/IDEAS_IDEAS.Fluid.HeatPumps.Examples.Carnot_TCon.sim & ./IDEAS_IDEAS.Fluid.HeatPumps.Examples.Carnot_TCon -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > IDEAS_IDEAS.Fluid.HeatPumps.Examples.Carnot_TCon.pipe 2>&1)