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.00107/0.00107, allocations: 104.8 kB / 16.27 MB, free: 5.93 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.001106/0.001106, allocations: 189.6 kB / 17.2 MB, free: 5.574 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.267/1.267, allocations: 222.9 MB / 240.9 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.74/0.74, allocations: 122.8 MB / 413.9 MB, free: 15.86 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001338/0.001338, allocations: 63.89 kB / 0.4912 GB, free: 7.332 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3038/0.3051, allocations: 77.93 MB / 0.5673 GB, free: 32.72 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw): time 0.0596/0.3648, allocations: 70.44 MB / 0.6361 GB, free: 4.191 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.02517/0.39, allocations: 18.92 MB / 0.6545 GB, free: 1.219 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002357/0.3924, allocations: 67.62 kB / 0.6546 GB, free: 1.152 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002385/0.3948, allocations: 0.8267 MB / 0.6554 GB, free: 328 kB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007507/0.4023, allocations: 2.85 MB / 0.6582 GB, free: 13.46 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.00374/0.4061, allocations: 1.645 MB / 0.6598 GB, free: 11.82 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.004756/0.4108, allocations: 4.035 MB / 0.6637 GB, free: 7.77 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002084/0.4129, allocations: 1.449 MB / 0.6652 GB, free: 6.289 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003809/0.4168, allocations: 1.769 MB / 0.6669 GB, free: 4.516 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002065/0.4189, allocations: 1.171 MB / 0.668 GB, free: 3.34 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.000429/0.4193, allocations: 176 kB / 0.6682 GB, free: 3.168 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003163/0.4225, allocations: 1.419 MB / 0.6696 GB, free: 1.746 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0005678/0.423, allocations: 378.7 kB / 0.6699 GB, free: 1.375 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.001481/0.4245, allocations: 0.9254 MB / 0.6709 GB, free: 456 kB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.004441/0.429, allocations: 3.07 MB / 0.6738 GB, free: 13.37 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.429, allocations: 0 / 0.6738 GB, free: 13.37 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.573e-06/0.429, allocations: 0 / 0.6738 GB, free: 13.37 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 6.847e-05/0.4291, allocations: 0 / 0.6738 GB, free: 13.37 MB / 0.5137 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.004247/0.4333, allocations: 2.03 MB / 0.6758 GB, free: 11.27 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.317e-05/0.4334, allocations: 12.62 kB / 0.6758 GB, free: 11.26 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002828/0.4337, allocations: 160.5 kB / 0.676 GB, free: 11.1 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002324/0.436, allocations: 438.2 kB / 0.6764 GB, free: 10.67 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002804/0.4388, allocations: 1.485 MB / 0.6779 GB, free: 9.125 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000481/0.4393, allocations: 138 kB / 0.678 GB, free: 8.988 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002697/0.4396, allocations: 108 kB / 0.6781 GB, free: 8.883 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003213/0.4429, allocations: 1.313 MB / 0.6794 GB, free: 7.461 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.399e-05/0.4429, allocations: 3.938 kB / 0.6794 GB, free: 7.457 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001377/0.4431, allocations: 47.98 kB / 0.6794 GB, free: 7.41 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.146e-05/0.4431, allocations: 28 kB / 0.6795 GB, free: 7.383 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003127/0.4463, allocations: 1.108 MB / 0.6805 GB, free: 6.273 MB / 0.5137 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.009806/0.4561, allocations: 7.569 MB / 0.6879 GB, free: 14.19 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00313/0.4592, allocations: 0.8035 MB / 0.6887 GB, free: 13.38 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005921/0.4599, allocations: 290 kB / 0.689 GB, free: 13.1 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001163/0.461, allocations: 1.722 MB / 0.6907 GB, free: 10.99 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.43e-05/0.4611, allocations: 38.94 kB / 0.6907 GB, free: 10.94 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=48): time 2.134e-06/0.4611, allocations: 4 kB / 0.6907 GB, free: 10.94 MB / 0.5294 GB Notification: Performance of matching and sorting (n=48): time 0.004699/0.4658, allocations: 1.334 MB / 0.692 GB, free: 9.574 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.654e-05/0.4658, allocations: 59.84 kB / 0.6921 GB, free: 9.504 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002103/0.4679, allocations: 1.542 MB / 0.6936 GB, free: 7.953 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 6.906e-05/0.468, allocations: 37.7 kB / 0.6936 GB, free: 7.91 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005923/0.4686, allocations: 0.6806 MB / 0.6943 GB, free: 7.223 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001504/0.4688, allocations: 173.6 kB / 0.6944 GB, free: 7.051 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002693/0.4691, allocations: 170.5 kB / 0.6946 GB, free: 6.875 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001158/0.4692, allocations: 341.9 kB / 0.6949 GB, free: 6.535 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009912/0.4702, allocations: 369.8 kB / 0.6953 GB, free: 6.176 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001229/0.4714, allocations: 0.6663 MB / 0.6959 GB, free: 5.379 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001805/0.4732, allocations: 0.8867 MB / 0.6968 GB, free: 4.387 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.701e-06/0.4732, allocations: 4 kB / 0.6968 GB, free: 4.383 MB / 0.5294 GB Notification: Performance of matching and sorting (n=92) (initialization): time 0.002969/0.4762, allocations: 1.201 MB / 0.698 GB, free: 3.172 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 2.166e-05/0.4763, allocations: 8 kB / 0.698 GB, free: 3.164 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.405e-05/0.4763, allocations: 8 kB / 0.698 GB, free: 3.156 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008907/0.4772, allocations: 220.6 kB / 0.6982 GB, free: 2.938 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007749/0.478, allocations: 191.7 kB / 0.6984 GB, free: 2.75 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008421/0.4788, allocations: 0.7239 MB / 0.6991 GB, free: 2 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001489/0.4803, allocations: 218.7 kB / 0.6993 GB, free: 1.785 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.382e-05/0.4804, allocations: 39.98 kB / 0.6993 GB, free: 1.746 MB / 0.5294 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.0006248/0.481, allocations: 366.4 kB / 0.6997 GB, free: 1.379 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002672/0.4813, allocations: 146.2 kB / 0.6998 GB, free: 1.234 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002388/0.4837, allocations: 1.144 MB / 0.701 GB, free: 100 kB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.597e-05/0.4837, allocations: 19.88 kB / 0.701 GB, free: 80 kB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.069e-06/0.4837, allocations: 0 / 0.701 GB, free: 80 kB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.276e-06/0.4838, allocations: 3.984 kB / 0.701 GB, free: 76 kB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004924/0.4887, allocations: 2.506 MB / 0.7034 GB, free: 13.48 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.764e-06/0.4887, allocations: 4.188 kB / 0.7034 GB, free: 13.48 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003544/0.4891, allocations: 87.88 kB / 0.7035 GB, free: 13.39 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007259/0.4898, allocations: 212.6 kB / 0.7037 GB, free: 13.18 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.822e-05/0.4899, allocations: 19.98 kB / 0.7037 GB, free: 13.16 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001268/0.4911, allocations: 0.7708 MB / 0.7045 GB, free: 12.37 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.43e-06/0.4912, allocations: 8.016 kB / 0.7045 GB, free: 12.36 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003359/0.4945, allocations: 1.195 MB / 0.7057 GB, free: 11.12 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005113/0.495, allocations: 358.9 kB / 0.706 GB, free: 10.75 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001803/0.4952, allocations: 12 kB / 0.706 GB, free: 10.74 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008801/0.4961, allocations: 71.92 kB / 0.7061 GB, free: 10.67 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.805e-05/0.4962, allocations: 48.44 kB / 0.7061 GB, free: 10.62 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.397e-05/0.4963, allocations: 27.98 kB / 0.7062 GB, free: 10.6 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.001657/0.4979, allocations: 1.09 MB / 0.7072 GB, free: 9.512 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.4e-07/0.498, allocations: 0 / 0.7072 GB, free: 9.512 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.001182/0.4991, allocations: 447.4 kB / 0.7076 GB, free: 9.074 MB / 0.545 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.0044/0.5036, allocations: 2.11 MB / 0.7097 GB, free: 6.93 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.002396/0.506, allocations: 0.8915 MB / 0.7106 GB, free: 6.035 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 5.01e-06/0.506, allocations: 0 / 0.7106 GB, free: 6.035 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.001284/0.5073, allocations: 435.6 kB / 0.711 GB, free: 5.613 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003792/0.5111, allocations: 0.7385 MB / 0.7117 GB, free: 4.91 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02044/0.5316, allocations: 11.4 MB / 0.7228 GB, free: 8.902 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007076/0.5323, allocations: 1.172 MB / 0.724 GB, free: 7.695 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.001119/0.5334, allocations: 264.2 kB / 0.7242 GB, free: 7.434 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006959/0.5341, allocations: 0.5422 MB / 0.7248 GB, free: 6.891 MB / 0.5606 GB Notification: Performance of SimCode: time 5.11e-07/0.5342, allocations: 8 kB / 0.7248 GB, free: 6.883 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2887/0.8228, allocations: 43.41 MB / 0.7672 GB, free: 155.1 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.13/11.96, allocations: 6.359 kB / 0.7672 GB, free: 155.1 MB / 0.5762 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)