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: translateModel(Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw") translateModel(Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001333/0.001333, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001554/0.001555, allocations: 191.4 kB / 16.14 MB, free: 6.711 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.509/1.509, allocations: 205.1 MB / 222 MB, free: 4.754 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.738/1.738, allocations: 292.2 MB / 0.5484 GB, free: 13.67 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.001322/0.001322, allocations: 61.48 kB / 0.6708 GB, free: 26.28 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2425/0.2439, allocations: 114.6 MB / 0.7827 GB, free: 14 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw): time 0.07616/0.3201, allocations: 70.1 MB / 0.8511 GB, free: 7.648 MB / 0.67 GB Notification: Performance of NFInst.instExpressions: time 0.02729/0.3475, allocations: 18.9 MB / 0.8696 GB, free: 4.695 MB / 0.6856 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003468/0.351, allocations: 63.56 kB / 0.8696 GB, free: 4.633 MB / 0.6856 GB Notification: Performance of NFTyping.typeComponents: time 0.003521/0.3546, allocations: 0.6644 MB / 0.8703 GB, free: 3.965 MB / 0.6856 GB Notification: Performance of NFTyping.typeBindings: time 0.01002/0.3647, allocations: 2.582 MB / 0.8728 GB, free: 1.375 MB / 0.6856 GB Notification: Performance of NFTyping.typeClassSections: time 0.005294/0.37, allocations: 1.517 MB / 0.8743 GB, free: 15.87 MB / 0.7012 GB Notification: Performance of NFFlatten.flatten: time 0.007627/0.3776, allocations: 5.005 MB / 0.8792 GB, free: 10.84 MB / 0.7012 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002657/0.3803, allocations: 1.179 MB / 0.8803 GB, free: 9.629 MB / 0.7012 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003974/0.3843, allocations: 1.501 MB / 0.8818 GB, free: 8.121 MB / 0.7012 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002583/0.3869, allocations: 1.163 MB / 0.8829 GB, free: 6.953 MB / 0.7012 GB Notification: Performance of NFPackage.collectConstants: time 0.0005386/0.3874, allocations: 76 kB / 0.883 GB, free: 6.879 MB / 0.7012 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003614/0.3911, allocations: 1.239 MB / 0.8842 GB, free: 5.637 MB / 0.7012 GB Notification: Performance of NFScalarize.scalarize: time 0.0005103/0.3916, allocations: 294.6 kB / 0.8845 GB, free: 5.348 MB / 0.7012 GB Notification: Performance of NFVerifyModel.verify: time 0.001698/0.3933, allocations: 0.8239 MB / 0.8853 GB, free: 4.52 MB / 0.7012 GB Notification: Performance of NFConvertDAE.convert: time 0.005019/0.3983, allocations: 3.034 MB / 0.8883 GB, free: 1.477 MB / 0.7012 GB Notification: Performance of FrontEnd - DAE generated: time 4.989e-06/0.3984, allocations: 4 kB / 0.8883 GB, free: 1.473 MB / 0.7012 GB Notification: Performance of FrontEnd: time 2.665e-06/0.3984, allocations: 3.984 kB / 0.8883 GB, free: 1.469 MB / 0.7012 GB Notification: Performance of Transformations before backend: time 8.211e-05/0.3985, allocations: 0 / 0.8883 GB, free: 1.469 MB / 0.7012 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.005005/0.4035, allocations: 2.038 MB / 0.8903 GB, free: 15.37 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.261e-05/0.4035, allocations: 12.03 kB / 0.8903 GB, free: 15.36 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002521/0.4061, allocations: 449.8 kB / 0.8907 GB, free: 14.91 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003164/0.4092, allocations: 1.52 MB / 0.8922 GB, free: 13.34 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003767/0.4096, allocations: 138 kB / 0.8923 GB, free: 13.2 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002414/0.4099, allocations: 104 kB / 0.8924 GB, free: 13.1 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002987/0.4129, allocations: 1.296 MB / 0.8937 GB, free: 11.71 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.48e-05/0.4129, allocations: 7.875 kB / 0.8937 GB, free: 11.71 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001187/0.4131, allocations: 44 kB / 0.8937 GB, free: 11.66 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.428e-05/0.4131, allocations: 27.94 kB / 0.8938 GB, free: 11.64 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002854/0.4159, allocations: 1.12 MB / 0.8949 GB, free: 10.52 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.009866/0.4258, allocations: 6.857 MB / 0.9016 GB, free: 3.207 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003399/0.4293, allocations: 0.8483 MB / 0.9024 GB, free: 2.352 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006705/0.43, allocations: 298 kB / 0.9027 GB, free: 2.059 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001422/0.4314, allocations: 1.726 MB / 0.9044 GB, free: 15.95 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.175e-05/0.4314, allocations: 42.94 kB / 0.9044 GB, free: 15.89 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=52): time 2.404e-06/0.4315, allocations: 3.938 kB / 0.9044 GB, free: 15.89 MB / 0.7325 GB Notification: Performance of matching and sorting (n=52): time 0.004888/0.4363, allocations: 1.37 MB / 0.9057 GB, free: 14.49 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.597e-05/0.4364, allocations: 63.78 kB / 0.9058 GB, free: 14.41 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003331/0.4398, allocations: 1.529 MB / 0.9073 GB, free: 12.88 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 0.0001357/0.4399, allocations: 41.7 kB / 0.9073 GB, free: 12.83 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008734/0.4408, allocations: 0.6654 MB / 0.908 GB, free: 12.16 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002555/0.4411, allocations: 181.3 kB / 0.9082 GB, free: 11.98 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003549/0.4414, allocations: 170.5 kB / 0.9083 GB, free: 11.8 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001535/0.4416, allocations: 337.9 kB / 0.9086 GB, free: 11.47 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00103/0.4426, allocations: 369.8 kB / 0.909 GB, free: 11.11 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00126/0.4439, allocations: 0.651 MB / 0.9096 GB, free: 10.34 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001877/0.4458, allocations: 0.8796 MB / 0.9105 GB, free: 9.367 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.495e-06/0.4458, allocations: 3.938 kB / 0.9105 GB, free: 9.363 MB / 0.7325 GB Notification: Performance of matching and sorting (n=90) (initialization): time 0.004427/0.4502, allocations: 1.368 MB / 0.9118 GB, free: 7.984 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.405e-05/0.4503, allocations: 8.75 kB / 0.9118 GB, free: 7.977 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.558e-05/0.4503, allocations: 11.94 kB / 0.9118 GB, free: 7.965 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009675/0.4513, allocations: 220.6 kB / 0.9121 GB, free: 7.746 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008322/0.4521, allocations: 191.7 kB / 0.9122 GB, free: 7.559 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009573/0.4531, allocations: 0.7278 MB / 0.913 GB, free: 6.805 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001962/0.4551, allocations: 240.4 kB / 0.9132 GB, free: 6.57 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001271/0.4552, allocations: 39.97 kB / 0.9132 GB, free: 6.531 MB / 0.7325 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * 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 (82): * Single equations (assignments): 81 * 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.0007501/0.456, allocations: 358.2 kB / 0.9136 GB, free: 6.172 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003925/0.4564, allocations: 146.2 kB / 0.9137 GB, free: 6.027 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002698/0.4591, allocations: 1.19 MB / 0.9149 GB, free: 4.82 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.912e-05/0.4591, allocations: 4 kB / 0.9149 GB, free: 4.816 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.815e-06/0.4591, allocations: 0 / 0.9149 GB, free: 4.816 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.087e-06/0.4591, allocations: 7.984 kB / 0.9149 GB, free: 4.809 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005743/0.4649, allocations: 2.58 MB / 0.9174 GB, free: 2.145 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.118e-06/0.4649, allocations: 0 / 0.9174 GB, free: 2.145 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004009/0.4653, allocations: 87.88 kB / 0.9175 GB, free: 2.059 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007911/0.4661, allocations: 212.8 kB / 0.9177 GB, free: 1.848 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.792e-05/0.4662, allocations: 35.84 kB / 0.9177 GB, free: 1.812 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001322/0.4675, allocations: 0.7708 MB / 0.9185 GB, free: 1.016 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.03e-06/0.4675, allocations: 3.938 kB / 0.9185 GB, free: 1.012 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.4482/0.9157, allocations: 1.23 MB / 0.9197 GB, free: 136.4 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008497/0.9166, allocations: 353.6 kB / 0.92 GB, free: 136.3 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004547/0.9171, allocations: 12.5 kB / 0.92 GB, free: 136.3 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00114/0.9182, allocations: 90.28 kB / 0.9201 GB, free: 136.3 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000117/0.9184, allocations: 48.8 kB / 0.9202 GB, free: 136.3 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.021e-05/0.9185, allocations: 29.25 kB / 0.9202 GB, free: 136.3 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.00185/0.9203, allocations: 1.073 MB / 0.9212 GB, free: 136.2 MB / 0.7325 GB Notification: Performance of sort global known variables: time 3.11e-07/0.9203, allocations: 0 / 0.9212 GB, free: 136.2 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.001419/0.9217, allocations: 445.2 kB / 0.9217 GB, free: 136.2 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.0009577/0.9227, allocations: 461.5 kB / 0.9221 GB, free: 136.1 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.002358/0.9251, allocations: 0.869 MB / 0.9229 GB, free: 136.1 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 4.639e-06/0.9251, allocations: 1.281 kB / 0.9229 GB, free: 136.1 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.001342/0.9264, allocations: 461 kB / 0.9234 GB, free: 136 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00336/0.9298, allocations: 0.7175 MB / 0.9241 GB, free: 136 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003817/0.9337, allocations: 2.76 MB / 0.9268 GB, free: 134.7 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006195/0.9343, allocations: 1.176 MB / 0.9279 GB, free: 133.9 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.001344/0.9356, allocations: 272.5 kB / 0.9282 GB, free: 133.9 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003017/0.936, allocations: 119.6 kB / 0.9283 GB, free: 133.9 MB / 0.7325 GB Notification: Performance of SimCode: time 1.293e-06/0.936, allocations: 0 / 0.9283 GB, free: 133.9 MB / 0.7325 GB Notification: Performance of Templates: time 0.05982/0.9958, allocations: 30.72 MB / 0.9583 GB, free: 122.4 MB / 0.7325 GB make -j1 -f Buildings_8_Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.makefile (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 & ./Buildings_8_Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.pipe 2>&1)