Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_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/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.Validation.Carnot_TCon_reverseFlow,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_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_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.001276/0.001277, allocations: 108.1 kB / 16.41 MB, free: 6.496 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.001282/0.001282, allocations: 187 kB / 17.34 MB, free: 5.738 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.314/1.314, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7929/0.7929, allocations: 132.2 MB / 423.4 MB, free: 6.543 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001171/0.001171, allocations: 65.06 kB / 0.582 GB, free: 23.68 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1507/0.1519, allocations: 80.2 MB / 0.6603 GB, free: 10.25 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.HeatPumps.Validation.Carnot_TCon_reverseFlow): time 0.05349/0.2054, allocations: 61.2 MB / 0.7201 GB, free: 12.83 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.01619/0.2217, allocations: 11.98 MB / 0.7318 GB, free: 0.8164 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00216/0.2239, allocations: 63.56 kB / 0.7319 GB, free: 0.7539 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.002131/0.226, allocations: 0.6752 MB / 0.7325 GB, free: 76 kB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.005801/0.2319, allocations: 1.967 MB / 0.7344 GB, free: 14.1 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.003259/0.2351, allocations: 1.202 MB / 0.7356 GB, free: 12.91 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.004502/0.2397, allocations: 3.097 MB / 0.7386 GB, free: 9.809 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002024/0.2417, allocations: 1.12 MB / 0.7397 GB, free: 8.656 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003518/0.2452, allocations: 1.374 MB / 0.7411 GB, free: 7.281 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001834/0.2471, allocations: 0.9108 MB / 0.742 GB, free: 6.367 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0004083/0.2475, allocations: 120 kB / 0.7421 GB, free: 6.25 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003331/0.2508, allocations: 1.439 MB / 0.7435 GB, free: 4.809 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0004816/0.2513, allocations: 302.9 kB / 0.7438 GB, free: 4.512 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.001347/0.2527, allocations: 0.7036 MB / 0.7444 GB, free: 3.805 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.004953/0.2577, allocations: 2.329 MB / 0.7467 GB, free: 1.469 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 5.41e-06/0.2577, allocations: 4 kB / 0.7467 GB, free: 1.465 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.463e-06/0.2577, allocations: 0 / 0.7467 GB, free: 1.465 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 7.233e-05/0.2578, allocations: 4 kB / 0.7467 GB, free: 1.461 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: 194 * Number of variables: 194 Notification: Performance of Generate backend data structure: time 0.3303/0.588, allocations: 1.727 MB / 0.7484 GB, free: 86.84 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.183e-05/0.5881, allocations: 10.78 kB / 0.7484 GB, free: 86.84 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002636/0.5907, allocations: 457.5 kB / 0.7489 GB, free: 86.77 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002329/0.5931, allocations: 1.169 MB / 0.75 GB, free: 86.29 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.552e-05/0.5932, allocations: 64.56 kB / 0.7501 GB, free: 86.27 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001247/0.5933, allocations: 84.5 kB / 0.7501 GB, free: 86.24 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002018/0.5953, allocations: 0.9995 MB / 0.7511 GB, free: 85.82 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.886e-05/0.5954, allocations: 5.5 kB / 0.7511 GB, free: 85.81 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.473e-05/0.5954, allocations: 35.78 kB / 0.7512 GB, free: 85.79 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.934e-05/0.5955, allocations: 18.44 kB / 0.7512 GB, free: 85.79 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002348/0.5978, allocations: 0.9394 MB / 0.7521 GB, free: 85.49 MB / 0.5762 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.00588/0.6037, allocations: 4.667 MB / 0.7567 GB, free: 82.13 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00407/0.6078, allocations: 0.9808 MB / 0.7576 GB, free: 81.87 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001073/0.6089, allocations: 408.4 kB / 0.758 GB, free: 81.75 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008035/0.6097, allocations: 1.021 MB / 0.759 GB, free: 80.61 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.716e-05/0.6097, allocations: 37.94 kB / 0.759 GB, free: 80.56 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=53): time 2.735e-06/0.6097, allocations: 3.969 kB / 0.759 GB, free: 80.56 MB / 0.5762 GB Notification: Performance of matching and sorting (n=53): time 0.00952/0.6193, allocations: 2.161 MB / 0.7612 GB, free: 80.02 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.853e-05/0.6193, allocations: 57.44 kB / 0.7612 GB, free: 79.95 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001273/0.6206, allocations: 0.9428 MB / 0.7621 GB, free: 79.55 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 7.958e-05/0.6207, allocations: 38.3 kB / 0.7622 GB, free: 79.52 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.000371/0.6211, allocations: 0.5074 MB / 0.7627 GB, free: 79.11 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001425/0.6212, allocations: 183.4 kB / 0.7628 GB, free: 78.97 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002198/0.6214, allocations: 131 kB / 0.763 GB, free: 78.91 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 5.877e-05/0.6215, allocations: 329.7 kB / 0.7633 GB, free: 78.59 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009238/0.6224, allocations: 349.1 kB / 0.7636 GB, free: 78.48 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001038/0.6235, allocations: 0.5174 MB / 0.7641 GB, free: 78.19 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001783/0.6253, allocations: 0.7549 MB / 0.7648 GB, free: 77.85 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.699e-06/0.6253, allocations: 5.375 kB / 0.7649 GB, free: 77.85 MB / 0.5762 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.002688/0.628, allocations: 1.054 MB / 0.7659 GB, free: 77.46 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.918e-05/0.628, allocations: 6.812 kB / 0.7659 GB, free: 77.46 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.026e-05/0.628, allocations: 5.484 kB / 0.7659 GB, free: 77.46 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001153/0.6292, allocations: 309.9 kB / 0.7662 GB, free: 77.39 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006374/0.6298, allocations: 129.5 kB / 0.7663 GB, free: 77.38 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001213/0.6311, allocations: 0.8941 MB / 0.7672 GB, free: 76.73 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001001/0.6321, allocations: 126.2 kB / 0.7673 GB, free: 76.68 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.253e-05/0.6322, allocations: 31.38 kB / 0.7673 GB, free: 76.68 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001266/0.6334, allocations: 0.5581 MB / 0.7679 GB, free: 76.42 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0009656/0.6344, allocations: 0.5123 MB / 0.7684 GB, free: 76.12 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001752/0.6362, allocations: 0.7417 MB / 0.7691 GB, free: 75.76 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.775e-06/0.6362, allocations: 1.062 kB / 0.7691 GB, free: 75.76 MB / 0.5762 GB Notification: Performance of matching and sorting (n=69) (initialization_lambda0): time 0.002514/0.6387, allocations: 1.052 MB / 0.7701 GB, free: 75.22 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.361e-05/0.6387, allocations: 7.562 kB / 0.7701 GB, free: 75.22 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.599e-06/0.6387, allocations: 1.344 kB / 0.7701 GB, free: 75.22 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009415/0.6397, allocations: 296.7 kB / 0.7704 GB, free: 75.08 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005868/0.6403, allocations: 134 kB / 0.7706 GB, free: 75.04 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001074/0.6414, allocations: 0.8902 MB / 0.7714 GB, free: 74.33 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009738/0.6424, allocations: 111 kB / 0.7715 GB, free: 74.27 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.41e-05/0.6424, allocations: 31.84 kB / 0.7716 GB, free: 74.26 MB / 0.5762 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.0002516/0.6427, allocations: 219.7 kB / 0.7718 GB, free: 74.05 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001776/0.6429, allocations: 106.4 kB / 0.7719 GB, free: 73.99 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004004/0.6469, allocations: 1.312 MB / 0.7732 GB, free: 73.29 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.575e-05/0.6469, allocations: 5.562 kB / 0.7732 GB, free: 73.29 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.474e-06/0.6469, allocations: 0 / 0.7732 GB, free: 73.29 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.093e-06/0.6469, allocations: 4.953 kB / 0.7732 GB, free: 73.29 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005372/0.6523, allocations: 2.407 MB / 0.7755 GB, free: 71.7 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.534e-06/0.6523, allocations: 5.562 kB / 0.7755 GB, free: 71.7 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005173/0.6529, allocations: 107.3 kB / 0.7756 GB, free: 71.66 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000919/0.6538, allocations: 299.4 kB / 0.7759 GB, free: 71.52 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.835e-05/0.6538, allocations: 17.48 kB / 0.7759 GB, free: 71.51 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001215/0.6551, allocations: 0.928 MB / 0.7768 GB, free: 70.78 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.907e-06/0.6551, allocations: 1.094 kB / 0.7768 GB, free: 70.78 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003928/0.659, allocations: 1.327 MB / 0.7781 GB, free: 70 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005327/0.6596, allocations: 280.3 kB / 0.7784 GB, free: 69.75 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001463/0.6597, allocations: 11.5 kB / 0.7784 GB, free: 69.75 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008003/0.6605, allocations: 76.53 kB / 0.7785 GB, free: 69.71 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001041/0.6606, allocations: 41.25 kB / 0.7785 GB, free: 69.69 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.291e-05/0.6607, allocations: 28.48 kB / 0.7785 GB, free: 69.68 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.001014/0.6617, allocations: 0.6619 MB / 0.7792 GB, free: 69.3 MB / 0.5762 GB Notification: Performance of sort global known variables: time 2.3e-07/0.6617, allocations: 1.125 kB / 0.7792 GB, free: 69.3 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.001935/0.6637, allocations: 0.5765 MB / 0.7798 GB, free: 69.19 MB / 0.5762 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.0007408/0.6644, allocations: 400.1 kB / 0.7801 GB, free: 69.01 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.003214/0.6676, allocations: 1.305 MB / 0.7814 GB, free: 68.42 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 4.027e-06/0.6677, allocations: 0 / 0.7814 GB, free: 68.42 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0009784/0.6686, allocations: 453.9 kB / 0.7818 GB, free: 68.21 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001782/0.6704, allocations: 489.1 kB / 0.7823 GB, free: 67.98 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002893/0.6733, allocations: 1.918 MB / 0.7842 GB, free: 66.82 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003487/0.6737, allocations: 1.066 MB / 0.7852 GB, free: 65.95 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002354/0.6739, allocations: 85.12 kB / 0.7853 GB, free: 65.93 MB / 0.5762 GB Notification: Performance of SimCode: time 5.71e-07/0.6739, allocations: 0 / 0.7853 GB, free: 65.93 MB / 0.5762 GB Notification: Performance of Templates: time 0.02496/0.6989, allocations: 24.3 MB / 0.809 GB, free: 41.91 MB / 0.5762 GB make -j1 -f IDEAS_IDEAS.Fluid.HeatPumps.Validation.Carnot_TCon_reverseFlow.makefile (rm -f IDEAS_IDEAS.Fluid.HeatPumps.Validation.Carnot_TCon_reverseFlow.pipe ; mkfifo IDEAS_IDEAS.Fluid.HeatPumps.Validation.Carnot_TCon_reverseFlow.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.HeatPumps.Validation.Carnot_TCon_reverseFlow.pipe >> ../files/IDEAS_IDEAS.Fluid.HeatPumps.Validation.Carnot_TCon_reverseFlow.sim & ./IDEAS_IDEAS.Fluid.HeatPumps.Validation.Carnot_TCon_reverseFlow -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_IDEAS.Fluid.HeatPumps.Validation.Carnot_TCon_reverseFlow.pipe 2>&1)