Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_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-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.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(IDEAS.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw,fileNamePrefix="IDEAS_dev_IDEAS_Fluid_Chillers_Validation_Carnot_TEva_2ndLaw",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw,fileNamePrefix="IDEAS_dev_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.001249/0.001249, 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.001406/0.001406, 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 4.0.0+maint.om/package.mo): time 1.301/1.301, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9011/0.9011, allocations: 135.1 MB / 425.5 MB, free: 12.05 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001335/0.001335, allocations: 61.31 kB / 0.5054 GB, free: 5.23 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1422/0.1436, allocations: 80.93 MB / 0.5845 GB, free: 4.457 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw): time 0.2903/0.4339, allocations: 70.43 MB / 0.6533 GB, free: 10.38 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.01921/0.4532, allocations: 18.91 MB / 0.6717 GB, free: 12.77 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002587/0.4558, allocations: 67.34 kB / 0.6718 GB, free: 12.75 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.002067/0.4579, allocations: 0.8255 MB / 0.6726 GB, free: 12.2 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.00727/0.4652, allocations: 2.836 MB / 0.6754 GB, free: 10.51 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.00397/0.4692, allocations: 1.641 MB / 0.677 GB, free: 9.555 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.005424/0.4746, allocations: 4.037 MB / 0.6809 GB, free: 7.5 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002328/0.477, allocations: 1.451 MB / 0.6823 GB, free: 6.777 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004213/0.4812, allocations: 1.769 MB / 0.6841 GB, free: 5.852 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002582/0.4838, allocations: 1.181 MB / 0.6852 GB, free: 5.289 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 0.0003082/0.4841, allocations: 177.8 kB / 0.6854 GB, free: 5.289 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003417/0.4875, allocations: 1.403 MB / 0.6867 GB, free: 4.789 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0004138/0.488, allocations: 391.6 kB / 0.6871 GB, free: 4.52 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.001583/0.4895, allocations: 0.9208 MB / 0.688 GB, free: 3.918 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.005285/0.4948, allocations: 3.078 MB / 0.691 GB, free: 2.773 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 6.623e-06/0.4949, allocations: 0.5156 kB / 0.691 GB, free: 2.773 MB / 0.5137 GB Notification: Performance of FrontEnd: time 2.916e-06/0.4949, allocations: 0 / 0.691 GB, free: 2.773 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 3.687e-05/0.4949, allocations: 3.938 kB / 0.691 GB, free: 2.77 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.003946/0.4989, allocations: 2.034 MB / 0.693 GB, free: 1.398 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.018e-05/0.4989, allocations: 10.62 kB / 0.693 GB, free: 1.398 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001842/0.4991, allocations: 161.9 kB / 0.6932 GB, free: 1.289 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002343/0.5015, allocations: 444 kB / 0.6936 GB, free: 1.188 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002544/0.504, allocations: 1.486 MB / 0.6951 GB, free: 248 kB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003799/0.5044, allocations: 137.7 kB / 0.6952 GB, free: 204 kB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001453/0.5046, allocations: 105.9 kB / 0.6953 GB, free: 168 kB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002555/0.5071, allocations: 1.32 MB / 0.6966 GB, free: 15.46 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.257e-05/0.5072, allocations: 1.438 kB / 0.6966 GB, free: 15.46 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001023/0.5073, allocations: 43.44 kB / 0.6966 GB, free: 15.43 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.73e-05/0.5073, allocations: 29.41 kB / 0.6966 GB, free: 15.42 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002766/0.5101, allocations: 1.112 MB / 0.6977 GB, free: 15.02 MB / 0.5294 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.008302/0.5184, allocations: 7.546 MB / 0.7051 GB, free: 9.059 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003141/0.5216, allocations: 0.8016 MB / 0.7059 GB, free: 8.801 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006188/0.5222, allocations: 287.2 kB / 0.7062 GB, free: 8.691 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001138/0.5233, allocations: 1.722 MB / 0.7078 GB, free: 6.691 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.447e-05/0.5234, allocations: 41.28 kB / 0.7079 GB, free: 6.645 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=48): time 2.886e-06/0.5234, allocations: 0 / 0.7079 GB, free: 6.645 MB / 0.5294 GB Notification: Performance of matching and sorting (n=48): time 0.005005/0.5284, allocations: 1.339 MB / 0.7092 GB, free: 5.945 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.012e-05/0.5285, allocations: 61.56 kB / 0.7092 GB, free: 5.879 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002517/0.531, allocations: 1.544 MB / 0.7108 GB, free: 5.039 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 7.998e-05/0.5311, allocations: 41.77 kB / 0.7108 GB, free: 4.996 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005371/0.5316, allocations: 0.681 MB / 0.7115 GB, free: 4.391 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001648/0.5318, allocations: 167.7 kB / 0.7116 GB, free: 4.246 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002846/0.5321, allocations: 172.7 kB / 0.7118 GB, free: 4.141 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001097/0.5322, allocations: 341.9 kB / 0.7121 GB, free: 3.809 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001007/0.5332, allocations: 369.6 kB / 0.7125 GB, free: 3.625 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001238/0.5345, allocations: 0.6631 MB / 0.7131 GB, free: 3.062 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001802/0.5363, allocations: 0.8936 MB / 0.714 GB, free: 2.402 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.821e-06/0.5363, allocations: 2.312 kB / 0.714 GB, free: 2.402 MB / 0.5294 GB Notification: Performance of matching and sorting (n=92) (initialization): time 0.003114/0.5394, allocations: 1.194 MB / 0.7152 GB, free: 1.793 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 2.138e-05/0.5394, allocations: 13.12 kB / 0.7152 GB, free: 1.789 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.321e-05/0.5395, allocations: 6.969 kB / 0.7152 GB, free: 1.789 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008626/0.5403, allocations: 219.7 kB / 0.7154 GB, free: 1.68 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007783/0.5411, allocations: 203.6 kB / 0.7156 GB, free: 1.617 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008463/0.542, allocations: 0.7177 MB / 0.7163 GB, free: 0.9805 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00168/0.5437, allocations: 217.1 kB / 0.7165 GB, free: 0.8633 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.359e-05/0.5438, allocations: 48.45 kB / 0.7165 GB, free: 0.8477 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.0005501/0.5443, allocations: 357.3 kB / 0.7169 GB, free: 0.582 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002283/0.5446, allocations: 151.7 kB / 0.717 GB, free: 0.5 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002353/0.5469, allocations: 1.143 MB / 0.7181 GB, free: 15.86 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.037e-05/0.547, allocations: 11.19 kB / 0.7181 GB, free: 15.86 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.701e-06/0.547, allocations: 4 kB / 0.7181 GB, free: 15.85 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.488e-06/0.547, allocations: 5.766 kB / 0.7181 GB, free: 15.85 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005187/0.5522, allocations: 2.506 MB / 0.7206 GB, free: 14.08 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.945e-06/0.5522, allocations: 1.5 kB / 0.7206 GB, free: 14.08 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003688/0.5526, allocations: 90.75 kB / 0.7207 GB, free: 14.05 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007376/0.5533, allocations: 202.9 kB / 0.7209 GB, free: 13.95 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.517e-05/0.5534, allocations: 19.39 kB / 0.7209 GB, free: 13.94 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00127/0.5547, allocations: 0.7729 MB / 0.7217 GB, free: 13.28 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.092e-06/0.5547, allocations: 7.281 kB / 0.7217 GB, free: 13.28 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003428/0.5581, allocations: 1.207 MB / 0.7228 GB, free: 12.55 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000642/0.5588, allocations: 350.3 kB / 0.7232 GB, free: 12.24 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002153/0.559, allocations: 13.59 kB / 0.7232 GB, free: 12.23 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009241/0.5599, allocations: 71.48 kB / 0.7233 GB, free: 12.2 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.078e-05/0.56, allocations: 46.97 kB / 0.7233 GB, free: 12.18 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.5e-05/0.5601, allocations: 24.7 kB / 0.7233 GB, free: 12.17 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.001758/0.5618, allocations: 1.091 MB / 0.7244 GB, free: 11.57 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.2e-07/0.5619, allocations: 0 / 0.7244 GB, free: 11.57 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.001471/0.5633, allocations: 446.7 kB / 0.7248 GB, free: 11.47 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.004894/0.5682, allocations: 2.114 MB / 0.7269 GB, free: 9.547 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.002507/0.5708, allocations: 0.8847 MB / 0.7277 GB, free: 8.668 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 6.181e-06/0.5708, allocations: 3.984 kB / 0.7277 GB, free: 8.664 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.00132/0.5721, allocations: 439.1 kB / 0.7282 GB, free: 8.242 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003608/0.5757, allocations: 0.7434 MB / 0.7289 GB, free: 7.52 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01782/0.5936, allocations: 11.41 MB / 0.74 GB, free: 11.5 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000644/0.5942, allocations: 1.172 MB / 0.7412 GB, free: 10.3 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.001185/0.5954, allocations: 268.1 kB / 0.7414 GB, free: 10.04 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007483/0.5962, allocations: 0.5422 MB / 0.742 GB, free: 9.492 MB / 0.5606 GB Notification: Performance of SimCode: time 1.142e-06/0.5962, allocations: 4 kB / 0.742 GB, free: 9.488 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.073/0.6692, allocations: 43.41 MB / 0.7844 GB, free: 14.57 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.97/11.64, allocations: 0 / 0.7844 GB, free: 14.57 MB / 0.6075 GB (rm -f IDEAS_dev_IDEAS.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.pipe ; mkfifo IDEAS_dev_IDEAS.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.pipe >> ../files/IDEAS_dev_IDEAS.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.sim & python3 -m fmpy simulate --output-file IDEAS_dev_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_dev_IDEAS_Fluid_Chillers_Validation_Carnot_TEva_2ndLaw.fmu > IDEAS_dev_IDEAS.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.pipe 2>&1)