Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.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: "" <> buildModelFMU(IBPSA.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_Chillers_Validation_Carnot_TEva_2ndLaw",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw,fileNamePrefix="IBPSA_latest_IBPSA_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.001616/0.001615, allocations: 111.2 kB / 16.41 MB, free: 6.5 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.00173/0.001729, allocations: 193.2 kB / 17.34 MB, free: 5.762 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.453/1.453, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.8092/0.8092, allocations: 126.1 MB / 417.3 MB, free: 12.82 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001864/0.001864, allocations: 59.5 kB / 0.5726 GB, free: 27.43 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1565/0.1584, allocations: 78.7 MB / 0.6494 GB, free: 4.605 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw): time 0.07508/0.2335, allocations: 70.44 MB / 0.7182 GB, free: 13.93 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.02747/0.261, allocations: 18.93 MB / 0.7367 GB, free: 10.94 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003057/0.2641, allocations: 71.56 kB / 0.7368 GB, free: 10.87 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.002781/0.267, allocations: 0.815 MB / 0.7376 GB, free: 10.05 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.009208/0.2762, allocations: 2.858 MB / 0.7404 GB, free: 7.18 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.004521/0.2807, allocations: 1.66 MB / 0.742 GB, free: 5.531 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.006106/0.2869, allocations: 4.042 MB / 0.7459 GB, free: 1.477 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.3476/0.6344, allocations: 1.442 MB / 0.7474 GB, free: 21.22 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004782/0.6393, allocations: 1.765 MB / 0.7491 GB, free: 21.22 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002916/0.6422, allocations: 1.183 MB / 0.7502 GB, free: 21.2 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0005323/0.6428, allocations: 175.4 kB / 0.7504 GB, free: 21.2 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004046/0.6468, allocations: 1.414 MB / 0.7518 GB, free: 21.2 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0005043/0.6473, allocations: 389.3 kB / 0.7521 GB, free: 21.13 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.001467/0.6488, allocations: 0.9196 MB / 0.753 GB, free: 20.89 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.006306/0.6551, allocations: 3.111 MB / 0.7561 GB, free: 20.54 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 6.542e-06/0.6552, allocations: 0.5625 kB / 0.7561 GB, free: 20.54 MB / 0.5762 GB Notification: Performance of FrontEnd: time 2.424e-06/0.6552, allocations: 4.531 kB / 0.7561 GB, free: 20.54 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 7.594e-05/0.6553, allocations: 1.031 kB / 0.7561 GB, free: 20.54 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: 257 * Number of variables: 257 Notification: Performance of Generate backend data structure: time 0.00523/0.6605, allocations: 2.084 MB / 0.7581 GB, free: 19.46 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 5.09e-05/0.6606, allocations: 9.406 kB / 0.7581 GB, free: 19.46 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002386/0.6608, allocations: 158.2 kB / 0.7583 GB, free: 19.42 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002568/0.6634, allocations: 450.2 kB / 0.7587 GB, free: 19.32 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003448/0.6668, allocations: 1.563 MB / 0.7602 GB, free: 18.91 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.13e-05/0.6669, allocations: 79.12 kB / 0.7603 GB, free: 18.9 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001697/0.6671, allocations: 103.3 kB / 0.7604 GB, free: 18.9 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002885/0.67, allocations: 1.321 MB / 0.7617 GB, free: 18.61 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.99e-05/0.67, allocations: 4.281 kB / 0.7617 GB, free: 18.61 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001125/0.6702, allocations: 43.44 kB / 0.7618 GB, free: 18.61 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.707e-05/0.6702, allocations: 28.83 kB / 0.7618 GB, free: 18.61 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002929/0.6731, allocations: 1.103 MB / 0.7629 GB, free: 18.58 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.009231/0.6824, allocations: 7.513 MB / 0.7702 GB, free: 14.16 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003089/0.6855, allocations: 0.7981 MB / 0.771 GB, free: 14.13 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000634/0.6862, allocations: 288.6 kB / 0.7712 GB, free: 14.12 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009727/0.6871, allocations: 1.72 MB / 0.7729 GB, free: 12.15 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.265e-05/0.6872, allocations: 36.84 kB / 0.773 GB, free: 12.11 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=48): time 2.665e-06/0.6872, allocations: 1.125 kB / 0.773 GB, free: 12.11 MB / 0.5762 GB Notification: Performance of matching and sorting (n=48): time 0.004722/0.6919, allocations: 1.346 MB / 0.7743 GB, free: 11.85 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.356e-05/0.6919, allocations: 57.66 kB / 0.7743 GB, free: 11.79 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002574/0.6945, allocations: 1.546 MB / 0.7758 GB, free: 11.61 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 0.0001159/0.6947, allocations: 38.73 kB / 0.7759 GB, free: 11.58 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004888/0.6952, allocations: 0.682 MB / 0.7765 GB, free: 11.34 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001602/0.6953, allocations: 180.2 kB / 0.7767 GB, free: 11.23 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000306/0.6956, allocations: 175 kB / 0.7769 GB, free: 11.2 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 6.711e-05/0.6957, allocations: 336.2 kB / 0.7772 GB, free: 10.9 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000948/0.6967, allocations: 367 kB / 0.7776 GB, free: 10.89 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001108/0.6978, allocations: 0.6588 MB / 0.7782 GB, free: 10.54 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001659/0.6995, allocations: 0.8896 MB / 0.7791 GB, free: 10.23 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.572e-06/0.6995, allocations: 3.344 kB / 0.7791 GB, free: 10.23 MB / 0.5762 GB Notification: Performance of matching and sorting (n=92) (initialization): time 0.002971/0.7025, allocations: 1.2 MB / 0.7802 GB, free: 10.08 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.497e-05/0.7025, allocations: 8.625 kB / 0.7803 GB, free: 10.08 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.509e-05/0.7025, allocations: 7.219 kB / 0.7803 GB, free: 10.08 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008939/0.7034, allocations: 225.6 kB / 0.7805 GB, free: 10.06 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000775/0.7042, allocations: 194.4 kB / 0.7807 GB, free: 10.05 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007464/0.705, allocations: 0.7155 MB / 0.7814 GB, free: 9.531 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001835/0.7068, allocations: 221.7 kB / 0.7816 GB, free: 9.461 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001083/0.7069, allocations: 41.75 kB / 0.7816 GB, free: 9.461 MB / 0.5762 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.0006713/0.7076, allocations: 359.2 kB / 0.782 GB, free: 9.34 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003066/0.7079, allocations: 153.4 kB / 0.7821 GB, free: 9.258 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002257/0.7102, allocations: 1.141 MB / 0.7832 GB, free: 9.129 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.703e-05/0.7102, allocations: 14 kB / 0.7832 GB, free: 9.129 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.343e-06/0.7102, allocations: 0 / 0.7832 GB, free: 9.129 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.248e-06/0.7103, allocations: 7.938 kB / 0.7832 GB, free: 9.129 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004989/0.7152, allocations: 2.505 MB / 0.7857 GB, free: 8.703 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.907e-06/0.7153, allocations: 2.281 kB / 0.7857 GB, free: 8.703 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003722/0.7157, allocations: 85.84 kB / 0.7858 GB, free: 8.703 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007125/0.7164, allocations: 214.3 kB / 0.786 GB, free: 8.68 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.977e-05/0.7164, allocations: 16.5 kB / 0.786 GB, free: 8.68 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001124/0.7176, allocations: 0.7689 MB / 0.7867 GB, free: 8.156 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.88e-06/0.7176, allocations: 8.641 kB / 0.7867 GB, free: 8.152 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003217/0.7208, allocations: 1.212 MB / 0.7879 GB, free: 7.848 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007004/0.7215, allocations: 353.2 kB / 0.7883 GB, free: 7.664 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002123/0.7217, allocations: 14.38 kB / 0.7883 GB, free: 7.66 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008848/0.7226, allocations: 76.03 kB / 0.7883 GB, free: 7.656 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.867e-05/0.7227, allocations: 43.92 kB / 0.7884 GB, free: 7.652 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.8e-05/0.7228, allocations: 23.98 kB / 0.7884 GB, free: 7.652 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.001634/0.7244, allocations: 1.083 MB / 0.7895 GB, free: 7.539 MB / 0.5762 GB Notification: Performance of sort global known variables: time 9.62e-07/0.7244, allocations: 3.562 kB / 0.7895 GB, free: 7.539 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.001436/0.7259, allocations: 455.6 kB / 0.7899 GB, free: 7.473 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 (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.004171/0.7301, allocations: 2.125 MB / 0.792 GB, free: 6.574 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002105/0.7322, allocations: 0.8498 MB / 0.7928 GB, free: 6.555 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 4.819e-06/0.7322, allocations: 4.062 kB / 0.7928 GB, free: 6.551 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.001194/0.7334, allocations: 453.6 kB / 0.7933 GB, free: 6.535 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003237/0.7367, allocations: 0.7372 MB / 0.794 GB, free: 6.426 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01603/0.7527, allocations: 10.51 MB / 0.8042 GB, free: 1.777 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005473/0.7533, allocations: 1.165 MB / 0.8054 GB, free: 0.8672 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0012/0.7545, allocations: 270.5 kB / 0.8056 GB, free: 0.7305 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006397/0.7551, allocations: 0.5512 MB / 0.8062 GB, free: 280 kB / 0.5762 GB Notification: Performance of SimCode: time 7.62e-07/0.7551, allocations: 0 / 0.8062 GB, free: 280 kB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09059/0.8457, allocations: 43.72 MB / 0.8489 GB, free: 7.633 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.48/15.33, allocations: 6.719 kB / 0.8489 GB, free: 7.629 MB / 0.6231 GB (rm -f IBPSA_latest_IBPSA.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.pipe ; mkfifo IBPSA_latest_IBPSA.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.pipe >> ../files/IBPSA_latest_IBPSA.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.sim & python3 -m fmpy simulate --output-file IBPSA_latest_IBPSA.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 IBPSA_latest_IBPSA_Fluid_Chillers_Validation_Carnot_TEva_2ndLaw.fmu > IBPSA_latest_IBPSA.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.pipe 2>&1)