Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.Fluid.HeatPumps.Validation.Carnot_TCon_reverseFlow.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.Validation.Carnot_TCon_reverseFlow,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Fluid.HeatPumps.Validation.Carnot_TCon_reverseFlow") translateModel(IDEAS.Fluid.HeatPumps.Validation.Carnot_TCon_reverseFlow,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Fluid.HeatPumps.Validation.Carnot_TCon_reverseFlow") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001163/0.001163, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001288/0.001288, allocations: 195.9 kB / 16.25 MB, free: 6.629 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.347/1.347, allocations: 222.9 MB / 239.9 MB, free: 4.543 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9582/0.9582, allocations: 135.1 MB / 425.2 MB, free: 11.88 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001214/0.001214, allocations: 64.25 kB / 0.5049 GB, free: 5.648 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1774/0.1786, allocations: 80.93 MB / 0.5839 GB, free: 4.879 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.HeatPumps.Validation.Carnot_TCon_reverseFlow): time 0.3716/0.5503, allocations: 60.67 MB / 0.6431 GB, free: 17.53 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.01618/0.5665, allocations: 11.91 MB / 0.6548 GB, free: 8.988 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00324/0.5698, allocations: 57.41 kB / 0.6548 GB, free: 8.965 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.00237/0.5722, allocations: 0.5754 MB / 0.6554 GB, free: 8.621 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.006092/0.5783, allocations: 1.821 MB / 0.6572 GB, free: 7.543 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.003213/0.5816, allocations: 1.104 MB / 0.6582 GB, free: 6.918 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.004182/0.5858, allocations: 3.107 MB / 0.6613 GB, free: 5.375 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002158/0.5879, allocations: 1.119 MB / 0.6624 GB, free: 4.824 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004122/0.5921, allocations: 1.328 MB / 0.6637 GB, free: 4.16 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002175/0.5943, allocations: 0.9395 MB / 0.6646 GB, free: 3.73 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0004706/0.5948, allocations: 123.3 kB / 0.6647 GB, free: 3.727 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00508/0.5999, allocations: 1.448 MB / 0.6661 GB, free: 3.234 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0006364/0.6005, allocations: 303.2 kB / 0.6664 GB, free: 3.035 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.002056/0.6026, allocations: 0.7067 MB / 0.6671 GB, free: 2.594 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0061/0.6087, allocations: 2.305 MB / 0.6693 GB, free: 1.723 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 6.182e-06/0.6087, allocations: 0.75 kB / 0.6693 GB, free: 1.723 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.472e-06/0.6087, allocations: 0 / 0.6693 GB, free: 1.723 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 7.494e-05/0.6088, allocations: 1.25 kB / 0.6693 GB, free: 1.723 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: 194 * Number of variables: 194 Notification: Performance of Generate backend data structure: time 0.004865/0.6137, allocations: 1.737 MB / 0.671 GB, free: 0.543 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.565e-05/0.6137, allocations: 10.5 kB / 0.6711 GB, free: 0.543 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002655/0.6164, allocations: 456.8 kB / 0.6715 GB, free: 464 kB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002365/0.6188, allocations: 1.137 MB / 0.6726 GB, free: 15.73 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003474/0.6191, allocations: 115.1 kB / 0.6727 GB, free: 15.71 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001375/0.6193, allocations: 84.05 kB / 0.6728 GB, free: 15.68 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002336/0.6216, allocations: 1.008 MB / 0.6738 GB, free: 15.24 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.184e-05/0.6217, allocations: 5.188 kB / 0.6738 GB, free: 15.24 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.437e-05/0.6217, allocations: 34.84 kB / 0.6738 GB, free: 15.21 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.176e-05/0.6218, allocations: 18.34 kB / 0.6738 GB, free: 15.21 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002632/0.6244, allocations: 0.9482 MB / 0.6748 GB, free: 14.9 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.007974/0.6324, allocations: 4.684 MB / 0.6793 GB, free: 11.44 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004258/0.6367, allocations: 1.004 MB / 0.6803 GB, free: 11.15 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001164/0.6379, allocations: 413.1 kB / 0.6807 GB, free: 11.02 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001154/0.639, allocations: 1.016 MB / 0.6817 GB, free: 9.879 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.025e-05/0.6391, allocations: 41.14 kB / 0.6817 GB, free: 9.832 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=53): time 3.577e-06/0.6391, allocations: 3.938 kB / 0.6817 GB, free: 9.828 MB / 0.5137 GB Notification: Performance of matching and sorting (n=53): time 0.01067/0.6498, allocations: 2.23 MB / 0.6839 GB, free: 9.238 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.755e-05/0.6499, allocations: 57 kB / 0.684 GB, free: 9.176 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002057/0.6519, allocations: 0.9431 MB / 0.6849 GB, free: 8.773 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0001395/0.6521, allocations: 37.98 kB / 0.6849 GB, free: 8.734 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005251/0.6526, allocations: 0.4949 MB / 0.6854 GB, free: 8.344 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002466/0.6529, allocations: 191.5 kB / 0.6856 GB, free: 8.191 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000312/0.6532, allocations: 131.1 kB / 0.6857 GB, free: 8.129 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001478/0.6534, allocations: 325.5 kB / 0.686 GB, free: 7.816 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001155/0.6545, allocations: 360.6 kB / 0.6864 GB, free: 7.703 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001359/0.6559, allocations: 0.5176 MB / 0.6869 GB, free: 7.41 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002264/0.6582, allocations: 0.766 MB / 0.6876 GB, free: 7.07 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.945e-06/0.6582, allocations: 1.156 kB / 0.6876 GB, free: 7.07 MB / 0.5137 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.003512/0.6617, allocations: 1.073 MB / 0.6887 GB, free: 6.68 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 2.85e-05/0.6617, allocations: 7.344 kB / 0.6887 GB, free: 6.68 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.288e-05/0.6618, allocations: 3.625 kB / 0.6887 GB, free: 6.68 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001554/0.6633, allocations: 312.7 kB / 0.689 GB, free: 6.602 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00075/0.6641, allocations: 140.7 kB / 0.6891 GB, free: 6.582 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00184/0.6659, allocations: 0.9175 MB / 0.69 GB, free: 5.918 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001724/0.6677, allocations: 163.4 kB / 0.6902 GB, free: 5.863 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001293/0.6678, allocations: 28.59 kB / 0.6902 GB, free: 5.859 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001802/0.6696, allocations: 0.5596 MB / 0.6907 GB, free: 5.598 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001415/0.6711, allocations: 0.5153 MB / 0.6912 GB, free: 5.305 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002218/0.6733, allocations: 0.7551 MB / 0.692 GB, free: 4.969 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.341e-06/0.6733, allocations: 1.906 kB / 0.692 GB, free: 4.969 MB / 0.5137 GB Notification: Performance of matching and sorting (n=69) (initialization_lambda0): time 0.003615/0.6769, allocations: 1.061 MB / 0.693 GB, free: 4.59 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 2.072e-05/0.677, allocations: 6.938 kB / 0.693 GB, free: 4.59 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.126e-06/0.677, allocations: 1.906 kB / 0.693 GB, free: 4.59 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001348/0.6783, allocations: 307.4 kB / 0.6933 GB, free: 4.512 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007086/0.6791, allocations: 131.4 kB / 0.6935 GB, free: 4.5 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001763/0.6808, allocations: 0.9089 MB / 0.6943 GB, free: 3.84 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001778/0.6826, allocations: 144.8 kB / 0.6945 GB, free: 3.805 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001054/0.6827, allocations: 34.06 kB / 0.6945 GB, free: 3.797 MB / 0.5137 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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 (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.0003473/0.6831, allocations: 214.8 kB / 0.6947 GB, free: 3.59 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004195/0.6835, allocations: 110.8 kB / 0.6948 GB, free: 3.531 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004941/0.6885, allocations: 1.318 MB / 0.6961 GB, free: 3.105 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.97e-05/0.6885, allocations: 7.594 kB / 0.6961 GB, free: 3.105 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.076e-05/0.6885, allocations: 0 / 0.6961 GB, free: 3.105 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.063e-05/0.6885, allocations: 3.984 kB / 0.6961 GB, free: 3.105 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00709/0.6956, allocations: 2.414 MB / 0.6985 GB, free: 2.023 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.274e-05/0.6957, allocations: 6.062 kB / 0.6985 GB, free: 2.02 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006224/0.6963, allocations: 107.2 kB / 0.6986 GB, free: 2.008 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001102/0.6974, allocations: 295.8 kB / 0.6989 GB, free: 1.934 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.97e-05/0.6975, allocations: 20.92 kB / 0.6989 GB, free: 1.926 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001637/0.6991, allocations: 0.9406 MB / 0.6998 GB, free: 1.254 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.446e-06/0.6992, allocations: 9.969 kB / 0.6998 GB, free: 1.246 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004752/0.7039, allocations: 1.347 MB / 0.7011 GB, free: 0.5117 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008/0.7047, allocations: 276.3 kB / 0.7014 GB, free: 272 kB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003639/0.7051, allocations: 16.34 kB / 0.7014 GB, free: 260 kB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001306/0.7064, allocations: 112.2 kB / 0.7015 GB, free: 208 kB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001128/0.7066, allocations: 38.64 kB / 0.7016 GB, free: 188 kB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.316e-05/0.7066, allocations: 27.81 kB / 0.7016 GB, free: 176 kB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001267/0.7079, allocations: 0.6509 MB / 0.7022 GB, free: 15.79 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.5e-07/0.7079, allocations: 0 / 0.7022 GB, free: 15.79 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.002431/0.7104, allocations: 0.5716 MB / 0.7028 GB, free: 15.66 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 (42): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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.001207/0.7116, allocations: 381.8 kB / 0.7031 GB, free: 15.45 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.004533/0.7161, allocations: 1.337 MB / 0.7044 GB, free: 14.84 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 6.402e-06/0.7161, allocations: 0.625 kB / 0.7044 GB, free: 14.84 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.001366/0.7175, allocations: 470.1 kB / 0.7049 GB, free: 14.63 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002798/0.7203, allocations: 0.4933 MB / 0.7054 GB, free: 14.37 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00475/0.7251, allocations: 2.308 MB / 0.7076 GB, free: 12.82 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007772/0.7259, allocations: 1.072 MB / 0.7087 GB, free: 11.95 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.00124/0.7271, allocations: 235.7 kB / 0.7089 GB, free: 11.83 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002761/0.7274, allocations: 83.84 kB / 0.709 GB, free: 11.81 MB / 0.5294 GB Notification: Performance of SimCode: time 8.42e-07/0.7274, allocations: 0 / 0.709 GB, free: 11.81 MB / 0.5294 GB Notification: Performance of Templates: time 0.05322/0.7807, allocations: 24.42 MB / 0.7328 GB, free: 4.082 MB / 0.545 GB make -j1 -f IDEAS_dev_IDEAS.Fluid.HeatPumps.Validation.Carnot_TCon_reverseFlow.makefile (rm -f IDEAS_dev_IDEAS.Fluid.HeatPumps.Validation.Carnot_TCon_reverseFlow.pipe ; mkfifo IDEAS_dev_IDEAS.Fluid.HeatPumps.Validation.Carnot_TCon_reverseFlow.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Fluid.HeatPumps.Validation.Carnot_TCon_reverseFlow.pipe >> ../files/IDEAS_dev_IDEAS.Fluid.HeatPumps.Validation.Carnot_TCon_reverseFlow.sim & ./IDEAS_dev_IDEAS.Fluid.HeatPumps.Validation.Carnot_TCon_reverseFlow -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_dev_IDEAS.Fluid.HeatPumps.Validation.Carnot_TCon_reverseFlow.pipe 2>&1)