Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.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.Chillers.Validation.Carnot_TEva_2ndLaw,fileNamePrefix="IDEAS_IDEAS_Fluid_Chillers_Validation_Carnot_TEva_2ndLaw",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw,fileNamePrefix="IDEAS_IDEAS_Fluid_Chillers_Validation_Carnot_TEva_2ndLaw",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.004719/0.004719, allocations: 101.9 kB / 15.73 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.001116/0.001117, allocations: 198.9 kB / 16.68 MB, free: 6.375 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.259/1.259, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7156/0.7156, allocations: 132.2 MB / 422.7 MB, free: 1.699 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001153/0.001153, allocations: 62.03 kB / 0.5809 GB, free: 1.117 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1459/0.1471, allocations: 80.2 MB / 0.6592 GB, free: 14.02 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw): time 0.05828/0.2054, allocations: 70.44 MB / 0.728 GB, free: 7.336 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.02193/0.2274, allocations: 18.91 MB / 0.7464 GB, free: 4.371 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002433/0.2299, allocations: 67.56 kB / 0.7465 GB, free: 4.305 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.001947/0.2319, allocations: 0.8463 MB / 0.7473 GB, free: 3.453 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.006575/0.2385, allocations: 3 MB / 0.7503 GB, free: 452 kB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.003373/0.2418, allocations: 1.66 MB / 0.7519 GB, free: 14.79 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.004219/0.2461, allocations: 4.05 MB / 0.7558 GB, free: 10.73 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001546/0.2476, allocations: 1.445 MB / 0.7572 GB, free: 9.254 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003144/0.2508, allocations: 1.822 MB / 0.759 GB, free: 7.43 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001358/0.2521, allocations: 1.19 MB / 0.7602 GB, free: 6.234 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0002017/0.2524, allocations: 172 kB / 0.7604 GB, free: 6.066 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002566/0.2549, allocations: 1.412 MB / 0.7617 GB, free: 4.652 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0003144/0.2553, allocations: 390.6 kB / 0.7621 GB, free: 4.27 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0007584/0.256, allocations: 0.9138 MB / 0.763 GB, free: 3.352 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.003418/0.2595, allocations: 3.13 MB / 0.7661 GB, free: 216 kB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 5.62e-06/0.2595, allocations: 4 kB / 0.7661 GB, free: 212 kB / 0.5919 GB Notification: Performance of FrontEnd: time 2.144e-06/0.2595, allocations: 0 / 0.7661 GB, free: 212 kB / 0.5919 GB Notification: Performance of Transformations before backend: time 2.196e-05/0.2595, allocations: 0 / 0.7661 GB, free: 212 kB / 0.5919 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 257 * Number of variables: 257 Notification: Performance of Generate backend data structure: time 0.003077/0.2626, allocations: 2.087 MB / 0.7681 GB, free: 14.05 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.091e-05/0.2626, allocations: 12.03 kB / 0.7681 GB, free: 14.04 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001619/0.2628, allocations: 160.5 kB / 0.7683 GB, free: 13.88 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002111/0.2649, allocations: 450.4 kB / 0.7687 GB, free: 13.44 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002387/0.2673, allocations: 1.552 MB / 0.7702 GB, free: 11.83 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.472e-05/0.2674, allocations: 86.03 kB / 0.7703 GB, free: 11.74 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001416/0.2676, allocations: 104 kB / 0.7704 GB, free: 11.64 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002247/0.2698, allocations: 1.313 MB / 0.7717 GB, free: 10.22 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.476e-05/0.2698, allocations: 7.938 kB / 0.7717 GB, free: 10.21 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.549e-05/0.2699, allocations: 47.94 kB / 0.7717 GB, free: 10.16 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.831e-05/0.27, allocations: 24 kB / 0.7717 GB, free: 10.14 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002464/0.2724, allocations: 1.101 MB / 0.7728 GB, free: 9.039 MB / 0.6075 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.007464/0.2799, allocations: 7.522 MB / 0.7802 GB, free: 1.004 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003007/0.2829, allocations: 0.8018 MB / 0.7809 GB, free: 200 kB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005844/0.2835, allocations: 286 kB / 0.7812 GB, free: 15.91 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001161/0.2847, allocations: 1.722 MB / 0.7829 GB, free: 13.8 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.24e-05/0.2847, allocations: 38.94 kB / 0.7829 GB, free: 13.75 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=48): time 2.013e-06/0.2848, allocations: 0 / 0.7829 GB, free: 13.75 MB / 0.6231 GB Notification: Performance of matching and sorting (n=48): time 0.004482/0.2892, allocations: 1.343 MB / 0.7843 GB, free: 12.38 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.271e-05/0.2893, allocations: 59.84 kB / 0.7843 GB, free: 12.31 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001943/0.2912, allocations: 1.542 MB / 0.7858 GB, free: 10.76 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 5.32e-05/0.2913, allocations: 37.7 kB / 0.7859 GB, free: 10.71 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005274/0.2918, allocations: 0.6896 MB / 0.7865 GB, free: 10.02 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001337/0.292, allocations: 174.5 kB / 0.7867 GB, free: 9.848 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002535/0.2922, allocations: 174.5 kB / 0.7869 GB, free: 9.672 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0001094/0.2923, allocations: 337.9 kB / 0.7872 GB, free: 9.336 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009391/0.2933, allocations: 361.8 kB / 0.7875 GB, free: 8.98 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001137/0.2944, allocations: 0.6624 MB / 0.7882 GB, free: 8.195 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00167/0.2961, allocations: 0.8868 MB / 0.789 GB, free: 7.203 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.643e-06/0.2961, allocations: 4 kB / 0.789 GB, free: 7.199 MB / 0.6231 GB Notification: Performance of matching and sorting (n=92) (initialization): time 0.002661/0.2988, allocations: 1.198 MB / 0.7902 GB, free: 5.988 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 2.221e-05/0.2988, allocations: 8 kB / 0.7902 GB, free: 5.98 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.195e-05/0.2989, allocations: 8 kB / 0.7902 GB, free: 5.973 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007878/0.2997, allocations: 220.7 kB / 0.7904 GB, free: 5.754 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007404/0.3004, allocations: 195.6 kB / 0.7906 GB, free: 5.562 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007773/0.3012, allocations: 0.7278 MB / 0.7913 GB, free: 4.809 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001346/0.3025, allocations: 219 kB / 0.7915 GB, free: 4.594 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.777e-05/0.3026, allocations: 39.98 kB / 0.7916 GB, free: 4.555 MB / 0.6231 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 35 * 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 (84): * Single equations (assignments): 83 * 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,8)} Notification: Performance of prepare postOptimizeDAE: time 0.0004557/0.3031, allocations: 351 kB / 0.7919 GB, free: 4.203 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002065/0.3033, allocations: 162.9 kB / 0.7921 GB, free: 4.043 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002166/0.3055, allocations: 1.139 MB / 0.7932 GB, free: 2.914 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.602e-05/0.3055, allocations: 11.98 kB / 0.7932 GB, free: 2.902 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.358e-06/0.3055, allocations: 0 / 0.7932 GB, free: 2.902 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.194e-06/0.3055, allocations: 7.984 kB / 0.7932 GB, free: 2.895 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004649/0.3102, allocations: 2.506 MB / 0.7957 GB, free: 316 kB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.726e-06/0.3102, allocations: 16.16 kB / 0.7957 GB, free: 300 kB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00034/0.3106, allocations: 83.89 kB / 0.7957 GB, free: 216 kB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006629/0.3112, allocations: 204.6 kB / 0.7959 GB, free: 8 kB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.109e-05/0.3113, allocations: 20.06 kB / 0.796 GB, free: 15.98 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001184/0.3125, allocations: 0.7708 MB / 0.7967 GB, free: 15.19 MB / 0.6387 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/0.3125, allocations: 7.969 kB / 0.7967 GB, free: 15.18 MB / 0.6387 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003062/0.3156, allocations: 1.208 MB / 0.7979 GB, free: 13.93 MB / 0.6387 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004699/0.316, allocations: 355.8 kB / 0.7982 GB, free: 13.57 MB / 0.6387 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001762/0.3162, allocations: 15.95 kB / 0.7983 GB, free: 13.55 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000877/0.3171, allocations: 75.91 kB / 0.7983 GB, free: 13.48 MB / 0.6387 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.607e-05/0.3172, allocations: 40.5 kB / 0.7984 GB, free: 13.44 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.077e-05/0.3173, allocations: 23.98 kB / 0.7984 GB, free: 13.41 MB / 0.6387 GB Notification: Performance of sorting global known variables: time 0.001478/0.3187, allocations: 1.086 MB / 0.7994 GB, free: 12.33 MB / 0.6387 GB Notification: Performance of sort global known variables: time 1.7e-07/0.3187, allocations: 4 kB / 0.7995 GB, free: 12.33 MB / 0.6387 GB Notification: Performance of remove unused functions: time 0.001096/0.3199, allocations: 451 kB / 0.7999 GB, free: 11.89 MB / 0.6387 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 (52): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 10 * 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,9)} Notification: Performance of Backend phase and start with SimCode phase: time 0.004107/0.324, allocations: 2.136 MB / 0.802 GB, free: 9.727 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 0.001959/0.3259, allocations: 0.8439 MB / 0.8028 GB, free: 8.883 MB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.326, allocations: 1.062 kB / 0.8028 GB, free: 8.883 MB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 0.001191/0.3271, allocations: 447.2 kB / 0.8032 GB, free: 8.445 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002721/0.3299, allocations: 0.7341 MB / 0.8039 GB, free: 7.742 MB / 0.6387 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2948/0.6246, allocations: 10.49 MB / 0.8142 GB, free: 145.4 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006998/0.6254, allocations: 1.172 MB / 0.8153 GB, free: 144.7 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.001076/0.6265, allocations: 263.6 kB / 0.8156 GB, free: 144.6 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00076/0.6272, allocations: 0.5443 MB / 0.8161 GB, free: 144.6 MB / 0.6387 GB Notification: Performance of SimCode: time 8.22e-07/0.6273, allocations: 0 / 0.8161 GB, free: 144.6 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06093/0.6882, allocations: 43.71 MB / 0.8588 GB, free: 114.9 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.88/13.57, allocations: 3.844 kB / 0.8588 GB, free: 114.9 MB / 0.6387 GB (rm -f IDEAS_IDEAS.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.pipe ; mkfifo IDEAS_IDEAS.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.pipe >> ../files/IDEAS_IDEAS.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.sim & python3 -m fmpy simulate --output-file IDEAS_IDEAS.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 IDEAS_IDEAS_Fluid_Chillers_Validation_Carnot_TEva_2ndLaw.fmu > IDEAS_IDEAS.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.pipe 2>&1)