Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw,fileNamePrefix="Buildings_8_Buildings_Fluid_Chillers_Validation_Carnot_TEva_2ndLaw",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw,fileNamePrefix="Buildings_8_Buildings_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.001476/0.001476, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002536/0.002535, allocations: 193.7 kB / 16.53 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.469/1.469, allocations: 205.1 MB / 222.4 MB, free: 4.582 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.694/1.694, allocations: 292.3 MB / 0.5489 GB, free: 12.85 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001642/0.001642, allocations: 72.8 kB / 0.6716 GB, free: 26.29 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2482/0.2498, allocations: 114.5 MB / 0.7835 GB, free: 13.44 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw): time 0.07628/0.3261, allocations: 70.5 MB / 0.8523 GB, free: 6.684 MB / 0.67 GB Notification: Performance of NFInst.instExpressions: time 0.0314/0.3576, allocations: 18.85 MB / 0.8707 GB, free: 3.785 MB / 0.6856 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004058/0.3617, allocations: 63.62 kB / 0.8708 GB, free: 3.723 MB / 0.6856 GB Notification: Performance of NFTyping.typeComponents: time 0.002956/0.3648, allocations: 0.8228 MB / 0.8716 GB, free: 2.895 MB / 0.6856 GB Notification: Performance of NFTyping.typeBindings: time 0.009889/0.3747, allocations: 2.835 MB / 0.8743 GB, free: 48 kB / 0.6856 GB Notification: Performance of NFTyping.typeClassSections: time 0.004767/0.3795, allocations: 1.665 MB / 0.876 GB, free: 14.39 MB / 0.7012 GB Notification: Performance of NFFlatten.flatten: time 0.006529/0.386, allocations: 4.02 MB / 0.8799 GB, free: 10.36 MB / 0.7012 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002547/0.3886, allocations: 1.469 MB / 0.8813 GB, free: 8.859 MB / 0.7012 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004915/0.3935, allocations: 1.771 MB / 0.8831 GB, free: 7.082 MB / 0.7012 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002849/0.3964, allocations: 1.186 MB / 0.8842 GB, free: 5.891 MB / 0.7012 GB Notification: Performance of NFPackage.collectConstants: time 0.0004694/0.3969, allocations: 183.9 kB / 0.8844 GB, free: 5.711 MB / 0.7012 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003753/0.4007, allocations: 1.412 MB / 0.8858 GB, free: 4.297 MB / 0.7012 GB Notification: Performance of NFScalarize.scalarize: time 0.0004561/0.4011, allocations: 394.6 kB / 0.8862 GB, free: 3.91 MB / 0.7012 GB Notification: Performance of NFVerifyModel.verify: time 0.00153/0.4027, allocations: 0.9216 MB / 0.8871 GB, free: 2.984 MB / 0.7012 GB Notification: Performance of NFConvertDAE.convert: time 0.00478/0.4075, allocations: 3.101 MB / 0.8901 GB, free: 15.88 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 6.211e-06/0.4075, allocations: 0 / 0.8901 GB, free: 15.88 MB / 0.7169 GB Notification: Performance of FrontEnd: time 3.557e-06/0.4075, allocations: 4 kB / 0.8901 GB, free: 15.87 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.595e-05/0.4076, allocations: 3.938 kB / 0.8901 GB, free: 15.87 MB / 0.7169 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.004044/0.4116, allocations: 2.034 MB / 0.8921 GB, free: 13.77 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.02e-05/0.4117, allocations: 8.031 kB / 0.8921 GB, free: 13.76 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001964/0.4119, allocations: 152.6 kB / 0.8922 GB, free: 13.61 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002322/0.4142, allocations: 449.7 kB / 0.8927 GB, free: 13.16 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002593/0.4168, allocations: 1.5 MB / 0.8941 GB, free: 11.61 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003943/0.4172, allocations: 134 kB / 0.8943 GB, free: 11.47 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001578/0.4174, allocations: 104 kB / 0.8944 GB, free: 11.37 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002809/0.4202, allocations: 1.33 MB / 0.8956 GB, free: 9.941 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.957e-05/0.4203, allocations: 0 / 0.8956 GB, free: 9.941 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001516/0.4204, allocations: 47.94 kB / 0.8957 GB, free: 9.895 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.126e-05/0.4205, allocations: 28 kB / 0.8957 GB, free: 9.867 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002869/0.4234, allocations: 1.12 MB / 0.8968 GB, free: 8.75 MB / 0.7169 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.009963/0.4333, allocations: 7.276 MB / 0.9039 GB, free: 1.004 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003304/0.4367, allocations: 0.8483 MB / 0.9047 GB, free: 152 kB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006721/0.4374, allocations: 294 kB / 0.905 GB, free: 15.86 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001348/0.4387, allocations: 1.722 MB / 0.9067 GB, free: 13.75 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.312e-05/0.4388, allocations: 50.94 kB / 0.9068 GB, free: 13.69 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=52): time 3.908e-06/0.4388, allocations: 3.984 kB / 0.9068 GB, free: 13.69 MB / 0.7325 GB Notification: Performance of matching and sorting (n=52): time 0.004975/0.4437, allocations: 1.37 MB / 0.9081 GB, free: 12.29 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.345e-05/0.4438, allocations: 59.78 kB / 0.9082 GB, free: 12.21 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002431/0.4463, allocations: 1.557 MB / 0.9097 GB, free: 10.65 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 8.456e-05/0.4464, allocations: 41.7 kB / 0.9097 GB, free: 10.6 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005832/0.447, allocations: 0.6652 MB / 0.9104 GB, free: 9.93 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001741/0.4471, allocations: 189.3 kB / 0.9105 GB, free: 9.742 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002895/0.4474, allocations: 182.4 kB / 0.9107 GB, free: 9.559 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001295/0.4476, allocations: 330 kB / 0.911 GB, free: 9.23 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001036/0.4486, allocations: 381.8 kB / 0.9114 GB, free: 8.855 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001297/0.4499, allocations: 0.6895 MB / 0.9121 GB, free: 8.039 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001933/0.4519, allocations: 0.918 MB / 0.913 GB, free: 7.016 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.492e-06/0.4519, allocations: 3.938 kB / 0.913 GB, free: 7.012 MB / 0.7325 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.003287/0.4552, allocations: 1.24 MB / 0.9142 GB, free: 5.762 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.503e-05/0.4552, allocations: 8 kB / 0.9142 GB, free: 5.754 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.651e-05/0.4552, allocations: 8 kB / 0.9142 GB, free: 5.746 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009005/0.4561, allocations: 220.7 kB / 0.9144 GB, free: 5.527 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008339/0.457, allocations: 207.7 kB / 0.9146 GB, free: 5.324 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008953/0.4579, allocations: 0.7161 MB / 0.9153 GB, free: 4.582 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001693/0.4596, allocations: 226.7 kB / 0.9155 GB, free: 4.359 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000113/0.4597, allocations: 47.97 kB / 0.9156 GB, free: 4.312 MB / 0.7325 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 (88): * Single equations (assignments): 87 * 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.0006386/0.4604, allocations: 353.6 kB / 0.9159 GB, free: 3.957 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003651/0.4607, allocations: 150.1 kB / 0.9161 GB, free: 3.809 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002704/0.4635, allocations: 1.184 MB / 0.9172 GB, free: 2.602 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.969e-05/0.4635, allocations: 11.98 kB / 0.9172 GB, free: 2.59 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.033e-06/0.4635, allocations: 0 / 0.9172 GB, free: 2.59 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.508e-06/0.4635, allocations: 3.984 kB / 0.9172 GB, free: 2.586 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3927/0.8562, allocations: 2.575 MB / 0.9197 GB, free: 135.8 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.253e-05/0.8563, allocations: 1.812 kB / 0.9197 GB, free: 135.8 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005466/0.8569, allocations: 95.45 kB / 0.9198 GB, free: 135.8 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009868/0.8579, allocations: 213.2 kB / 0.92 GB, free: 135.7 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001256/0.858, allocations: 21.36 kB / 0.9201 GB, free: 135.7 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001404/0.8594, allocations: 0.7673 MB / 0.9208 GB, free: 135.2 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.16e-06/0.8594, allocations: 2.125 kB / 0.9208 GB, free: 135.2 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004451/0.8639, allocations: 1.246 MB / 0.922 GB, free: 135 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001229/0.8652, allocations: 354.7 kB / 0.9224 GB, free: 134.9 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000599/0.8658, allocations: 16.42 kB / 0.9224 GB, free: 134.9 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001337/0.8671, allocations: 74.44 kB / 0.9224 GB, free: 134.9 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000154/0.8673, allocations: 49.75 kB / 0.9225 GB, free: 134.9 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000101/0.8674, allocations: 27.09 kB / 0.9225 GB, free: 134.9 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.002762/0.8702, allocations: 1.09 MB / 0.9236 GB, free: 134.8 MB / 0.7325 GB Notification: Performance of sort global known variables: time 3.31e-07/0.8702, allocations: 3.562 kB / 0.9236 GB, free: 134.8 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.002199/0.8724, allocations: 448.1 kB / 0.924 GB, free: 134.8 MB / 0.7325 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 (56): * Single equations (assignments): 45 * 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.005344/0.8777, allocations: 2.161 MB / 0.9261 GB, free: 134 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.002602/0.8804, allocations: 0.9153 MB / 0.927 GB, free: 133.7 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 5.69e-06/0.8804, allocations: 3.156 kB / 0.927 GB, free: 133.7 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.001351/0.8817, allocations: 458.3 kB / 0.9275 GB, free: 133.6 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004104/0.8859, allocations: 0.7692 MB / 0.9282 GB, free: 133.4 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02234/0.9082, allocations: 11.57 MB / 0.9395 GB, free: 126.9 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001237/0.9095, allocations: 1.17 MB / 0.9407 GB, free: 126.2 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.001671/0.9112, allocations: 292 kB / 0.9409 GB, free: 126.1 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001012/0.9122, allocations: 0.5541 MB / 0.9415 GB, free: 125.7 MB / 0.7325 GB Notification: Performance of SimCode: time 1.713e-06/0.9122, allocations: 0.5625 kB / 0.9415 GB, free: 125.7 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07794/0.9902, allocations: 44.16 MB / 0.9846 GB, free: 95.63 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.28/13.27, allocations: 5.375 kB / 0.9846 GB, free: 95.62 MB / 0.7325 GB (rm -f Buildings_8_Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.pipe ; mkfifo Buildings_8_Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.pipe >> ../files/Buildings_8_Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.sim & python3 -m fmpy simulate --output-file Buildings_8_Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 Buildings_8_Buildings_Fluid_Chillers_Validation_Carnot_TEva_2ndLaw.fmu > Buildings_8_Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.pipe 2>&1)