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.00735/0.007357, allocations: 104.3 kB / 15.74 MB, free: 6.492 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.001616/0.001617, allocations: 190 kB / 16.67 MB, free: 6.379 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.385/1.385, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00209/0.00209, allocations: 290.1 kB / 290.8 MB, free: 1.906 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.015/1.015, allocations: 169.2 MB / 0.4983 GB, free: 13.79 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001843/0.001843, allocations: 92.17 kB / 0.6809 GB, free: 0 / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1765/0.1784, allocations: 86.98 MB / 0.7659 GB, free: 8.945 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw): time 0.476/0.6544, allocations: 70.44 MB / 0.8347 GB, free: 0.6484 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.02434/0.6788, allocations: 18.92 MB / 0.8532 GB, free: 2.02 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003221/0.6821, allocations: 71.25 kB / 0.8532 GB, free: 1.992 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.00252/0.6846, allocations: 0.82 MB / 0.854 GB, free: 1.277 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.008879/0.6935, allocations: 2.852 MB / 0.8568 GB, free: 15 MB / 0.6231 GB Notification: Performance of NFTyping.typeClassSections: time 0.00459/0.6981, allocations: 1.664 MB / 0.8584 GB, free: 13.7 MB / 0.6231 GB Notification: Performance of NFFlatten.flatten: time 0.005847/0.704, allocations: 4.031 MB / 0.8624 GB, free: 11.27 MB / 0.6231 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00246/0.7065, allocations: 1.459 MB / 0.8638 GB, free: 10.32 MB / 0.6231 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004257/0.7107, allocations: 1.776 MB / 0.8655 GB, free: 9.18 MB / 0.6231 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00256/0.7133, allocations: 1.18 MB / 0.8667 GB, free: 8.445 MB / 0.6231 GB Notification: Performance of NFPackage.collectConstants: time 0.0004707/0.7138, allocations: 174.3 kB / 0.8668 GB, free: 8.445 MB / 0.6231 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0038/0.7176, allocations: 1.412 MB / 0.8682 GB, free: 7.699 MB / 0.6231 GB Notification: Performance of NFScalarize.scalarize: time 0.0005759/0.7182, allocations: 387.9 kB / 0.8686 GB, free: 7.379 MB / 0.6231 GB Notification: Performance of NFVerifyModel.verify: time 0.001884/0.7201, allocations: 0.9274 MB / 0.8695 GB, free: 6.727 MB / 0.6231 GB Notification: Performance of NFConvertDAE.convert: time 0.006123/0.7262, allocations: 3.106 MB / 0.8725 GB, free: 4.582 MB / 0.6231 GB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.7263, allocations: 0 / 0.8725 GB, free: 4.582 MB / 0.6231 GB Notification: Performance of FrontEnd: time 1.613e-06/0.7263, allocations: 0 / 0.8725 GB, free: 4.582 MB / 0.6231 GB Notification: Performance of Transformations before backend: time 8.648e-05/0.7264, allocations: 0 / 0.8725 GB, free: 4.582 MB / 0.6231 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.004658/0.731, allocations: 2.031 MB / 0.8745 GB, free: 3.027 MB / 0.6231 GB Notification: Performance of prepare preOptimizeDAE: time 4.67e-05/0.7311, allocations: 9.562 kB / 0.8745 GB, free: 3.027 MB / 0.6231 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001926/0.7313, allocations: 162.7 kB / 0.8747 GB, free: 2.895 MB / 0.6231 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002286/0.7336, allocations: 440.9 kB / 0.8751 GB, free: 2.695 MB / 0.6231 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003005/0.7366, allocations: 1.557 MB / 0.8766 GB, free: 1.43 MB / 0.6231 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.781e-05/0.7367, allocations: 83.16 kB / 0.8767 GB, free: 1.391 MB / 0.6231 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000153/0.7368, allocations: 101.2 kB / 0.8768 GB, free: 1.359 MB / 0.6231 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002452/0.7393, allocations: 1.32 MB / 0.8781 GB, free: 252 kB / 0.6231 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.471e-05/0.7393, allocations: 11.92 kB / 0.8781 GB, free: 240 kB / 0.6231 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.957e-05/0.7394, allocations: 40 kB / 0.8781 GB, free: 200 kB / 0.6231 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.574e-05/0.7395, allocations: 28 kB / 0.8782 GB, free: 172 kB / 0.6231 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002586/0.7421, allocations: 1.093 MB / 0.8792 GB, free: 15.07 MB / 0.6387 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.008168/0.7502, allocations: 7.516 MB / 0.8866 GB, free: 7.039 MB / 0.6387 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003151/0.7534, allocations: 0.7991 MB / 0.8874 GB, free: 6.234 MB / 0.6387 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005967/0.754, allocations: 282 kB / 0.8876 GB, free: 5.953 MB / 0.6387 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001139/0.7552, allocations: 1.722 MB / 0.8893 GB, free: 3.844 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.926e-05/0.7552, allocations: 42.94 kB / 0.8893 GB, free: 3.793 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=48): time 2.144e-06/0.7552, allocations: 0 / 0.8893 GB, free: 3.793 MB / 0.6387 GB Notification: Performance of matching and sorting (n=48): time 0.004758/0.76, allocations: 1.342 MB / 0.8907 GB, free: 2.422 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.103e-05/0.76, allocations: 55.84 kB / 0.8907 GB, free: 2.355 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002191/0.7622, allocations: 1.542 MB / 0.8922 GB, free: 0.8047 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 5.979e-05/0.7623, allocations: 37.7 kB / 0.8922 GB, free: 0.7617 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005165/0.7628, allocations: 0.6806 MB / 0.8929 GB, free: 76 kB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001573/0.763, allocations: 165.8 kB / 0.8931 GB, free: 15.91 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002681/0.7633, allocations: 174.4 kB / 0.8932 GB, free: 15.73 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.0001223/0.7634, allocations: 334 kB / 0.8936 GB, free: 15.4 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009625/0.7644, allocations: 365.8 kB / 0.8939 GB, free: 15.04 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001189/0.7656, allocations: 0.6585 MB / 0.8945 GB, free: 14.26 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001759/0.7673, allocations: 0.8906 MB / 0.8954 GB, free: 13.27 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.831e-06/0.7673, allocations: 3.938 kB / 0.8954 GB, free: 13.26 MB / 0.6544 GB Notification: Performance of matching and sorting (n=92) (initialization): time 0.002837/0.7702, allocations: 1.189 MB / 0.8966 GB, free: 12.06 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 1.75e-05/0.7702, allocations: 8 kB / 0.8966 GB, free: 12.05 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.551e-05/0.7702, allocations: 8 kB / 0.8966 GB, free: 12.04 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008279/0.7711, allocations: 216.7 kB / 0.8968 GB, free: 11.83 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007821/0.7719, allocations: 199.7 kB / 0.897 GB, free: 11.63 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008394/0.7727, allocations: 0.7239 MB / 0.8977 GB, free: 10.88 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001476/0.7742, allocations: 210.7 kB / 0.8979 GB, free: 10.68 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.812e-05/0.7743, allocations: 43.98 kB / 0.8979 GB, free: 10.63 MB / 0.6544 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.0005022/0.7748, allocations: 357.6 kB / 0.8983 GB, free: 10.27 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002196/0.775, allocations: 150.2 kB / 0.8984 GB, free: 10.12 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00232/0.7774, allocations: 1.144 MB / 0.8995 GB, free: 8.965 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.919e-05/0.7774, allocations: 11.98 kB / 0.8996 GB, free: 8.953 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.7774, allocations: 0 / 0.8996 GB, free: 8.953 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.446e-06/0.7774, allocations: 3.984 kB / 0.8996 GB, free: 8.949 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005106/0.7825, allocations: 2.51 MB / 0.902 GB, free: 6.355 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.644e-06/0.7826, allocations: 3.984 kB / 0.902 GB, free: 6.352 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003674/0.7829, allocations: 79.89 kB / 0.9021 GB, free: 6.273 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007281/0.7837, allocations: 216.8 kB / 0.9023 GB, free: 6.059 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.005e-05/0.7837, allocations: 19.98 kB / 0.9023 GB, free: 6.039 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001268/0.785, allocations: 0.7707 MB / 0.9031 GB, free: 5.242 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.609e-06/0.785, allocations: 4.031 kB / 0.9031 GB, free: 5.238 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003383/0.7884, allocations: 1.195 MB / 0.9042 GB, free: 4.004 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005801/0.789, allocations: 350.9 kB / 0.9046 GB, free: 3.641 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00019/0.7892, allocations: 12 kB / 0.9046 GB, free: 3.629 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008884/0.7901, allocations: 75.91 kB / 0.9047 GB, free: 3.555 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.748e-05/0.7902, allocations: 48.5 kB / 0.9047 GB, free: 3.508 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.738e-05/0.7902, allocations: 23.98 kB / 0.9047 GB, free: 3.484 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.001641/0.7919, allocations: 1.086 MB / 0.9058 GB, free: 2.402 MB / 0.6544 GB Notification: Performance of sort global known variables: time 2.3e-07/0.7919, allocations: 0 / 0.9058 GB, free: 2.402 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.001262/0.7932, allocations: 443.6 kB / 0.9062 GB, free: 1.969 MB / 0.6544 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.004435/0.7976, allocations: 2.125 MB / 0.9083 GB, free: 15.81 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.002135/0.7998, allocations: 0.853 MB / 0.9091 GB, free: 14.95 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 3.035e-06/0.7998, allocations: 0 / 0.9091 GB, free: 14.95 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 0.00129/0.8011, allocations: 439.6 kB / 0.9095 GB, free: 14.53 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003105/0.8042, allocations: 0.7394 MB / 0.9103 GB, free: 13.8 MB / 0.67 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01697/0.8212, allocations: 10.44 MB / 0.9205 GB, free: 3 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007912/0.822, allocations: 1.176 MB / 0.9216 GB, free: 1.789 MB / 0.67 GB Notification: Performance of simCode: alias equations: time 0.0009771/0.823, allocations: 270.9 kB / 0.9219 GB, free: 1.523 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006733/0.8237, allocations: 0.5422 MB / 0.9224 GB, free: 0.9805 MB / 0.67 GB Notification: Performance of SimCode: time 1.031e-06/0.8237, allocations: 0 / 0.9224 GB, free: 0.9805 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07747/0.9011, allocations: 43.48 MB / 0.9648 GB, free: 6.129 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.5/14.4, allocations: 16.34 kB / 0.9649 GB, free: 6.113 MB / 0.7169 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Chillers_Validation_Carnot_TEva_2ndLaw_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_Chillers_Validation_Carnot_TEva_2ndLaw.fmu > BuildingSystems_BuildingSystems.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.pipe 2>&1)