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.001469/0.001469, allocations: 108 kB / 15.6 MB, free: 132 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.001927/0.001927, allocations: 192.6 kB / 16.53 MB, free: 6.391 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.286/1.286, allocations: 205.1 MB / 222.4 MB, free: 4.609 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.704/1.704, allocations: 292.3 MB / 0.5489 GB, free: 12.82 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.001366/0.001366, allocations: 70.38 kB / 0.6716 GB, free: 26.17 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1929/0.1943, allocations: 114.5 MB / 0.7835 GB, free: 13.4 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw): time 0.06489/0.2592, allocations: 70.5 MB / 0.8523 GB, free: 6.648 MB / 0.67 GB Notification: Performance of NFInst.instExpressions: time 0.02232/0.2816, allocations: 18.84 MB / 0.8707 GB, free: 3.758 MB / 0.6856 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002881/0.2845, allocations: 63.62 kB / 0.8708 GB, free: 3.695 MB / 0.6856 GB Notification: Performance of NFTyping.typeComponents: time 0.002425/0.287, allocations: 0.8228 MB / 0.8716 GB, free: 2.867 MB / 0.6856 GB Notification: Performance of NFTyping.typeBindings: time 0.007532/0.2946, allocations: 2.837 MB / 0.8743 GB, free: 20 kB / 0.6856 GB Notification: Performance of NFTyping.typeClassSections: time 0.004019/0.2986, allocations: 1.669 MB / 0.876 GB, free: 14.36 MB / 0.7012 GB Notification: Performance of NFFlatten.flatten: time 0.005045/0.3037, allocations: 4.027 MB / 0.8799 GB, free: 10.31 MB / 0.7012 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002339/0.306, allocations: 1.461 MB / 0.8813 GB, free: 8.82 MB / 0.7012 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003953/0.31, allocations: 1.766 MB / 0.8831 GB, free: 7.051 MB / 0.7012 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002193/0.3122, allocations: 1.19 MB / 0.8842 GB, free: 5.855 MB / 0.7012 GB Notification: Performance of NFPackage.collectConstants: time 0.0004957/0.3127, allocations: 184 kB / 0.8844 GB, free: 5.676 MB / 0.7012 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003487/0.3162, allocations: 1.408 MB / 0.8858 GB, free: 4.266 MB / 0.7012 GB Notification: Performance of NFScalarize.scalarize: time 0.0006115/0.3168, allocations: 398.6 kB / 0.8862 GB, free: 3.875 MB / 0.7012 GB Notification: Performance of NFVerifyModel.verify: time 0.001737/0.3186, allocations: 0.9216 MB / 0.8871 GB, free: 2.949 MB / 0.7012 GB Notification: Performance of NFConvertDAE.convert: time 0.005475/0.3241, allocations: 3.105 MB / 0.8901 GB, free: 15.84 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 7.915e-06/0.3241, allocations: 0 / 0.8901 GB, free: 15.84 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.846e-06/0.3241, allocations: 3.938 kB / 0.8901 GB, free: 15.83 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 0.0001088/0.3242, allocations: 0 / 0.8901 GB, free: 15.83 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.006083/0.3303, allocations: 2.034 MB / 0.8921 GB, free: 13.74 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.325e-05/0.3304, allocations: 16.03 kB / 0.8921 GB, free: 13.72 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004098/0.3308, allocations: 160.5 kB / 0.8922 GB, free: 13.56 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002474/0.3333, allocations: 449.7 kB / 0.8927 GB, free: 13.12 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003156/0.3365, allocations: 1.493 MB / 0.8941 GB, free: 11.57 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003692/0.3368, allocations: 137.9 kB / 0.8943 GB, free: 11.43 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000145/0.337, allocations: 108 kB / 0.8944 GB, free: 11.32 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002514/0.3395, allocations: 1.314 MB / 0.8956 GB, free: 9.91 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.26e-05/0.3396, allocations: 3.938 kB / 0.8956 GB, free: 9.906 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.962e-05/0.3397, allocations: 51.94 kB / 0.8957 GB, free: 9.855 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.327e-05/0.3397, allocations: 24 kB / 0.8957 GB, free: 9.832 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002705/0.3424, allocations: 1.12 MB / 0.8968 GB, free: 8.715 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.008944/0.3514, allocations: 7.273 MB / 0.9039 GB, free: 0.9727 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003229/0.3546, allocations: 0.8483 MB / 0.9047 GB, free: 120 kB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000661/0.3553, allocations: 309.9 kB / 0.905 GB, free: 15.81 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001193/0.3565, allocations: 1.718 MB / 0.9067 GB, free: 13.71 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.338e-05/0.3565, allocations: 39 kB / 0.9068 GB, free: 13.66 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=52): time 2.134e-06/0.3566, allocations: 0 / 0.9068 GB, free: 13.66 MB / 0.7325 GB Notification: Performance of matching and sorting (n=52): time 0.005018/0.3616, allocations: 1.381 MB / 0.9081 GB, free: 12.25 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.095e-05/0.3616, allocations: 55.84 kB / 0.9082 GB, free: 12.18 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00237/0.364, allocations: 1.557 MB / 0.9097 GB, free: 10.61 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 8.007e-05/0.3641, allocations: 37.7 kB / 0.9097 GB, free: 10.57 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005336/0.3646, allocations: 0.6729 MB / 0.9104 GB, free: 9.891 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.000157/0.3648, allocations: 185.4 kB / 0.9106 GB, free: 9.707 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002844/0.3651, allocations: 178.4 kB / 0.9107 GB, free: 9.527 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001114/0.3652, allocations: 334 kB / 0.911 GB, free: 9.195 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001048/0.3663, allocations: 385.8 kB / 0.9114 GB, free: 8.816 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001275/0.3676, allocations: 0.6817 MB / 0.9121 GB, free: 8.008 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001869/0.3694, allocations: 0.9219 MB / 0.913 GB, free: 6.98 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.139e-06/0.3695, allocations: 4 kB / 0.913 GB, free: 6.977 MB / 0.7325 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.003132/0.3726, allocations: 1.236 MB / 0.9142 GB, free: 5.73 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.283e-05/0.3726, allocations: 8 kB / 0.9142 GB, free: 5.723 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.412e-05/0.3727, allocations: 8 kB / 0.9142 GB, free: 5.715 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008766/0.3735, allocations: 224.6 kB / 0.9144 GB, free: 5.492 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008255/0.3744, allocations: 207.7 kB / 0.9146 GB, free: 5.289 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008411/0.3752, allocations: 0.7161 MB / 0.9153 GB, free: 4.547 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001588/0.3768, allocations: 226.7 kB / 0.9155 GB, free: 4.324 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.231e-05/0.3769, allocations: 39.98 kB / 0.9156 GB, free: 4.285 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.0005631/0.3775, allocations: 364.4 kB / 0.9159 GB, free: 3.922 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000243/0.3777, allocations: 150.1 kB / 0.9161 GB, free: 3.773 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002531/0.3803, allocations: 1.184 MB / 0.9172 GB, free: 2.566 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.104e-05/0.3803, allocations: 15.98 kB / 0.9172 GB, free: 2.551 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.269e-06/0.3803, allocations: 0 / 0.9172 GB, free: 2.551 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.032e-05/0.3803, allocations: 7.969 kB / 0.9172 GB, free: 2.543 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3169/0.6973, allocations: 2.569 MB / 0.9197 GB, free: 135.8 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.518e-05/0.6973, allocations: 1.406 kB / 0.9197 GB, free: 135.8 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004919/0.6978, allocations: 92.89 kB / 0.9198 GB, free: 135.8 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008731/0.6987, allocations: 211.3 kB / 0.92 GB, free: 135.8 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.718e-05/0.6988, allocations: 20.53 kB / 0.9201 GB, free: 135.8 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001262/0.7001, allocations: 0.7722 MB / 0.9208 GB, free: 135.3 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.356e-06/0.7001, allocations: 1.719 kB / 0.9208 GB, free: 135.3 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003719/0.7038, allocations: 1.241 MB / 0.922 GB, free: 135.1 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000589/0.7044, allocations: 358.7 kB / 0.9224 GB, free: 135 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002016/0.7046, allocations: 15.8 kB / 0.9224 GB, free: 135 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009256/0.7055, allocations: 77.64 kB / 0.9225 GB, free: 135 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.692e-05/0.7057, allocations: 43.03 kB / 0.9225 GB, free: 135 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.313e-05/0.7057, allocations: 34.94 kB / 0.9225 GB, free: 135 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.001757/0.7075, allocations: 1.09 MB / 0.9236 GB, free: 134.9 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.8e-07/0.7075, allocations: 0 / 0.9236 GB, free: 134.9 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.001282/0.7088, allocations: 448.4 kB / 0.924 GB, free: 134.9 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.004352/0.7131, allocations: 2.159 MB / 0.9261 GB, free: 134 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0023/0.7155, allocations: 0.9145 MB / 0.927 GB, free: 133.7 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 3.596e-06/0.7155, allocations: 3.438 kB / 0.927 GB, free: 133.7 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.001235/0.7167, allocations: 460.4 kB / 0.9275 GB, free: 133.6 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003013/0.7197, allocations: 0.7647 MB / 0.9282 GB, free: 133.4 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01661/0.7364, allocations: 11.58 MB / 0.9395 GB, free: 126.9 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009026/0.7373, allocations: 1.17 MB / 0.9407 GB, free: 126.2 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.001325/0.7386, allocations: 282.5 kB / 0.9409 GB, free: 126.1 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000735/0.7394, allocations: 0.555 MB / 0.9415 GB, free: 125.7 MB / 0.7325 GB Notification: Performance of SimCode: time 7.21e-07/0.7394, allocations: 0.5938 kB / 0.9415 GB, free: 125.7 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06466/0.8041, allocations: 44.15 MB / 0.9846 GB, free: 95.61 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.1/13.91, allocations: 14.5 kB / 0.9846 GB, free: 95.6 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)