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: "" <> buildModelFMU(IDEAS.Fluid.HeatPumps.Examples.Carnot_TCon,fileNamePrefix="IDEAS_IDEAS_Fluid_HeatPumps_Examples_Carnot_TCon",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.HeatPumps.Examples.Carnot_TCon,fileNamePrefix="IDEAS_IDEAS_Fluid_HeatPumps_Examples_Carnot_TCon",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008547/0.008547, allocations: 95.77 kB / 15.73 MB, free: 6.039 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.002099/0.002099, allocations: 201 kB / 16.68 MB, free: 5.969 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.376/1.376, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8088/0.8088, allocations: 132.2 MB / 422.7 MB, free: 1.688 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001776/0.001776, allocations: 67.47 kB / 0.5809 GB, free: 1.102 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1473/0.1491, allocations: 80.21 MB / 0.6592 GB, free: 13.98 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.HeatPumps.Examples.Carnot_TCon): time 0.06436/0.2135, allocations: 61.16 MB / 0.7189 GB, free: 0.5938 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.01746/0.231, allocations: 11.97 MB / 0.7306 GB, free: 4.59 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002627/0.2337, allocations: 59.62 kB / 0.7307 GB, free: 4.531 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.002215/0.236, allocations: 0.6791 MB / 0.7313 GB, free: 3.848 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.006147/0.2422, allocations: 1.961 MB / 0.7333 GB, free: 1.879 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.003207/0.2454, allocations: 1.206 MB / 0.7344 GB, free: 0.6836 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.00469/0.2501, allocations: 3.086 MB / 0.7374 GB, free: 13.59 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001591/0.2517, allocations: 1.096 MB / 0.7385 GB, free: 12.46 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002907/0.2546, allocations: 1.347 MB / 0.7398 GB, free: 11.12 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001385/0.256, allocations: 0.8906 MB / 0.7407 GB, free: 10.22 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0002045/0.2562, allocations: 116 kB / 0.7408 GB, free: 10.11 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002725/0.259, allocations: 1.439 MB / 0.7422 GB, free: 8.668 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0003044/0.2593, allocations: 294.9 kB / 0.7425 GB, free: 8.379 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0007381/0.26, allocations: 0.6881 MB / 0.7432 GB, free: 7.688 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.003215/0.2632, allocations: 2.316 MB / 0.7454 GB, free: 5.363 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.2633, allocations: 4 kB / 0.7454 GB, free: 5.359 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.593e-06/0.2633, allocations: 0 / 0.7454 GB, free: 5.359 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 2.387e-05/0.2633, allocations: 3.938 kB / 0.7454 GB, free: 5.355 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.002949/0.2662, allocations: 1.763 MB / 0.7472 GB, free: 3.527 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.699e-05/0.2663, allocations: 8.031 kB / 0.7472 GB, free: 3.52 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001444/0.2664, allocations: 126.9 kB / 0.7473 GB, free: 3.387 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002151/0.2686, allocations: 415.2 kB / 0.7477 GB, free: 2.98 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002087/0.2707, allocations: 1.172 MB / 0.7488 GB, free: 1.754 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.206e-05/0.2708, allocations: 61.94 kB / 0.7489 GB, free: 1.691 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001188/0.2709, allocations: 88 kB / 0.749 GB, free: 1.605 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002003/0.2729, allocations: 0.9937 MB / 0.7499 GB, free: 0.5547 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.28e-05/0.2729, allocations: 7.938 kB / 0.7499 GB, free: 0.5469 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.964e-05/0.273, allocations: 32 kB / 0.75 GB, free: 0.5156 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.685e-05/0.2731, allocations: 16 kB / 0.75 GB, free: 0.5 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002313/0.2754, allocations: 0.8626 MB / 0.7508 GB, free: 15.63 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.006777/0.2822, allocations: 5.229 MB / 0.7559 GB, free: 10.04 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003456/0.2856, allocations: 0.7848 MB / 0.7567 GB, free: 9.242 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007357/0.2864, allocations: 295.2 kB / 0.757 GB, free: 8.953 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007498/0.2871, allocations: 0.9064 MB / 0.7579 GB, free: 7.844 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.498e-05/0.2872, allocations: 38.56 kB / 0.7579 GB, free: 7.797 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=43): time 2.264e-06/0.2872, allocations: 0 / 0.7579 GB, free: 7.797 MB / 0.5919 GB Notification: Performance of matching and sorting (n=43): time 0.008662/0.2959, allocations: 1.853 MB / 0.7597 GB, free: 5.914 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.398e-05/0.2959, allocations: 55.41 kB / 0.7598 GB, free: 5.848 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001837/0.2978, allocations: 1.072 MB / 0.7608 GB, free: 4.762 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 9.478e-05/0.2979, allocations: 33.7 kB / 0.7609 GB, free: 4.723 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005493/0.2984, allocations: 0.5437 MB / 0.7614 GB, free: 4.176 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001773/0.2986, allocations: 162.6 kB / 0.7615 GB, free: 4.016 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002686/0.2989, allocations: 142.2 kB / 0.7617 GB, free: 3.867 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001693/0.2991, allocations: 325.9 kB / 0.762 GB, free: 3.543 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009195/0.3, allocations: 311.2 kB / 0.7623 GB, free: 3.238 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001161/0.3012, allocations: 0.5346 MB / 0.7628 GB, free: 2.605 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00175/0.3029, allocations: 0.7211 MB / 0.7635 GB, free: 1.812 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.682e-06/0.303, allocations: 4 kB / 0.7635 GB, free: 1.809 MB / 0.5919 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.002901/0.3059, allocations: 1.013 MB / 0.7645 GB, free: 0.7852 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 2.124e-05/0.3059, allocations: 8 kB / 0.7645 GB, free: 0.7773 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.19e-05/0.3059, allocations: 4 kB / 0.7645 GB, free: 0.7734 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001255/0.3072, allocations: 308.7 kB / 0.7648 GB, free: 480 kB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005423/0.3077, allocations: 131.8 kB / 0.7649 GB, free: 348 kB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001505/0.3092, allocations: 0.9107 MB / 0.7658 GB, free: 15.41 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001194/0.3105, allocations: 147.5 kB / 0.766 GB, free: 15.26 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.782e-05/0.3105, allocations: 39.98 kB / 0.766 GB, free: 15.22 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001234/0.3118, allocations: 0.5089 MB / 0.7665 GB, free: 14.71 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001104/0.3129, allocations: 0.5307 MB / 0.767 GB, free: 14.08 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001696/0.3146, allocations: 0.7024 MB / 0.7677 GB, free: 13.31 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.715e-06/0.3146, allocations: 0 / 0.7677 GB, free: 13.31 MB / 0.6075 GB Notification: Performance of matching and sorting (n=71) (initialization_lambda0): time 0.002765/0.3174, allocations: 1.016 MB / 0.7687 GB, free: 12.28 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.498e-05/0.3174, allocations: 8.062 kB / 0.7687 GB, free: 12.27 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.613e-06/0.3174, allocations: 8 kB / 0.7687 GB, free: 12.27 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00107/0.3185, allocations: 296.5 kB / 0.769 GB, free: 11.97 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005464/0.3191, allocations: 131.8 kB / 0.7691 GB, free: 11.84 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001448/0.3205, allocations: 0.8918 MB / 0.77 GB, free: 10.93 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001124/0.3217, allocations: 139.6 kB / 0.7701 GB, free: 10.79 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.327e-05/0.3217, allocations: 27.98 kB / 0.7701 GB, free: 10.76 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.0002333/0.322, allocations: 224.1 kB / 0.7704 GB, free: 10.54 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000182/0.3222, allocations: 115.3 kB / 0.7705 GB, free: 10.42 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003846/0.326, allocations: 1.078 MB / 0.7715 GB, free: 9.32 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.539e-05/0.326, allocations: 7.984 kB / 0.7715 GB, free: 9.312 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.3261, allocations: 4 kB / 0.7715 GB, free: 9.309 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.011e-06/0.3261, allocations: 0 / 0.7715 GB, free: 9.309 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005112/0.3312, allocations: 2.167 MB / 0.7737 GB, free: 7.059 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.151e-06/0.3312, allocations: 0 / 0.7737 GB, free: 7.059 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002796/0.3315, allocations: 59.89 kB / 0.7737 GB, free: 7 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009994/0.3325, allocations: 296.7 kB / 0.774 GB, free: 6.707 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.018e-05/0.3326, allocations: 15.98 kB / 0.774 GB, free: 6.691 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001471/0.334, allocations: 0.9328 MB / 0.7749 GB, free: 5.734 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.578e-06/0.334, allocations: 4 kB / 0.7749 GB, free: 5.73 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003664/0.3377, allocations: 1.153 MB / 0.776 GB, free: 4.535 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004501/0.3382, allocations: 264.2 kB / 0.7763 GB, free: 4.258 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001435/0.3383, allocations: 19.98 kB / 0.7763 GB, free: 4.238 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007856/0.3391, allocations: 63.92 kB / 0.7764 GB, free: 4.176 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.571e-05/0.3392, allocations: 43.83 kB / 0.7764 GB, free: 4.133 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.576e-05/0.3393, allocations: 23.98 kB / 0.7764 GB, free: 4.109 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.001259/0.3406, allocations: 0.755 MB / 0.7772 GB, free: 3.348 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.71e-07/0.3406, allocations: 0 / 0.7772 GB, free: 3.348 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.001467/0.342, allocations: 0.5731 MB / 0.7777 GB, free: 2.773 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.004684/0.3467, allocations: 1.968 MB / 0.7797 GB, free: 0.7578 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.003331/0.3501, allocations: 1.128 MB / 0.7808 GB, free: 15.63 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 5.6e-06/0.3501, allocations: 192 / 0.7808 GB, free: 15.63 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0009383/0.351, allocations: 350.6 kB / 0.7811 GB, free: 15.29 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002739/0.3538, allocations: 0.5137 MB / 0.7816 GB, free: 14.8 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01854/0.3724, allocations: 8.281 MB / 0.7897 GB, free: 6.195 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008054/0.3732, allocations: 1.053 MB / 0.7907 GB, free: 5.109 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.000942/0.3742, allocations: 232.4 kB / 0.7909 GB, free: 4.883 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006297/0.3748, allocations: 407.3 kB / 0.7913 GB, free: 4.484 MB / 0.6231 GB Notification: Performance of SimCode: time 1.293e-06/0.3748, allocations: 0 / 0.7913 GB, free: 4.484 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3567/0.7316, allocations: 33.54 MB / 0.8241 GB, free: 140.5 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.25/13.98, allocations: 17.53 kB / 0.8241 GB, free: 140.5 MB / 0.6387 GB (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 & python3 -m fmpy simulate --output-file IDEAS_IDEAS.Fluid.HeatPumps.Examples.Carnot_TCon_res.csv --start-time 0 --stop-time 3600 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.44 IDEAS_IDEAS_Fluid_HeatPumps_Examples_Carnot_TCon.fmu > IDEAS_IDEAS.Fluid.HeatPumps.Examples.Carnot_TCon.pipe 2>&1)