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: "" <> buildModelFMU(Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw,fileNamePrefix="Buildings_8_Buildings_Fluid_Chillers_Validation_Carnot_TEva_2ndLaw",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw,fileNamePrefix="Buildings_8_Buildings_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.001198/0.001198, allocations: 109.4 kB / 15.69 MB, free: 128 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.00136/0.00136, allocations: 189.5 kB / 16.62 MB, free: 6.582 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.447/1.447, allocations: 205.1 MB / 222.5 MB, free: 4.547 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.794/1.794, allocations: 292.3 MB / 0.549 GB, free: 12.76 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.002364/0.002365, allocations: 74.56 kB / 0.6718 GB, free: 26.18 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2761/0.2785, allocations: 114.5 MB / 0.7836 GB, free: 13.28 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw): time 0.06666/0.3452, allocations: 70.51 MB / 0.8525 GB, free: 6.52 MB / 0.67 GB Notification: Performance of NFInst.instExpressions: time 0.02691/0.3721, allocations: 18.83 MB / 0.8709 GB, free: 3.637 MB / 0.6856 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00348/0.3757, allocations: 63.62 kB / 0.8709 GB, free: 3.574 MB / 0.6856 GB Notification: Performance of NFTyping.typeComponents: time 0.002637/0.3783, allocations: 0.8228 MB / 0.8717 GB, free: 2.746 MB / 0.6856 GB Notification: Performance of NFTyping.typeBindings: time 0.008176/0.3866, allocations: 2.837 MB / 0.8745 GB, free: 15.9 MB / 0.7012 GB Notification: Performance of NFTyping.typeClassSections: time 0.004386/0.391, allocations: 1.675 MB / 0.8761 GB, free: 14.23 MB / 0.7012 GB Notification: Performance of NFFlatten.flatten: time 0.005331/0.3964, allocations: 4.027 MB / 0.8801 GB, free: 10.19 MB / 0.7012 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002109/0.3985, allocations: 1.461 MB / 0.8815 GB, free: 8.695 MB / 0.7012 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004141/0.4026, allocations: 1.788 MB / 0.8832 GB, free: 6.902 MB / 0.7012 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002106/0.4048, allocations: 1.19 MB / 0.8844 GB, free: 5.707 MB / 0.7012 GB Notification: Performance of NFPackage.collectConstants: time 0.0003177/0.4051, allocations: 176 kB / 0.8846 GB, free: 5.535 MB / 0.7012 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003967/0.4091, allocations: 1.408 MB / 0.8859 GB, free: 4.125 MB / 0.7012 GB Notification: Performance of NFScalarize.scalarize: time 0.0004324/0.4095, allocations: 402.5 kB / 0.8863 GB, free: 3.73 MB / 0.7012 GB Notification: Performance of NFVerifyModel.verify: time 0.001196/0.4107, allocations: 0.9177 MB / 0.8872 GB, free: 2.809 MB / 0.7012 GB Notification: Performance of NFConvertDAE.convert: time 0.004356/0.4151, allocations: 3.136 MB / 0.8903 GB, free: 15.66 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.4151, allocations: 0 / 0.8903 GB, free: 15.66 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.663e-06/0.4151, allocations: 0 / 0.8903 GB, free: 15.66 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.854e-05/0.4152, allocations: 4 kB / 0.8903 GB, free: 15.66 MB / 0.7169 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.00404/0.4192, allocations: 2.034 MB / 0.8923 GB, free: 13.56 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 6.064e-05/0.4193, allocations: 12.02 kB / 0.8923 GB, free: 13.55 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001839/0.4195, allocations: 156.6 kB / 0.8924 GB, free: 13.39 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002217/0.4217, allocations: 445.7 kB / 0.8929 GB, free: 12.95 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00295/0.4247, allocations: 1.555 MB / 0.8944 GB, free: 11.34 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.383e-05/0.4248, allocations: 86.03 kB / 0.8945 GB, free: 11.25 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001402/0.4249, allocations: 100 kB / 0.8946 GB, free: 11.16 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002594/0.4275, allocations: 1.315 MB / 0.8958 GB, free: 9.738 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.259e-05/0.4276, allocations: 8 kB / 0.8959 GB, free: 9.73 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001072/0.4277, allocations: 47.94 kB / 0.8959 GB, free: 9.684 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.74e-05/0.4277, allocations: 31.92 kB / 0.8959 GB, free: 9.652 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00263/0.4304, allocations: 1.108 MB / 0.897 GB, free: 8.547 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.009625/0.44, allocations: 7.226 MB / 0.9041 GB, free: 0.8516 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003157/0.4432, allocations: 0.8589 MB / 0.9049 GB, free: 15.98 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006527/0.4439, allocations: 294 kB / 0.9052 GB, free: 15.7 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001223/0.4451, allocations: 1.722 MB / 0.9069 GB, free: 13.59 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.602e-05/0.4452, allocations: 43 kB / 0.9069 GB, free: 13.54 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=52): time 2.736e-06/0.4452, allocations: 0 / 0.9069 GB, free: 13.54 MB / 0.7325 GB Notification: Performance of matching and sorting (n=52): time 0.004832/0.45, allocations: 1.373 MB / 0.9083 GB, free: 12.13 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.564e-05/0.4501, allocations: 59.84 kB / 0.9083 GB, free: 12.06 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002483/0.4526, allocations: 1.557 MB / 0.9098 GB, free: 10.49 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 0.0001043/0.4527, allocations: 37.7 kB / 0.9099 GB, free: 10.45 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005361/0.4533, allocations: 0.6691 MB / 0.9105 GB, free: 9.773 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001817/0.4535, allocations: 181.4 kB / 0.9107 GB, free: 9.594 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000288/0.4538, allocations: 178.4 kB / 0.9109 GB, free: 9.414 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001179/0.4539, allocations: 341.9 kB / 0.9112 GB, free: 9.074 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009793/0.4549, allocations: 381.8 kB / 0.9116 GB, free: 8.699 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001235/0.4561, allocations: 0.6663 MB / 0.9122 GB, free: 7.906 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001945/0.4581, allocations: 0.918 MB / 0.9131 GB, free: 6.883 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.783e-06/0.4581, allocations: 0 / 0.9131 GB, free: 6.883 MB / 0.7325 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.003157/0.4613, allocations: 1.228 MB / 0.9143 GB, free: 5.645 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 3.004e-05/0.4613, allocations: 8 kB / 0.9143 GB, free: 5.637 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.882e-05/0.4613, allocations: 8 kB / 0.9143 GB, free: 5.629 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008959/0.4622, allocations: 228.5 kB / 0.9145 GB, free: 5.406 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007883/0.463, allocations: 203.7 kB / 0.9147 GB, free: 5.207 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009156/0.464, allocations: 0.7162 MB / 0.9154 GB, free: 4.465 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001693/0.4657, allocations: 210.7 kB / 0.9156 GB, free: 4.258 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001081/0.4658, allocations: 43.98 kB / 0.9157 GB, free: 4.215 MB / 0.7325 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 (88): * Single equations (assignments): 87 * 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.0007477/0.4665, allocations: 365.6 kB / 0.916 GB, free: 3.848 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000317/0.4669, allocations: 150.1 kB / 0.9162 GB, free: 3.699 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002574/0.4694, allocations: 1.191 MB / 0.9173 GB, free: 2.488 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.1e-05/0.4695, allocations: 11.98 kB / 0.9173 GB, free: 2.477 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.653e-06/0.4695, allocations: 0 / 0.9173 GB, free: 2.477 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.486e-06/0.4695, allocations: 0 / 0.9173 GB, free: 2.477 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.45/0.9195, allocations: 2.573 MB / 0.9198 GB, free: 135.7 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.65e-05/0.9195, allocations: 3.312 kB / 0.9199 GB, free: 135.7 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004683/0.92, allocations: 93 kB / 0.9199 GB, free: 135.7 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008183/0.9208, allocations: 211.1 kB / 0.9201 GB, free: 135.7 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.698e-05/0.9209, allocations: 20.08 kB / 0.9202 GB, free: 135.7 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001178/0.9221, allocations: 0.7663 MB / 0.9209 GB, free: 135.2 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.759e-06/0.9221, allocations: 6.344 kB / 0.9209 GB, free: 135.2 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003583/0.9257, allocations: 1.243 MB / 0.9221 GB, free: 135 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007375/0.9265, allocations: 360.2 kB / 0.9225 GB, free: 134.9 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002121/0.9267, allocations: 12.59 kB / 0.9225 GB, free: 134.9 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009247/0.9276, allocations: 81.08 kB / 0.9226 GB, free: 134.9 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001062/0.9277, allocations: 38.69 kB / 0.9226 GB, free: 134.9 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.032e-05/0.9278, allocations: 31.3 kB / 0.9226 GB, free: 134.9 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.001802/0.9296, allocations: 1.083 MB / 0.9237 GB, free: 134.8 MB / 0.7325 GB Notification: Performance of sort global known variables: time 3.31e-07/0.9296, allocations: 0 / 0.9237 GB, free: 134.8 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.001352/0.931, allocations: 450.9 kB / 0.9241 GB, free: 134.8 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.004369/0.9354, allocations: 2.15 MB / 0.9262 GB, free: 133.9 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.002055/0.9374, allocations: 0.8797 MB / 0.9271 GB, free: 133.6 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 4.528e-06/0.9375, allocations: 2.969 kB / 0.9271 GB, free: 133.6 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.001203/0.9387, allocations: 458.4 kB / 0.9275 GB, free: 133.5 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003158/0.9418, allocations: 0.7712 MB / 0.9283 GB, free: 133.3 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01792/0.9598, allocations: 10.6 MB / 0.9386 GB, free: 128.1 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001119/0.9609, allocations: 1.174 MB / 0.9398 GB, free: 127.4 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.001539/0.9625, allocations: 272.3 kB / 0.94 GB, free: 127.3 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000827/0.9633, allocations: 0.5588 MB / 0.9406 GB, free: 126.9 MB / 0.7325 GB Notification: Performance of SimCode: time 8.81e-07/0.9633, allocations: 0 / 0.9406 GB, free: 126.9 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0708/1.034, allocations: 44.16 MB / 0.9837 GB, free: 96.76 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.54/14.57, allocations: 11.84 kB / 0.9837 GB, free: 96.75 MB / 0.7325 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Fluid_Chillers_Validation_Carnot_TEva_2ndLaw_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Fluid_Chillers_Validation_Carnot_TEva_2ndLaw.fmu > Buildings_8_Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.pipe 2>&1)