Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.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.HeatPumps.Examples.Carnot_TCon,fileNamePrefix="Buildings_8_Buildings_Fluid_HeatPumps_Examples_Carnot_TCon",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatPumps.Examples.Carnot_TCon,fileNamePrefix="Buildings_8_Buildings_Fluid_HeatPumps_Examples_Carnot_TCon",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.001023/0.001023, allocations: 98.03 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.008099/0.008099, allocations: 168.9 kB / 16.26 MB, free: 6.656 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.382/1.382, allocations: 205.4 MB / 222.4 MB, free: 5.562 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.648/1.648, allocations: 292.7 MB / 0.5502 GB, free: 14.44 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.0008062/0.0008063, allocations: 14.62 kB / 0.6744 GB, free: 25.8 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2061/0.2069, allocations: 116.3 MB / 0.788 GB, free: 11.48 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Examples.Carnot_TCon): time 0.058/0.265, allocations: 59.77 MB / 0.8464 GB, free: 15.5 MB / 0.67 GB Notification: Performance of NFInst.instExpressions: time 0.01603/0.281, allocations: 11.83 MB / 0.8579 GB, free: 3.648 MB / 0.67 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001789/0.2829, allocations: 55.62 kB / 0.858 GB, free: 3.594 MB / 0.67 GB Notification: Performance of NFTyping.typeComponents: time 0.001703/0.2846, allocations: 0.5399 MB / 0.8585 GB, free: 3.051 MB / 0.67 GB Notification: Performance of NFTyping.typeBindings: time 0.005161/0.2898, allocations: 1.791 MB / 0.8602 GB, free: 1.254 MB / 0.67 GB Notification: Performance of NFTyping.typeClassSections: time 0.002976/0.2927, allocations: 1.1 MB / 0.8613 GB, free: 168 kB / 0.67 GB Notification: Performance of NFFlatten.flatten: time 0.004622/0.2974, allocations: 3.894 MB / 0.8651 GB, free: 12.26 MB / 0.6856 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001474/0.2989, allocations: 0.8981 MB / 0.866 GB, free: 11.33 MB / 0.6856 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002337/0.3012, allocations: 1.131 MB / 0.8671 GB, free: 10.19 MB / 0.6856 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001414/0.3027, allocations: 0.8476 MB / 0.8679 GB, free: 9.34 MB / 0.6856 GB Notification: Performance of NFPackage.collectConstants: time 0.000219/0.3029, allocations: 44 kB / 0.868 GB, free: 9.297 MB / 0.6856 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002721/0.3056, allocations: 1.333 MB / 0.8693 GB, free: 7.961 MB / 0.6856 GB Notification: Performance of NFScalarize.scalarize: time 0.0003239/0.3059, allocations: 218.9 kB / 0.8695 GB, free: 7.746 MB / 0.6856 GB Notification: Performance of NFVerifyModel.verify: time 0.0009853/0.3069, allocations: 0.6389 MB / 0.8701 GB, free: 7.098 MB / 0.6856 GB Notification: Performance of NFConvertDAE.convert: time 0.003632/0.3106, allocations: 2.196 MB / 0.8722 GB, free: 4.895 MB / 0.6856 GB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.3106, allocations: 0 / 0.8722 GB, free: 4.895 MB / 0.6856 GB Notification: Performance of FrontEnd: time 1.693e-06/0.3106, allocations: 0 / 0.8722 GB, free: 4.895 MB / 0.6856 GB Notification: Performance of Transformations before backend: time 4.46e-05/0.3107, allocations: 0 / 0.8722 GB, free: 4.895 MB / 0.6856 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 192 * Number of variables: 192 Notification: Performance of Generate backend data structure: time 0.003259/0.3139, allocations: 1.493 MB / 0.8737 GB, free: 3.344 MB / 0.6856 GB Notification: Performance of prepare preOptimizeDAE: time 5.008e-05/0.314, allocations: 16.03 kB / 0.8737 GB, free: 3.328 MB / 0.6856 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002627/0.3143, allocations: 118.9 kB / 0.8738 GB, free: 3.203 MB / 0.6856 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002367/0.3166, allocations: 474.6 kB / 0.8743 GB, free: 2.738 MB / 0.6856 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00231/0.319, allocations: 1.136 MB / 0.8754 GB, free: 1.543 MB / 0.6856 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003609/0.3193, allocations: 133.9 kB / 0.8755 GB, free: 1.414 MB / 0.6856 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001515/0.3195, allocations: 80 kB / 0.8756 GB, free: 1.336 MB / 0.6856 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002198/0.3217, allocations: 1.003 MB / 0.8766 GB, free: 300 kB / 0.6856 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.649e-05/0.3217, allocations: 3.938 kB / 0.8766 GB, free: 296 kB / 0.6856 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.412e-05/0.3218, allocations: 32 kB / 0.8766 GB, free: 264 kB / 0.6856 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.95e-05/0.3218, allocations: 20 kB / 0.8766 GB, free: 244 kB / 0.6856 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002429/0.3243, allocations: 0.9368 MB / 0.8775 GB, free: 15.3 MB / 0.7012 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.006697/0.331, allocations: 4.615 MB / 0.8821 GB, free: 10.38 MB / 0.7012 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003796/0.3348, allocations: 0.9381 MB / 0.883 GB, free: 9.43 MB / 0.7012 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008167/0.3356, allocations: 348.8 kB / 0.8833 GB, free: 9.09 MB / 0.7012 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006466/0.3363, allocations: 0.9029 MB / 0.8842 GB, free: 7.984 MB / 0.7012 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.575e-05/0.3364, allocations: 39 kB / 0.8842 GB, free: 7.938 MB / 0.7012 GB Notification: Performance of pre-optimization done (n=47): time 1.804e-06/0.3364, allocations: 0 / 0.8842 GB, free: 7.938 MB / 0.7012 GB Notification: Performance of matching and sorting (n=47): time 0.008199/0.3446, allocations: 2.025 MB / 0.8862 GB, free: 5.879 MB / 0.7012 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.729e-05/0.3446, allocations: 55.84 kB / 0.8863 GB, free: 5.812 MB / 0.7012 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001605/0.3462, allocations: 1.059 MB / 0.8873 GB, free: 4.738 MB / 0.7012 GB Notification: Performance of collectPreVariables (initialization): time 7.453e-05/0.3463, allocations: 41.69 kB / 0.8873 GB, free: 4.691 MB / 0.7012 GB Notification: Performance of collectInitialEqns (initialization): time 0.000397/0.3467, allocations: 0.5196 MB / 0.8878 GB, free: 4.168 MB / 0.7012 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001397/0.3469, allocations: 161.6 kB / 0.888 GB, free: 4.008 MB / 0.7012 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.118e-05/0.347, allocations: 53.69 kB / 0.888 GB, free: 3.949 MB / 0.7012 GB Notification: Performance of setup shared object (initialization): time 0.0001118/0.3471, allocations: 333.9 kB / 0.8884 GB, free: 3.617 MB / 0.7012 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009456/0.348, allocations: 332.9 kB / 0.8887 GB, free: 3.289 MB / 0.7012 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001111/0.3492, allocations: 0.5484 MB / 0.8892 GB, free: 2.66 MB / 0.7012 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001743/0.3509, allocations: 0.7371 MB / 0.8899 GB, free: 1.871 MB / 0.7012 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.328e-06/0.3509, allocations: 8 kB / 0.8899 GB, free: 1.863 MB / 0.7012 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.003775/0.3547, allocations: 1.249 MB / 0.8912 GB, free: 0.6055 MB / 0.7012 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001116/0.3548, allocations: 209.2 kB / 0.8914 GB, free: 356 kB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.053e-05/0.3548, allocations: 4 kB / 0.8914 GB, free: 352 kB / 0.7012 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001182/0.356, allocations: 332.5 kB / 0.8917 GB, free: 16 kB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005795/0.3566, allocations: 135.8 kB / 0.8918 GB, free: 15.88 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001423/0.3581, allocations: 0.9483 MB / 0.8927 GB, free: 14.91 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00128/0.3594, allocations: 191.3 kB / 0.8929 GB, free: 14.72 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.769e-05/0.3594, allocations: 31.97 kB / 0.8929 GB, free: 14.69 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 7.184e-06/0.3594, allocations: 4 kB / 0.8929 GB, free: 14.69 MB / 0.7169 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003384/0.3628, allocations: 1.111 MB / 0.894 GB, free: 13.57 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.873e-06/0.3629, allocations: 4 kB / 0.894 GB, free: 13.57 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001072/0.3639, allocations: 317 kB / 0.8943 GB, free: 13.25 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005636/0.3645, allocations: 135.8 kB / 0.8945 GB, free: 13.12 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00141/0.3659, allocations: 0.9425 MB / 0.8954 GB, free: 12.15 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00115/0.3671, allocations: 171.3 kB / 0.8956 GB, free: 11.98 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.245e-05/0.3672, allocations: 27.98 kB / 0.8956 GB, free: 11.96 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * 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 (55): * Single equations (assignments): 54 * 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,14)} Notification: Performance of prepare postOptimizeDAE: time 0.0004543/0.3676, allocations: 357 kB / 0.8959 GB, free: 11.6 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001811/0.3678, allocations: 106.7 kB / 0.896 GB, free: 11.49 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004029/0.3718, allocations: 1.245 MB / 0.8972 GB, free: 10.23 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.568e-05/0.3719, allocations: 11.98 kB / 0.8972 GB, free: 10.22 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.109e-06/0.3719, allocations: 0 / 0.8972 GB, free: 10.22 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.541e-06/0.3719, allocations: 0 / 0.8972 GB, free: 10.22 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005311/0.3772, allocations: 2.321 MB / 0.8995 GB, free: 7.816 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.215e-06/0.3772, allocations: 4 kB / 0.8995 GB, free: 7.812 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003135/0.3776, allocations: 79.81 kB / 0.8996 GB, free: 7.734 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001037/0.3786, allocations: 320.8 kB / 0.8999 GB, free: 7.418 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.07e-05/0.3787, allocations: 19.98 kB / 0.8999 GB, free: 7.398 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001568/0.3802, allocations: 0.9679 MB / 0.9009 GB, free: 6.41 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.823e-06/0.3803, allocations: 4 kB / 0.9009 GB, free: 6.406 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004995/0.3853, allocations: 1.477 MB / 0.9023 GB, free: 4.875 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006846/0.386, allocations: 283.4 kB / 0.9026 GB, free: 4.578 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003232/0.3863, allocations: 12 kB / 0.9026 GB, free: 4.566 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001103/0.3874, allocations: 115.8 kB / 0.9027 GB, free: 4.453 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.595e-05/0.3875, allocations: 47.8 kB / 0.9027 GB, free: 4.406 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.913e-05/0.3876, allocations: 23.98 kB / 0.9028 GB, free: 4.383 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.001451/0.389, allocations: 0.743 MB / 0.9035 GB, free: 3.633 MB / 0.7169 GB Notification: Performance of sort global known variables: time 2.8e-07/0.389, allocations: 0 / 0.9035 GB, free: 3.633 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.00175/0.3908, allocations: 0.5575 MB / 0.904 GB, free: 3.074 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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 (37): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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,16)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00517/0.396, allocations: 2.139 MB / 0.9061 GB, free: 0.8867 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.003429/0.3994, allocations: 1.221 MB / 0.9073 GB, free: 15.66 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 3.386e-06/0.3994, allocations: 0 / 0.9073 GB, free: 15.66 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0009595/0.4004, allocations: 391.3 kB / 0.9077 GB, free: 15.29 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002975/0.4034, allocations: 0.524 MB / 0.9082 GB, free: 14.77 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02032/0.4237, allocations: 9.49 MB / 0.9175 GB, free: 4.836 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000698/0.4244, allocations: 1.066 MB / 0.9185 GB, free: 3.742 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.001044/0.4255, allocations: 224.8 kB / 0.9187 GB, free: 3.52 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005523/0.4261, allocations: 419.2 kB / 0.9191 GB, free: 3.109 MB / 0.7325 GB Notification: Performance of SimCode: time 6.51e-07/0.4261, allocations: 0 / 0.9191 GB, free: 3.109 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.515/2.941, allocations: 32.78 MB / 0.9511 GB, free: 124 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002083/2.941, allocations: 261.8 kB / 0.9514 GB, free: 123.6 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.061/6.002, allocations: 5.188 kB / 0.9514 GB, free: 123.6 MB / 0.7325 GB (rm -f Buildings_8_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.pipe ; mkfifo Buildings_8_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.pipe >> ../files/Buildings_8_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Fluid_HeatPumps_Examples_Carnot_TCon_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Fluid_HeatPumps_Examples_Carnot_TCon.fmu > Buildings_8_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.pipe 2>&1)