Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Chillers_Validation_Carnot_TEva_2ndLaw",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw,fileNamePrefix="BuildingSystems_BuildingSystems_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.001328/0.001328, allocations: 108 kB / 15.61 MB, free: 152 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.00134/0.00134, allocations: 198.2 kB / 16.53 MB, free: 6.664 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.413/1.413, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002549/0.002549, allocations: 279 kB / 290.7 MB, free: 2.004 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.073/1.073, allocations: 178.6 MB / 0.5073 GB, free: 4.594 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002766/0.002766, allocations: 99.27 kB / 0.6065 GB, free: 24.64 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1412/0.144, allocations: 89.14 MB / 0.6936 GB, free: 4.227 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw): time 0.3247/0.4687, allocations: 70.42 MB / 0.7624 GB, free: 22.14 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.01854/0.4873, allocations: 18.93 MB / 0.7809 GB, free: 21.91 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00175/0.489, allocations: 70.84 kB / 0.7809 GB, free: 21.91 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.001608/0.4907, allocations: 0.8188 MB / 0.7817 GB, free: 21.9 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.005904/0.4966, allocations: 2.853 MB / 0.7845 GB, free: 21.71 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.003491/0.5001, allocations: 1.641 MB / 0.7861 GB, free: 21.59 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.003923/0.504, allocations: 4.042 MB / 0.7901 GB, free: 19.68 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001516/0.5056, allocations: 1.459 MB / 0.7915 GB, free: 19.02 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002805/0.5084, allocations: 1.759 MB / 0.7932 GB, free: 18.2 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001311/0.5097, allocations: 1.183 MB / 0.7944 GB, free: 17.73 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.0002219/0.5099, allocations: 175.1 kB / 0.7945 GB, free: 17.73 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002634/0.5126, allocations: 1.412 MB / 0.7959 GB, free: 17.29 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.000259/0.5128, allocations: 386.5 kB / 0.7963 GB, free: 17.04 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0006872/0.5135, allocations: 0.9173 MB / 0.7972 GB, free: 16.44 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.00293/0.5165, allocations: 3.072 MB / 0.8002 GB, free: 15.42 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.226e-06/0.5165, allocations: 0 / 0.8002 GB, free: 15.42 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.233e-06/0.5165, allocations: 0 / 0.8002 GB, free: 15.42 MB / 0.545 GB Notification: Performance of Transformations before backend: time 2.042e-05/0.5165, allocations: 1.281 kB / 0.8002 GB, free: 15.42 MB / 0.545 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.003046/0.5196, allocations: 2.033 MB / 0.8022 GB, free: 14.07 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.454e-05/0.5196, allocations: 8.969 kB / 0.8022 GB, free: 14.07 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001552/0.5198, allocations: 155.2 kB / 0.8023 GB, free: 13.97 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002263/0.5221, allocations: 448.1 kB / 0.8027 GB, free: 13.86 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002021/0.5241, allocations: 1.477 MB / 0.8042 GB, free: 12.95 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000367/0.5245, allocations: 135.8 kB / 0.8043 GB, free: 12.91 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001354/0.5246, allocations: 102.5 kB / 0.8044 GB, free: 12.88 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002199/0.5268, allocations: 1.321 MB / 0.8057 GB, free: 12.18 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.429e-05/0.5269, allocations: 2.656 kB / 0.8057 GB, free: 12.18 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.384e-05/0.527, allocations: 42.53 kB / 0.8057 GB, free: 12.14 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.991e-05/0.527, allocations: 25.47 kB / 0.8058 GB, free: 12.14 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002585/0.5296, allocations: 1.123 MB / 0.8069 GB, free: 11.71 MB / 0.545 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.006419/0.536, allocations: 7.561 MB / 0.8142 GB, free: 4.852 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003094/0.5391, allocations: 0.8004 MB / 0.815 GB, free: 4.434 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005826/0.5397, allocations: 291.1 kB / 0.8153 GB, free: 4.285 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007774/0.5405, allocations: 1.715 MB / 0.817 GB, free: 2.262 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.816e-05/0.5405, allocations: 49.66 kB / 0.817 GB, free: 2.207 MB / 0.545 GB Notification: Performance of pre-optimization done (n=48): time 2.014e-06/0.5405, allocations: 0 / 0.817 GB, free: 2.207 MB / 0.545 GB Notification: Performance of matching and sorting (n=48): time 0.004616/0.5452, allocations: 1.328 MB / 0.8183 GB, free: 1.473 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.173e-05/0.5452, allocations: 61.28 kB / 0.8184 GB, free: 1.406 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002051/0.5472, allocations: 1.548 MB / 0.8199 GB, free: 0.5625 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 4.895e-05/0.5473, allocations: 37.3 kB / 0.8199 GB, free: 0.5234 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004861/0.5478, allocations: 0.6739 MB / 0.8206 GB, free: 15.95 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001643/0.548, allocations: 174.7 kB / 0.8208 GB, free: 15.8 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003112/0.5483, allocations: 178.2 kB / 0.8209 GB, free: 15.69 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001585/0.5485, allocations: 331.1 kB / 0.8212 GB, free: 15.36 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001052/0.5495, allocations: 366.5 kB / 0.8216 GB, free: 15.19 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00141/0.5509, allocations: 0.6704 MB / 0.8222 GB, free: 14.62 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002046/0.553, allocations: 0.8871 MB / 0.8231 GB, free: 13.97 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.723e-06/0.553, allocations: 1.375 kB / 0.8231 GB, free: 13.97 MB / 0.5606 GB Notification: Performance of matching and sorting (n=92) (initialization): time 0.003116/0.5561, allocations: 1.203 MB / 0.8243 GB, free: 13.34 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.869e-05/0.5562, allocations: 12.22 kB / 0.8243 GB, free: 13.34 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.208e-05/0.5562, allocations: 7.031 kB / 0.8243 GB, free: 13.34 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008478/0.557, allocations: 224.5 kB / 0.8245 GB, free: 13.23 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000781/0.5578, allocations: 195.3 kB / 0.8247 GB, free: 13.17 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009318/0.5588, allocations: 0.7189 MB / 0.8254 GB, free: 12.54 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001547/0.5603, allocations: 225.1 kB / 0.8256 GB, free: 12.41 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.587e-05/0.5604, allocations: 38.17 kB / 0.8257 GB, free: 12.41 MB / 0.5606 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.0004963/0.5609, allocations: 356.9 kB / 0.826 GB, free: 12.14 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002427/0.5612, allocations: 149.1 kB / 0.8261 GB, free: 12.06 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002463/0.5637, allocations: 1.158 MB / 0.8273 GB, free: 11.39 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.932e-05/0.5637, allocations: 12.52 kB / 0.8273 GB, free: 11.39 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.5637, allocations: 0 / 0.8273 GB, free: 11.39 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.887e-06/0.5637, allocations: 3.984 kB / 0.8273 GB, free: 11.39 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00537/0.5691, allocations: 2.504 MB / 0.8297 GB, free: 9.641 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.761e-06/0.5691, allocations: 2.469 kB / 0.8297 GB, free: 9.641 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003593/0.5695, allocations: 87.25 kB / 0.8298 GB, free: 9.617 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007396/0.5702, allocations: 209.4 kB / 0.83 GB, free: 9.508 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.378e-05/0.5703, allocations: 17.95 kB / 0.83 GB, free: 9.496 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001407/0.5717, allocations: 0.7705 MB / 0.8308 GB, free: 8.84 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.594e-06/0.5717, allocations: 11.98 kB / 0.8308 GB, free: 8.832 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003514/0.5752, allocations: 1.202 MB / 0.832 GB, free: 8.117 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005434/0.5758, allocations: 359.2 kB / 0.8323 GB, free: 7.801 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002188/0.576, allocations: 12.81 kB / 0.8323 GB, free: 7.793 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009524/0.577, allocations: 74.16 kB / 0.8324 GB, free: 7.758 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.756e-05/0.5771, allocations: 41.81 kB / 0.8324 GB, free: 7.738 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.835e-05/0.5771, allocations: 28.58 kB / 0.8325 GB, free: 7.727 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.001703/0.5789, allocations: 1.081 MB / 0.8335 GB, free: 7.141 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.8e-07/0.5789, allocations: 0 / 0.8335 GB, free: 7.141 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.001197/0.5801, allocations: 448.7 kB / 0.8339 GB, free: 7.035 MB / 0.5606 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.004697/0.5848, allocations: 2.133 MB / 0.836 GB, free: 5.648 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.002351/0.5871, allocations: 0.8848 MB / 0.8369 GB, free: 5.234 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/0.5871, allocations: 0 / 0.8369 GB, free: 5.234 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001362/0.5885, allocations: 438.2 kB / 0.8373 GB, free: 5.039 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00315/0.5917, allocations: 0.7422 MB / 0.838 GB, free: 4.648 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01983/0.6115, allocations: 11.39 MB / 0.8492 GB, free: 9.215 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009476/0.6125, allocations: 1.172 MB / 0.8503 GB, free: 8.012 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.001211/0.6137, allocations: 271.8 kB / 0.8506 GB, free: 7.746 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008397/0.6146, allocations: 0.5461 MB / 0.8511 GB, free: 7.199 MB / 0.5762 GB Notification: Performance of SimCode: time 5.91e-07/0.6146, allocations: 0 / 0.8511 GB, free: 7.199 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08511/0.6997, allocations: 43.47 MB / 0.8936 GB, free: 12.35 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.15/12.85, allocations: 7.75 kB / 0.8936 GB, free: 12.34 MB / 0.6231 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.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 BuildingSystems_BuildingSystems_Fluid_Chillers_Validation_Carnot_TEva_2ndLaw.fmu > BuildingSystems_BuildingSystems.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.pipe 2>&1)