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: translateModel(BuildingSystems.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw") translateModel(BuildingSystems.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.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.001302/0.001302, allocations: 104.1 kB / 16.35 MB, free: 5.828 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.001241/0.001241, allocations: 190.5 kB / 17.29 MB, free: 5.484 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.255/1.255, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002035/0.002035, allocations: 283 kB / 291.4 MB, free: 14.48 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9118/0.9118, allocations: 169.3 MB / 0.4989 GB, free: 4.445 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001721/0.001721, allocations: 90.89 kB / 0.5966 GB, free: 14.46 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.153/0.1547, allocations: 86.98 MB / 0.6816 GB, free: 7.473 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw): time 0.332/0.4867, allocations: 70.44 MB / 0.7504 GB, free: 2.539 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.02472/0.5115, allocations: 18.91 MB / 0.7688 GB, free: 3.152 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002656/0.5142, allocations: 67.75 kB / 0.7689 GB, free: 3.129 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.002198/0.5164, allocations: 0.8315 MB / 0.7697 GB, free: 2.402 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.007575/0.524, allocations: 2.848 MB / 0.7725 GB, free: 132 kB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.004035/0.528, allocations: 1.662 MB / 0.7741 GB, free: 14.82 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.005449/0.5335, allocations: 4.058 MB / 0.7781 GB, free: 12.04 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001978/0.5355, allocations: 1.444 MB / 0.7795 GB, free: 10.56 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004011/0.5395, allocations: 1.775 MB / 0.7812 GB, free: 8.785 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001974/0.5415, allocations: 1.182 MB / 0.7824 GB, free: 7.598 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.0002566/0.5418, allocations: 176 kB / 0.7826 GB, free: 7.426 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003046/0.5448, allocations: 1.419 MB / 0.7839 GB, free: 6.004 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.000379/0.5452, allocations: 382.6 kB / 0.7843 GB, free: 5.629 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.001126/0.5464, allocations: 0.9176 MB / 0.7852 GB, free: 4.707 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.004416/0.5508, allocations: 3.111 MB / 0.7882 GB, free: 1.59 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.067e-06/0.5508, allocations: 0 / 0.7882 GB, free: 1.59 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.744e-06/0.5508, allocations: 4 kB / 0.7882 GB, free: 1.586 MB / 0.545 GB Notification: Performance of Transformations before backend: time 3.461e-05/0.5509, allocations: 0 / 0.7882 GB, free: 1.586 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.003535/0.5544, allocations: 2.039 MB / 0.7902 GB, free: 15.48 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.225e-05/0.5545, allocations: 8.031 kB / 0.7902 GB, free: 15.48 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002108/0.5566, allocations: 442.7 kB / 0.7907 GB, free: 15.04 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002681/0.5593, allocations: 1.547 MB / 0.7922 GB, free: 13.44 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.618e-05/0.5594, allocations: 78.03 kB / 0.7922 GB, free: 13.36 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001409/0.5595, allocations: 108 kB / 0.7924 GB, free: 13.25 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002409/0.5619, allocations: 1.313 MB / 0.7936 GB, free: 11.83 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.285e-05/0.562, allocations: 4 kB / 0.7936 GB, free: 11.82 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.308e-05/0.5621, allocations: 47.94 kB / 0.7937 GB, free: 11.78 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.078e-05/0.5621, allocations: 28 kB / 0.7937 GB, free: 11.75 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002397/0.5645, allocations: 1.097 MB / 0.7948 GB, free: 10.65 MB / 0.5606 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.008441/0.5729, allocations: 7.506 MB / 0.8021 GB, free: 2.633 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002855/0.5758, allocations: 0.8056 MB / 0.8029 GB, free: 1.82 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005183/0.5763, allocations: 282 kB / 0.8032 GB, free: 1.543 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001163/0.5775, allocations: 1.722 MB / 0.8048 GB, free: 15.43 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.303e-05/0.5776, allocations: 42.94 kB / 0.8049 GB, free: 15.38 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=48): time 2.485e-06/0.5776, allocations: 0 / 0.8049 GB, free: 15.38 MB / 0.5762 GB Notification: Performance of matching and sorting (n=48): time 0.00426/0.5818, allocations: 1.33 MB / 0.8062 GB, free: 14.02 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.542e-05/0.5819, allocations: 63.77 kB / 0.8062 GB, free: 13.95 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002153/0.5841, allocations: 1.545 MB / 0.8078 GB, free: 12.39 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 5.877e-05/0.5841, allocations: 37.64 kB / 0.8078 GB, free: 12.34 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005247/0.5847, allocations: 0.6729 MB / 0.8085 GB, free: 11.66 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001435/0.5848, allocations: 173.6 kB / 0.8086 GB, free: 11.49 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002643/0.5851, allocations: 170.5 kB / 0.8088 GB, free: 11.32 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001226/0.5852, allocations: 341.9 kB / 0.8091 GB, free: 10.98 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008605/0.5861, allocations: 361.8 kB / 0.8094 GB, free: 10.63 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001114/0.5872, allocations: 0.6546 MB / 0.8101 GB, free: 9.848 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001595/0.5888, allocations: 0.8829 MB / 0.811 GB, free: 8.863 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.408e-06/0.5888, allocations: 0 / 0.811 GB, free: 8.863 MB / 0.5762 GB Notification: Performance of matching and sorting (n=92) (initialization): time 0.002677/0.5915, allocations: 1.201 MB / 0.8121 GB, free: 7.652 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.057e-05/0.5915, allocations: 11.94 kB / 0.8121 GB, free: 7.641 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.478e-05/0.5916, allocations: 12.03 kB / 0.8121 GB, free: 7.629 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000805/0.5924, allocations: 220.6 kB / 0.8124 GB, free: 7.41 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007156/0.5931, allocations: 187.7 kB / 0.8125 GB, free: 7.227 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007795/0.5939, allocations: 0.7278 MB / 0.8132 GB, free: 6.473 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00141/0.5953, allocations: 206.7 kB / 0.8134 GB, free: 6.27 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.69e-05/0.5954, allocations: 47.98 kB / 0.8135 GB, free: 6.223 MB / 0.5762 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.0005367/0.596, allocations: 349.6 kB / 0.8138 GB, free: 5.871 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002278/0.5962, allocations: 150.1 kB / 0.814 GB, free: 5.723 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002213/0.5984, allocations: 1.15 MB / 0.8151 GB, free: 4.551 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.414e-05/0.5984, allocations: 4 kB / 0.8151 GB, free: 4.547 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.372e-06/0.5984, allocations: 4 kB / 0.8151 GB, free: 4.543 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.948e-05/0.5985, allocations: 3.984 kB / 0.8151 GB, free: 4.539 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004727/0.6032, allocations: 2.51 MB / 0.8176 GB, free: 1.949 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.502e-06/0.6032, allocations: 0 / 0.8176 GB, free: 1.949 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003518/0.6036, allocations: 87.88 kB / 0.8176 GB, free: 1.863 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006711/0.6043, allocations: 212.8 kB / 0.8178 GB, free: 1.652 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.066e-05/0.6043, allocations: 19.98 kB / 0.8179 GB, free: 1.633 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001127/0.6054, allocations: 0.7592 MB / 0.8186 GB, free: 0.8477 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.17e-06/0.6055, allocations: 15.97 kB / 0.8186 GB, free: 0.832 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002972/0.6084, allocations: 1.203 MB / 0.8198 GB, free: 15.59 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005446/0.609, allocations: 346.9 kB / 0.8201 GB, free: 15.23 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001723/0.6092, allocations: 19.92 kB / 0.8201 GB, free: 15.21 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008115/0.61, allocations: 71.92 kB / 0.8202 GB, free: 15.14 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.853e-05/0.6101, allocations: 40.5 kB / 0.8202 GB, free: 15.1 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.667e-05/0.6102, allocations: 27.98 kB / 0.8203 GB, free: 15.07 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.001587/0.6117, allocations: 1.082 MB / 0.8213 GB, free: 13.99 MB / 0.5919 GB Notification: Performance of sort global known variables: time 2.01e-07/0.6118, allocations: 0 / 0.8213 GB, free: 13.99 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.001227/0.613, allocations: 447.4 kB / 0.8218 GB, free: 13.55 MB / 0.5919 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.0008214/0.6138, allocations: 492.1 kB / 0.8222 GB, free: 13.08 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.001999/0.6158, allocations: 0.8402 MB / 0.823 GB, free: 12.24 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.6158, allocations: 0 / 0.823 GB, free: 12.24 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.001147/0.617, allocations: 444.2 kB / 0.8235 GB, free: 11.81 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00259/0.6196, allocations: 0.7407 MB / 0.8242 GB, free: 11.08 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003489/0.6231, allocations: 2.262 MB / 0.8264 GB, free: 8.766 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006711/0.6238, allocations: 1.168 MB / 0.8275 GB, free: 7.57 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0008376/0.6246, allocations: 275.1 kB / 0.8278 GB, free: 7.301 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002414/0.6249, allocations: 111.4 kB / 0.8279 GB, free: 7.195 MB / 0.5919 GB Notification: Performance of SimCode: time 4.2e-07/0.6249, allocations: 0 / 0.8279 GB, free: 7.195 MB / 0.5919 GB Notification: Performance of Templates: time 0.04628/0.6712, allocations: 31.54 MB / 0.8587 GB, free: 8.086 MB / 0.6231 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.makefile (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 & ./BuildingSystems_BuildingSystems.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.pipe 2>&1)