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.005432/0.005432, allocations: 101.2 kB / 15.73 MB, free: 5.996 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.001246/0.001246, allocations: 185.3 kB / 16.67 MB, free: 5.93 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.282/1.282, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7222/0.7222, allocations: 132.2 MB / 422.7 MB, free: 1.707 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001133/0.001133, allocations: 66.77 kB / 0.5813 GB, free: 0.8672 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1594/0.1606, allocations: 80.21 MB / 0.6597 GB, free: 13.53 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.HeatPumps.Examples.Carnot_TCon): time 0.05674/0.2174, allocations: 61.17 MB / 0.7194 GB, free: 144 kB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.01681/0.2342, allocations: 11.98 MB / 0.7311 GB, free: 4.125 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002059/0.2363, allocations: 55.69 kB / 0.7312 GB, free: 4.07 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.002691/0.239, allocations: 0.6791 MB / 0.7318 GB, free: 3.387 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.005287/0.2444, allocations: 1.961 MB / 0.7337 GB, free: 1.418 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.00309/0.2475, allocations: 1.202 MB / 0.7349 GB, free: 232 kB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.004114/0.2516, allocations: 3.082 MB / 0.7379 GB, free: 13.14 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001619/0.2532, allocations: 1.104 MB / 0.739 GB, free: 12 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002925/0.2562, allocations: 1.329 MB / 0.7403 GB, free: 10.67 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001571/0.2578, allocations: 0.8983 MB / 0.7412 GB, free: 9.77 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0003613/0.2581, allocations: 116 kB / 0.7413 GB, free: 9.656 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002775/0.2609, allocations: 1.435 MB / 0.7427 GB, free: 8.219 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0002806/0.2612, allocations: 294.8 kB / 0.743 GB, free: 7.93 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0008215/0.262, allocations: 0.692 MB / 0.7436 GB, free: 7.234 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.003458/0.2655, allocations: 2.32 MB / 0.7459 GB, free: 4.906 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.2655, allocations: 0 / 0.7459 GB, free: 4.906 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.853e-06/0.2655, allocations: 4 kB / 0.7459 GB, free: 4.902 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.67e-05/0.2656, allocations: 0 / 0.7459 GB, free: 4.902 MB / 0.5762 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.002822/0.2684, allocations: 1.771 MB / 0.7476 GB, free: 3.066 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.323e-05/0.2684, allocations: 8.031 kB / 0.7476 GB, free: 3.059 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002029/0.2705, allocations: 419.4 kB / 0.748 GB, free: 2.648 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001997/0.2725, allocations: 1.164 MB / 0.7492 GB, free: 1.43 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.935e-05/0.2725, allocations: 69.94 kB / 0.7493 GB, free: 1.359 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001504/0.2727, allocations: 83.94 kB / 0.7493 GB, free: 1.277 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001833/0.2745, allocations: 0.9976 MB / 0.7503 GB, free: 228 kB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.202e-05/0.2746, allocations: 7.938 kB / 0.7503 GB, free: 220 kB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.825e-05/0.2747, allocations: 32 kB / 0.7503 GB, free: 188 kB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.864e-05/0.2747, allocations: 20 kB / 0.7504 GB, free: 168 kB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002123/0.2768, allocations: 0.8508 MB / 0.7512 GB, free: 15.31 MB / 0.5919 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.00676/0.2836, allocations: 5.233 MB / 0.7563 GB, free: 9.707 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003161/0.2868, allocations: 0.7816 MB / 0.7571 GB, free: 8.918 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006606/0.2874, allocations: 295.1 kB / 0.7574 GB, free: 8.629 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006632/0.2881, allocations: 0.9064 MB / 0.7582 GB, free: 7.52 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.783e-05/0.2882, allocations: 42.56 kB / 0.7583 GB, free: 7.469 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=43): time 2.345e-06/0.2882, allocations: 0 / 0.7583 GB, free: 7.469 MB / 0.5919 GB Notification: Performance of matching and sorting (n=43): time 0.007698/0.2959, allocations: 1.849 MB / 0.7601 GB, free: 5.59 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.278e-05/0.2959, allocations: 55.41 kB / 0.7601 GB, free: 5.523 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001546/0.2975, allocations: 1.076 MB / 0.7612 GB, free: 4.434 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 6.25e-05/0.2976, allocations: 37.7 kB / 0.7612 GB, free: 4.391 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004383/0.298, allocations: 0.5397 MB / 0.7617 GB, free: 3.848 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001247/0.2981, allocations: 158.6 kB / 0.7619 GB, free: 3.691 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002272/0.2984, allocations: 138.2 kB / 0.762 GB, free: 3.547 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001126/0.2985, allocations: 334 kB / 0.7623 GB, free: 3.215 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008831/0.2994, allocations: 307.3 kB / 0.7626 GB, free: 2.914 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001027/0.3004, allocations: 0.5346 MB / 0.7632 GB, free: 2.281 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001604/0.302, allocations: 0.7172 MB / 0.7639 GB, free: 1.492 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.598e-06/0.302, allocations: 0 / 0.7639 GB, free: 1.492 MB / 0.5919 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.002612/0.3047, allocations: 1.013 MB / 0.7649 GB, free: 480 kB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.979e-05/0.3047, allocations: 8 kB / 0.7649 GB, free: 472 kB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.344e-05/0.3047, allocations: 16 kB / 0.7649 GB, free: 456 kB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00118/0.3059, allocations: 304.7 kB / 0.7652 GB, free: 148 kB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000531/0.3064, allocations: 131.8 kB / 0.7653 GB, free: 16 kB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00136/0.3078, allocations: 0.9067 MB / 0.7662 GB, free: 15.09 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001077/0.3089, allocations: 155.5 kB / 0.7663 GB, free: 14.93 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.664e-05/0.309, allocations: 31.98 kB / 0.7664 GB, free: 14.9 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001095/0.3101, allocations: 0.509 MB / 0.7669 GB, free: 14.39 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0009583/0.3111, allocations: 0.5346 MB / 0.7674 GB, free: 13.76 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001472/0.3125, allocations: 0.7024 MB / 0.7681 GB, free: 12.98 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.007e-06/0.3125, allocations: 4 kB / 0.7681 GB, free: 12.98 MB / 0.6075 GB Notification: Performance of matching and sorting (n=71) (initialization_lambda0): time 0.002424/0.315, allocations: 1.012 MB / 0.7691 GB, free: 11.96 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.209e-05/0.315, allocations: 8 kB / 0.7691 GB, free: 11.95 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.811e-06/0.315, allocations: 4 kB / 0.7691 GB, free: 11.95 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009596/0.316, allocations: 300.7 kB / 0.7694 GB, free: 11.65 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004928/0.3165, allocations: 127.8 kB / 0.7695 GB, free: 11.52 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0012/0.3177, allocations: 0.8958 MB / 0.7703 GB, free: 10.6 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001054/0.3188, allocations: 135.7 kB / 0.7705 GB, free: 10.47 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.84e-05/0.3188, allocations: 39.92 kB / 0.7705 GB, free: 10.43 MB / 0.6075 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.0001909/0.319, allocations: 217 kB / 0.7707 GB, free: 10.21 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001574/0.3192, allocations: 115.3 kB / 0.7708 GB, free: 10.1 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003404/0.3226, allocations: 1.088 MB / 0.7719 GB, free: 8.988 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.27e-05/0.3226, allocations: 8 kB / 0.7719 GB, free: 8.98 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/0.3226, allocations: 0 / 0.7719 GB, free: 8.98 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.801e-06/0.3226, allocations: 0 / 0.7719 GB, free: 8.98 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004492/0.3271, allocations: 2.163 MB / 0.774 GB, free: 6.734 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.915e-06/0.3272, allocations: 4 kB / 0.774 GB, free: 6.73 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002543/0.3274, allocations: 63.89 kB / 0.7741 GB, free: 6.668 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000892/0.3283, allocations: 292.8 kB / 0.7744 GB, free: 6.379 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.713e-05/0.3284, allocations: 15.98 kB / 0.7744 GB, free: 6.363 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001346/0.3297, allocations: 0.9307 MB / 0.7753 GB, free: 5.406 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.799e-06/0.3298, allocations: 4 kB / 0.7753 GB, free: 5.402 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003327/0.3331, allocations: 1.149 MB / 0.7764 GB, free: 4.211 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005052/0.3336, allocations: 268.2 kB / 0.7767 GB, free: 3.93 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002056/0.3338, allocations: 8 kB / 0.7767 GB, free: 3.922 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008194/0.3346, allocations: 71.92 kB / 0.7767 GB, free: 3.852 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.443e-05/0.3348, allocations: 47.77 kB / 0.7768 GB, free: 3.805 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.45e-05/0.3348, allocations: 27.98 kB / 0.7768 GB, free: 3.777 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.001308/0.3361, allocations: 0.7512 MB / 0.7775 GB, free: 3.02 MB / 0.6075 GB Notification: Performance of sort global known variables: time 6.01e-07/0.3361, allocations: 4 kB / 0.7776 GB, free: 3.016 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.001918/0.3381, allocations: 0.5731 MB / 0.7781 GB, free: 2.441 MB / 0.6075 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.001096/0.3392, allocations: 382 kB / 0.7785 GB, free: 2.074 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.003345/0.3425, allocations: 1.12 MB / 0.7796 GB, free: 0.9531 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 9.127e-06/0.3425, allocations: 4.188 kB / 0.7796 GB, free: 0.9492 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0008801/0.3434, allocations: 350.6 kB / 0.7799 GB, free: 0.6094 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002321/0.3458, allocations: 0.5055 MB / 0.7804 GB, free: 132 kB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004944/0.3507, allocations: 2.04 MB / 0.7824 GB, free: 14.02 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006504/0.3514, allocations: 1.061 MB / 0.7834 GB, free: 12.93 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0008262/0.3522, allocations: 224.7 kB / 0.7836 GB, free: 12.71 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001923/0.3524, allocations: 79.41 kB / 0.7837 GB, free: 12.63 MB / 0.6231 GB Notification: Performance of SimCode: time 9.12e-07/0.3524, allocations: 0 / 0.7837 GB, free: 12.63 MB / 0.6231 GB Notification: Performance of Templates: time 0.03917/0.3916, allocations: 25.09 MB / 0.8082 GB, free: 3.848 MB / 0.6387 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 -lv LOG_STATS > IDEAS_IDEAS.Fluid.HeatPumps.Examples.Carnot_TCon.pipe 2>&1)