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.001156/0.001156, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001045/0.001045, allocations: 193.1 kB / 16.13 MB, free: 6.66 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.258/1.258, allocations: 205.1 MB / 222 MB, free: 4.746 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.644/1.644, allocations: 292.3 MB / 0.5484 GB, free: 13.66 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.001357/0.001357, allocations: 67.94 kB / 0.6709 GB, free: 26.48 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.162/0.1634, allocations: 114.5 MB / 0.7828 GB, free: 13.93 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw): time 0.05803/0.2215, allocations: 70.1 MB / 0.8512 GB, free: 7.59 MB / 0.67 GB Notification: Performance of NFInst.instExpressions: time 0.02005/0.2415, allocations: 18.91 MB / 0.8697 GB, free: 4.629 MB / 0.6856 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001532/0.2431, allocations: 59.62 kB / 0.8698 GB, free: 4.57 MB / 0.6856 GB Notification: Performance of NFTyping.typeComponents: time 0.00152/0.2447, allocations: 0.6604 MB / 0.8704 GB, free: 3.906 MB / 0.6856 GB Notification: Performance of NFTyping.typeBindings: time 0.00492/0.2496, allocations: 2.59 MB / 0.8729 GB, free: 1.305 MB / 0.6856 GB Notification: Performance of NFTyping.typeClassSections: time 0.002891/0.2525, allocations: 1.506 MB / 0.8744 GB, free: 15.81 MB / 0.7012 GB Notification: Performance of NFFlatten.flatten: time 0.004059/0.2566, allocations: 5.004 MB / 0.8793 GB, free: 10.79 MB / 0.7012 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001314/0.2579, allocations: 1.187 MB / 0.8805 GB, free: 9.566 MB / 0.7012 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002099/0.26, allocations: 1.497 MB / 0.8819 GB, free: 8.062 MB / 0.7012 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001195/0.2612, allocations: 1.167 MB / 0.8831 GB, free: 6.891 MB / 0.7012 GB Notification: Performance of NFPackage.collectConstants: time 0.000152/0.2614, allocations: 76 kB / 0.8831 GB, free: 6.816 MB / 0.7012 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002096/0.2635, allocations: 1.243 MB / 0.8843 GB, free: 5.57 MB / 0.7012 GB Notification: Performance of NFScalarize.scalarize: time 0.0002519/0.2637, allocations: 298.5 kB / 0.8846 GB, free: 5.277 MB / 0.7012 GB Notification: Performance of NFVerifyModel.verify: time 0.0006738/0.2644, allocations: 0.8161 MB / 0.8854 GB, free: 4.457 MB / 0.7012 GB Notification: Performance of NFConvertDAE.convert: time 0.00268/0.2671, allocations: 3.05 MB / 0.8884 GB, free: 1.398 MB / 0.7012 GB Notification: Performance of FrontEnd - DAE generated: time 3.406e-06/0.2671, allocations: 0 / 0.8884 GB, free: 1.398 MB / 0.7012 GB Notification: Performance of FrontEnd: time 6.91e-07/0.2671, allocations: 0 / 0.8884 GB, free: 1.398 MB / 0.7012 GB Notification: Performance of Transformations before backend: time 1.456e-05/0.2672, allocations: 0 / 0.8884 GB, free: 1.398 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.003105/0.2703, allocations: 2.034 MB / 0.8904 GB, free: 15.3 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.822e-05/0.2703, allocations: 12.03 kB / 0.8904 GB, free: 15.29 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001672/0.2705, allocations: 152.6 kB / 0.8906 GB, free: 15.13 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002213/0.2727, allocations: 449.7 kB / 0.891 GB, free: 14.69 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002216/0.2749, allocations: 1.52 MB / 0.8925 GB, free: 13.11 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003648/0.2753, allocations: 130 kB / 0.8926 GB, free: 12.98 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001376/0.2755, allocations: 111.9 kB / 0.8927 GB, free: 12.88 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00237/0.2778, allocations: 1.296 MB / 0.894 GB, free: 11.49 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.243e-05/0.2779, allocations: 11.92 kB / 0.894 GB, free: 11.48 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.767e-05/0.278, allocations: 43.94 kB / 0.894 GB, free: 11.44 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.207e-05/0.278, allocations: 28 kB / 0.894 GB, free: 11.41 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00262/0.2806, allocations: 1.112 MB / 0.8951 GB, free: 10.3 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.007306/0.2879, allocations: 6.857 MB / 0.9018 GB, free: 2.988 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003369/0.2913, allocations: 0.8578 MB / 0.9027 GB, free: 2.129 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006215/0.292, allocations: 294 kB / 0.9029 GB, free: 1.84 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001129/0.2931, allocations: 1.73 MB / 0.9046 GB, free: 15.72 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.575e-05/0.2931, allocations: 39 kB / 0.9047 GB, free: 15.68 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=52): time 1.913e-06/0.2931, allocations: 0 / 0.9047 GB, free: 15.68 MB / 0.7325 GB Notification: Performance of matching and sorting (n=52): time 0.004785/0.2979, allocations: 1.373 MB / 0.906 GB, free: 14.27 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.763e-05/0.298, allocations: 55.84 kB / 0.9061 GB, free: 14.2 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00203/0.3, allocations: 1.537 MB / 0.9076 GB, free: 12.66 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 5.434e-05/0.3001, allocations: 41.7 kB / 0.9076 GB, free: 12.61 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004996/0.3006, allocations: 0.6615 MB / 0.9083 GB, free: 11.94 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001366/0.3007, allocations: 189.3 kB / 0.9084 GB, free: 11.75 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002689/0.301, allocations: 170.4 kB / 0.9086 GB, free: 11.58 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 9.767e-05/0.3011, allocations: 330 kB / 0.9089 GB, free: 11.25 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00102/0.3021, allocations: 377.8 kB / 0.9093 GB, free: 10.88 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001212/0.3034, allocations: 0.6549 MB / 0.9099 GB, free: 10.11 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001766/0.3051, allocations: 0.8718 MB / 0.9108 GB, free: 9.148 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.98e-06/0.3051, allocations: 4 kB / 0.9108 GB, free: 9.145 MB / 0.7325 GB Notification: Performance of matching and sorting (n=90) (initialization): time 0.004325/0.3095, allocations: 1.369 MB / 0.9121 GB, free: 7.766 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.783e-05/0.3095, allocations: 11.94 kB / 0.9121 GB, free: 7.754 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.128e-06/0.3095, allocations: 8.062 kB / 0.9121 GB, free: 7.746 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008135/0.3103, allocations: 216.6 kB / 0.9123 GB, free: 7.531 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008048/0.3112, allocations: 199.7 kB / 0.9125 GB, free: 7.336 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007857/0.312, allocations: 0.72 MB / 0.9132 GB, free: 6.59 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001545/0.3135, allocations: 238.7 kB / 0.9134 GB, free: 6.355 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.444e-05/0.3136, allocations: 43.98 kB / 0.9135 GB, free: 6.312 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.0004645/0.3141, allocations: 360.4 kB / 0.9138 GB, free: 5.953 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002116/0.3143, allocations: 146.2 kB / 0.914 GB, free: 5.809 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00241/0.3167, allocations: 1.188 MB / 0.9151 GB, free: 4.602 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.429e-05/0.3167, allocations: 11.94 kB / 0.9151 GB, free: 4.59 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.629e-06/0.3167, allocations: 0 / 0.9151 GB, free: 4.59 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.125e-06/0.3168, allocations: 7.922 kB / 0.9152 GB, free: 4.582 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004964/0.3217, allocations: 2.572 MB / 0.9177 GB, free: 1.926 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.501e-06/0.3217, allocations: 0 / 0.9177 GB, free: 1.926 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004039/0.3222, allocations: 95.86 kB / 0.9178 GB, free: 1.832 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007147/0.3229, allocations: 216.8 kB / 0.918 GB, free: 1.617 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.472e-05/0.3229, allocations: 19.94 kB / 0.918 GB, free: 1.598 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001215/0.3242, allocations: 0.763 MB / 0.9187 GB, free: 0.8086 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.25e-06/0.3242, allocations: 7.969 kB / 0.9187 GB, free: 0.8008 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.304/0.6282, allocations: 1.235 MB / 0.9199 GB, free: 136.3 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007319/0.629, allocations: 350.1 kB / 0.9203 GB, free: 136.2 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000331/0.6293, allocations: 15.3 kB / 0.9203 GB, free: 136.2 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00114/0.6304, allocations: 90.67 kB / 0.9204 GB, free: 136.2 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001075/0.6306, allocations: 49.12 kB / 0.9204 GB, free: 136.2 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.022e-05/0.6307, allocations: 34.02 kB / 0.9205 GB, free: 136.2 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.002/0.6327, allocations: 1.072 MB / 0.9215 GB, free: 136.1 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.5e-07/0.6327, allocations: 1.062 kB / 0.9215 GB, free: 136.1 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.001378/0.6341, allocations: 446.1 kB / 0.9219 GB, free: 136.1 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.004517/0.6386, allocations: 2.146 MB / 0.924 GB, free: 135.4 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.002169/0.6408, allocations: 0.863 MB / 0.9249 GB, free: 135.4 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.965e-06/0.6408, allocations: 1.281 kB / 0.9249 GB, free: 135.4 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.001259/0.642, allocations: 460.9 kB / 0.9253 GB, free: 135.4 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002852/0.6449, allocations: 0.7277 MB / 0.926 GB, free: 135.3 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02389/0.6688, allocations: 11.82 MB / 0.9376 GB, free: 128.5 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006494/0.6695, allocations: 1.174 MB / 0.9387 GB, free: 127.8 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.001144/0.6706, allocations: 271.6 kB / 0.939 GB, free: 127.8 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006594/0.6713, allocations: 0.5506 MB / 0.9395 GB, free: 127.4 MB / 0.7325 GB Notification: Performance of SimCode: time 5.71e-07/0.6713, allocations: 4 kB / 0.9395 GB, free: 127.3 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.573/1.244, allocations: 42.47 MB / 0.981 GB, free: 99.68 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001668/1.244, allocations: 271.8 kB / 0.9812 GB, free: 99.31 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.921/4.165, allocations: 0 / 0.9812 GB, free: 99.31 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)