Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(BuildingSystems.Fluid.HeatPumps.Examples.Carnot_TCon,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_HeatPumps_Examples_Carnot_TCon",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.HeatPumps.Examples.Carnot_TCon,fileNamePrefix="BuildingSystems_BuildingSystems_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.0008236/0.0008237, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.004667/0.004667, allocations: 170.8 kB / 16.26 MB, free: 6.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.183/1.183, allocations: 223.2 MB / 240.3 MB, free: 5.367 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001626/0.001626, allocations: 271.1 kB / 291.7 MB, free: 1.906 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8812/0.8812, allocations: 169.5 MB / 0.5004 GB, free: 14.13 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004318/0.0004319, allocations: 14.34 kB / 0.5988 GB, free: 28.07 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1391/0.1396, allocations: 88.55 MB / 0.6852 GB, free: 15.01 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.HeatPumps.Examples.Carnot_TCon): time 0.05488/0.1945, allocations: 59.7 MB / 0.7435 GB, free: 3.129 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.01427/0.2088, allocations: 11.9 MB / 0.7551 GB, free: 7.199 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001027/0.2099, allocations: 55.62 kB / 0.7552 GB, free: 7.145 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.001217/0.2111, allocations: 0.5477 MB / 0.7557 GB, free: 6.594 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.003565/0.2147, allocations: 1.803 MB / 0.7575 GB, free: 4.785 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.002286/0.2169, allocations: 1.079 MB / 0.7585 GB, free: 3.715 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.2691/0.486, allocations: 3.908 MB / 0.7624 GB, free: 23.98 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001637/0.4877, allocations: 0.8937 MB / 0.7632 GB, free: 23.9 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002079/0.4898, allocations: 1.117 MB / 0.7643 GB, free: 23.9 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001153/0.491, allocations: 0.8584 MB / 0.7652 GB, free: 23.9 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.000115/0.4911, allocations: 41.95 kB / 0.7652 GB, free: 23.9 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002476/0.4936, allocations: 1.331 MB / 0.7665 GB, free: 23.9 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0002092/0.4938, allocations: 208.5 kB / 0.7667 GB, free: 23.9 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0005544/0.4943, allocations: 0.6329 MB / 0.7673 GB, free: 23.72 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.002287/0.4966, allocations: 2.183 MB / 0.7695 GB, free: 23.52 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.096e-06/0.4967, allocations: 0 / 0.7695 GB, free: 23.52 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.303e-06/0.4967, allocations: 1.406 kB / 0.7695 GB, free: 23.52 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.867e-05/0.4967, allocations: 4 kB / 0.7695 GB, free: 23.52 MB / 0.545 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.002327/0.499, allocations: 1.484 MB / 0.7709 GB, free: 22.64 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.984e-05/0.4991, allocations: 10.16 kB / 0.7709 GB, free: 22.64 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001287/0.4992, allocations: 126 kB / 0.771 GB, free: 22.6 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002167/0.5014, allocations: 474.6 kB / 0.7715 GB, free: 22.51 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001783/0.5032, allocations: 1.132 MB / 0.7726 GB, free: 22.13 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003484/0.5035, allocations: 131.4 kB / 0.7727 GB, free: 22.12 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001056/0.5036, allocations: 77.72 kB / 0.7728 GB, free: 22.12 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001873/0.5055, allocations: 1.007 MB / 0.7738 GB, free: 21.95 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.916e-05/0.5056, allocations: 9.844 kB / 0.7738 GB, free: 21.95 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.509e-05/0.5056, allocations: 29.84 kB / 0.7738 GB, free: 21.95 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.319e-05/0.5057, allocations: 18.03 kB / 0.7738 GB, free: 21.95 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002242/0.5079, allocations: 0.9148 MB / 0.7747 GB, free: 21.93 MB / 0.545 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.005319/0.5132, allocations: 4.894 MB / 0.7795 GB, free: 19.21 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00346/0.5167, allocations: 0.9059 MB / 0.7804 GB, free: 19.15 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006892/0.5174, allocations: 321.1 kB / 0.7807 GB, free: 19.14 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004381/0.5179, allocations: 0.9025 MB / 0.7816 GB, free: 18.11 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.145e-05/0.5179, allocations: 37.62 kB / 0.7816 GB, free: 18.07 MB / 0.545 GB Notification: Performance of pre-optimization done (n=43): time 2.895e-06/0.5179, allocations: 0 / 0.7816 GB, free: 18.07 MB / 0.545 GB Notification: Performance of matching and sorting (n=43): time 0.008512/0.5264, allocations: 2.156 MB / 0.7837 GB, free: 17.77 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.236e-05/0.5264, allocations: 61.8 kB / 0.7838 GB, free: 17.7 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001371/0.5278, allocations: 1.053 MB / 0.7848 GB, free: 17.55 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 6.249e-05/0.5279, allocations: 35.55 kB / 0.7848 GB, free: 17.52 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002968/0.5282, allocations: 0.5277 MB / 0.7854 GB, free: 17.33 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 9.187e-05/0.5283, allocations: 148.5 kB / 0.7855 GB, free: 17.23 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.71e-05/0.5284, allocations: 51.95 kB / 0.7855 GB, free: 17.22 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 4.493e-05/0.5284, allocations: 325.7 kB / 0.7859 GB, free: 16.91 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008558/0.5293, allocations: 328 kB / 0.7862 GB, free: 16.9 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009429/0.5302, allocations: 0.5389 MB / 0.7867 GB, free: 16.65 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001537/0.5318, allocations: 0.7284 MB / 0.7874 GB, free: 16.47 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.278e-06/0.5318, allocations: 1.062 kB / 0.7874 GB, free: 16.47 MB / 0.545 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002668/0.5345, allocations: 1.054 MB / 0.7884 GB, free: 16.34 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 7.898e-05/0.5346, allocations: 216.1 kB / 0.7886 GB, free: 16.1 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.277e-05/0.5346, allocations: 7.797 kB / 0.7887 GB, free: 16.1 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001324/0.5359, allocations: 330.4 kB / 0.789 GB, free: 16.07 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005096/0.5364, allocations: 130 kB / 0.7891 GB, free: 16.07 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001261/0.5377, allocations: 0.9433 MB / 0.79 GB, free: 15.53 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001257/0.539, allocations: 194.5 kB / 0.7902 GB, free: 15.48 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.324e-05/0.539, allocations: 29.06 kB / 0.7902 GB, free: 15.48 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 7.244e-06/0.5391, allocations: 4.625 kB / 0.7902 GB, free: 15.48 MB / 0.545 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002276/0.5413, allocations: 0.9065 MB / 0.7911 GB, free: 15.45 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.384e-06/0.5414, allocations: 6.562 kB / 0.7911 GB, free: 15.45 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009982/0.5424, allocations: 329.4 kB / 0.7914 GB, free: 15.42 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004861/0.5429, allocations: 126.8 kB / 0.7916 GB, free: 15.42 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001209/0.5441, allocations: 0.9409 MB / 0.7925 GB, free: 14.87 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001111/0.5452, allocations: 172.7 kB / 0.7926 GB, free: 14.83 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.7e-05/0.5453, allocations: 27.39 kB / 0.7927 GB, free: 14.83 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * 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 (51): * Single equations (assignments): 50 * 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.0004435/0.5457, allocations: 351.2 kB / 0.793 GB, free: 14.64 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001429/0.5459, allocations: 115.6 kB / 0.7931 GB, free: 14.58 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003655/0.5495, allocations: 1.199 MB / 0.7943 GB, free: 14.47 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.329e-05/0.5495, allocations: 6.844 kB / 0.7943 GB, free: 14.47 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.88e-06/0.5496, allocations: 0 / 0.7943 GB, free: 14.47 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.193e-06/0.5496, allocations: 3 kB / 0.7943 GB, free: 14.47 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004732/0.5543, allocations: 2.267 MB / 0.7965 GB, free: 14.02 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.492e-06/0.5543, allocations: 1.344 kB / 0.7965 GB, free: 14.02 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002637/0.5546, allocations: 64.61 kB / 0.7966 GB, free: 14.02 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009492/0.5556, allocations: 335.9 kB / 0.7969 GB, free: 13.99 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.288e-05/0.5556, allocations: 15.06 kB / 0.7969 GB, free: 13.99 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001237/0.5568, allocations: 0.9631 MB / 0.7978 GB, free: 13.45 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.747e-06/0.5569, allocations: 6.688 kB / 0.7979 GB, free: 13.45 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003405/0.5603, allocations: 1.26 MB / 0.7991 GB, free: 13.13 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004041/0.5607, allocations: 284.6 kB / 0.7994 GB, free: 12.97 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001216/0.5608, allocations: 21.8 kB / 0.7994 GB, free: 12.96 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008673/0.5617, allocations: 112.7 kB / 0.7995 GB, free: 12.95 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.839e-05/0.5618, allocations: 39.95 kB / 0.7995 GB, free: 12.95 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.589e-05/0.5618, allocations: 23.52 kB / 0.7995 GB, free: 12.95 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.001046/0.5629, allocations: 0.7395 MB / 0.8003 GB, free: 12.84 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.8e-07/0.5629, allocations: 0 / 0.8003 GB, free: 12.84 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.001437/0.5643, allocations: 0.5598 MB / 0.8008 GB, free: 12.76 MB / 0.545 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 (33): * Single equations (assignments): 28 * 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.0041/0.5684, allocations: 2.073 MB / 0.8028 GB, free: 11.86 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.002857/0.5713, allocations: 1.166 MB / 0.804 GB, free: 11.81 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.5713, allocations: 6.188 kB / 0.804 GB, free: 11.81 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0008074/0.5721, allocations: 366.1 kB / 0.8043 GB, free: 11.8 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002559/0.5747, allocations: 0.5067 MB / 0.8048 GB, free: 11.73 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01605/0.5908, allocations: 9.195 MB / 0.8138 GB, free: 7.289 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003941/0.5912, allocations: 1.069 MB / 0.8148 GB, free: 6.426 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0009286/0.5921, allocations: 222.8 kB / 0.8151 GB, free: 6.312 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004107/0.5925, allocations: 407.8 kB / 0.8155 GB, free: 6.223 MB / 0.545 GB Notification: Performance of SimCode: time 8.32e-07/0.5925, allocations: 0 / 0.8155 GB, free: 6.223 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7236/1.316, allocations: 32.1 MB / 0.8468 GB, free: 10.67 MB / 0.5762 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002529/1.316, allocations: 272.8 kB / 0.8471 GB, free: 10.3 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.503/3.819, allocations: 4 kB / 0.8471 GB, free: 10.29 MB / 0.5762 GB (rm -f BuildingSystems_BuildingSystems.Fluid.HeatPumps.Examples.Carnot_TCon.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.HeatPumps.Examples.Carnot_TCon.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.HeatPumps.Examples.Carnot_TCon.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.HeatPumps.Examples.Carnot_TCon.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_HeatPumps_Examples_Carnot_TCon_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_HeatPumps_Examples_Carnot_TCon.fmu > BuildingSystems_BuildingSystems.Fluid.HeatPumps.Examples.Carnot_TCon.pipe 2>&1)