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.0009798/0.0009803, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.007867/0.007867, allocations: 169.4 kB / 16.26 MB, free: 6.652 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.357/1.357, allocations: 205.4 MB / 222.4 MB, free: 5.566 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.675/1.675, allocations: 292.7 MB / 0.5502 GB, free: 14.46 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.0005087/0.0005087, allocations: 13.88 kB / 0.6744 GB, free: 25.89 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1875/0.188, allocations: 116.3 MB / 0.788 GB, free: 11.5 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw): time 0.05662/0.2446, allocations: 68.88 MB / 0.8553 GB, free: 6.379 MB / 0.67 GB Notification: Performance of NFInst.instExpressions: time 0.01963/0.2643, allocations: 18.69 MB / 0.8735 GB, free: 3.648 MB / 0.6856 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001463/0.2658, allocations: 59.62 kB / 0.8736 GB, free: 3.59 MB / 0.6856 GB Notification: Performance of NFTyping.typeComponents: time 0.001582/0.2674, allocations: 0.6565 MB / 0.8742 GB, free: 2.93 MB / 0.6856 GB Notification: Performance of NFTyping.typeBindings: time 0.005592/0.273, allocations: 2.594 MB / 0.8767 GB, free: 332 kB / 0.6856 GB Notification: Performance of NFTyping.typeClassSections: time 0.003019/0.276, allocations: 1.51 MB / 0.8782 GB, free: 14.82 MB / 0.7012 GB Notification: Performance of NFFlatten.flatten: time 0.004545/0.2806, allocations: 5.004 MB / 0.8831 GB, free: 9.801 MB / 0.7012 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001355/0.282, allocations: 1.14 MB / 0.8842 GB, free: 8.625 MB / 0.7012 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002215/0.2842, allocations: 1.458 MB / 0.8856 GB, free: 7.16 MB / 0.7012 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001189/0.2854, allocations: 1.112 MB / 0.8867 GB, free: 6.043 MB / 0.7012 GB Notification: Performance of NFPackage.collectConstants: time 0.0001156/0.2855, allocations: 56 kB / 0.8868 GB, free: 5.988 MB / 0.7012 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002076/0.2876, allocations: 1.228 MB / 0.888 GB, free: 4.758 MB / 0.7012 GB Notification: Performance of NFScalarize.scalarize: time 0.0002278/0.2878, allocations: 262.6 kB / 0.8882 GB, free: 4.5 MB / 0.7012 GB Notification: Performance of NFVerifyModel.verify: time 0.0006319/0.2885, allocations: 0.81 MB / 0.889 GB, free: 3.68 MB / 0.7012 GB Notification: Performance of NFConvertDAE.convert: time 0.002594/0.2911, allocations: 2.979 MB / 0.8919 GB, free: 0.6914 MB / 0.7012 GB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.2911, allocations: 0 / 0.8919 GB, free: 0.6914 MB / 0.7012 GB Notification: Performance of FrontEnd: time 1.182e-06/0.2911, allocations: 0 / 0.8919 GB, free: 0.6914 MB / 0.7012 GB Notification: Performance of Transformations before backend: time 2.169e-05/0.2911, allocations: 0 / 0.8919 GB, free: 0.6914 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.002669/0.2938, allocations: 1.712 MB / 0.8936 GB, free: 14.91 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.706e-05/0.2938, allocations: 12.03 kB / 0.8936 GB, free: 14.9 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001645/0.294, allocations: 152.6 kB / 0.8938 GB, free: 14.75 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002165/0.2962, allocations: 0.5054 MB / 0.8942 GB, free: 14.24 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002376/0.2986, allocations: 1.524 MB / 0.8957 GB, free: 12.66 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003819/0.299, allocations: 150 kB / 0.8959 GB, free: 12.51 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001524/0.2991, allocations: 104 kB / 0.896 GB, free: 12.41 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002479/0.3016, allocations: 1.331 MB / 0.8973 GB, free: 10.99 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.983e-05/0.3017, allocations: 0 / 0.8973 GB, free: 10.99 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.926e-05/0.3018, allocations: 47.94 kB / 0.8973 GB, free: 10.94 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.131e-05/0.3018, allocations: 24 kB / 0.8973 GB, free: 10.92 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002711/0.3045, allocations: 1.175 MB / 0.8985 GB, free: 9.746 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.008544/0.3131, allocations: 6.896 MB / 0.9052 GB, free: 2.398 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003328/0.3164, allocations: 0.9455 MB / 0.9061 GB, free: 1.449 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006476/0.3171, allocations: 314 kB / 0.9064 GB, free: 1.141 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001102/0.3182, allocations: 1.722 MB / 0.9081 GB, free: 15.03 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.229e-05/0.3182, allocations: 47 kB / 0.9082 GB, free: 14.97 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=52): time 2.124e-06/0.3182, allocations: 0 / 0.9082 GB, free: 14.97 MB / 0.7325 GB Notification: Performance of matching and sorting (n=52): time 0.004925/0.3232, allocations: 1.491 MB / 0.9096 GB, free: 13.45 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.371e-05/0.3232, allocations: 55.84 kB / 0.9097 GB, free: 13.39 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002207/0.3254, allocations: 1.549 MB / 0.9112 GB, free: 11.83 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 7.358e-05/0.3255, allocations: 37.7 kB / 0.9112 GB, free: 11.79 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.000508/0.326, allocations: 0.6576 MB / 0.9119 GB, free: 11.12 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001686/0.3262, allocations: 189.3 kB / 0.9121 GB, free: 10.93 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.391e-05/0.3263, allocations: 65.62 kB / 0.9121 GB, free: 10.86 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001008/0.3264, allocations: 334 kB / 0.9124 GB, free: 10.53 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001051/0.3275, allocations: 405.8 kB / 0.9128 GB, free: 10.13 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00121/0.3287, allocations: 0.6744 MB / 0.9135 GB, free: 9.344 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001805/0.3305, allocations: 0.9264 MB / 0.9144 GB, free: 8.32 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.741e-06/0.3305, allocations: 4 kB / 0.9144 GB, free: 8.316 MB / 0.7325 GB Notification: Performance of matching and sorting (n=90) (initialization): time 0.004498/0.335, allocations: 1.474 MB / 0.9158 GB, free: 6.832 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.633e-05/0.3351, allocations: 16.06 kB / 0.9158 GB, free: 6.816 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.177e-05/0.3351, allocations: 7.984 kB / 0.9159 GB, free: 6.809 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008488/0.3359, allocations: 228.6 kB / 0.9161 GB, free: 6.582 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007812/0.3367, allocations: 207.7 kB / 0.9163 GB, free: 6.379 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008207/0.3376, allocations: 0.7241 MB / 0.917 GB, free: 5.629 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001602/0.3392, allocations: 258.7 kB / 0.9172 GB, free: 5.375 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.344e-05/0.3393, allocations: 43.98 kB / 0.9173 GB, free: 5.332 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.0005561/0.3398, allocations: 365.5 kB / 0.9176 GB, free: 4.965 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001804/0.34, allocations: 146.2 kB / 0.9178 GB, free: 4.82 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002402/0.3424, allocations: 1.215 MB / 0.9189 GB, free: 3.586 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.554e-05/0.3425, allocations: 11.98 kB / 0.9189 GB, free: 3.574 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-06/0.3425, allocations: 0 / 0.9189 GB, free: 3.574 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.387e-06/0.3425, allocations: 7.922 kB / 0.919 GB, free: 3.566 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005085/0.3476, allocations: 2.658 MB / 0.9216 GB, free: 0.8242 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.994e-06/0.3476, allocations: 0 / 0.9216 GB, free: 0.8242 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003882/0.348, allocations: 99.81 kB / 0.9216 GB, free: 0.7266 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007414/0.3487, allocations: 228.8 kB / 0.9219 GB, free: 0.5 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.586e-05/0.3488, allocations: 23.92 kB / 0.9219 GB, free: 488 kB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.321/0.6698, allocations: 0.7933 MB / 0.9227 GB, free: 133.8 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.27e-06/0.6698, allocations: 6.047 kB / 0.9227 GB, free: 133.8 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003637/0.6735, allocations: 1.324 MB / 0.924 GB, free: 133.6 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005336/0.674, allocations: 377.7 kB / 0.9243 GB, free: 133.5 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001624/0.6742, allocations: 13.36 kB / 0.9243 GB, free: 133.5 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009365/0.6751, allocations: 104.9 kB / 0.9244 GB, free: 133.5 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.15e-05/0.6752, allocations: 45.33 kB / 0.9245 GB, free: 133.5 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.745e-05/0.6753, allocations: 28.95 kB / 0.9245 GB, free: 133.5 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.001828/0.6771, allocations: 1.088 MB / 0.9256 GB, free: 133.4 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.71e-07/0.6771, allocations: 0 / 0.9256 GB, free: 133.4 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.001228/0.6784, allocations: 447.5 kB / 0.926 GB, free: 133.4 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.004478/0.6829, allocations: 2.225 MB / 0.9282 GB, free: 132.6 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.002116/0.685, allocations: 0.9132 MB / 0.9291 GB, free: 132.6 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/0.685, allocations: 0 / 0.9291 GB, free: 132.6 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.001236/0.6862, allocations: 491.8 kB / 0.9295 GB, free: 132.5 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003443/0.6897, allocations: 0.735 MB / 0.9302 GB, free: 132.4 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02456/0.7143, allocations: 12 MB / 0.942 GB, free: 125.6 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008287/0.7151, allocations: 1.17 MB / 0.9431 GB, free: 124.8 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.001238/0.7164, allocations: 272.7 kB / 0.9434 GB, free: 124.8 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000706/0.7171, allocations: 0.5612 MB / 0.9439 GB, free: 124.4 MB / 0.7325 GB Notification: Performance of SimCode: time 6.51e-07/0.7171, allocations: 4 kB / 0.9439 GB, free: 124.4 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3214/1.038, allocations: 42.97 MB / 0.9859 GB, free: 95.11 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002306/1.039, allocations: 281.8 kB / 0.9862 GB, free: 94.74 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.016/4.055, allocations: 0 / 0.9862 GB, free: 94.74 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)