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: translateModel(BuildingSystems.Fluid.HeatPumps.Examples.Carnot_TCon,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.HeatPumps.Examples.Carnot_TCon") translateModel(BuildingSystems.Fluid.HeatPumps.Examples.Carnot_TCon,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.HeatPumps.Examples.Carnot_TCon") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007833/0.0007833, allocations: 86.56 kB / 15.06 MB, free: 1.09 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.000833/0.0008331, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.341/1.341, allocations: 223.3 MB / 240 MB, free: 5.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001724/0.001724, allocations: 263 kB / 291.3 MB, free: 1.977 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9506/0.9506, allocations: 169.5 MB / 0.5 GB, free: 14.18 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003962/0.0003962, allocations: 14.14 kB / 0.598 GB, free: 28.32 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1336/0.134, allocations: 88.56 MB / 0.6845 GB, free: 15.46 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.HeatPumps.Examples.Carnot_TCon): time 0.05054/0.1845, allocations: 56.44 MB / 0.7396 GB, free: 6.887 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.01396/0.1985, allocations: 11.22 MB / 0.7506 GB, free: 11.65 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001337/0.1999, allocations: 51.69 kB / 0.7506 GB, free: 11.6 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.001263/0.2012, allocations: 464.8 kB / 0.751 GB, free: 11.14 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.003592/0.2048, allocations: 1.528 MB / 0.7525 GB, free: 9.605 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.002285/0.2071, allocations: 0.8648 MB / 0.7534 GB, free: 8.754 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.003625/0.2107, allocations: 3.386 MB / 0.7567 GB, free: 5.352 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001126/0.2119, allocations: 0.7937 MB / 0.7575 GB, free: 4.535 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001779/0.2137, allocations: 1.038 MB / 0.7585 GB, free: 3.492 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001016/0.2147, allocations: 0.8049 MB / 0.7593 GB, free: 2.684 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.0001033/0.2148, allocations: 40 kB / 0.7593 GB, free: 2.645 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002058/0.2169, allocations: 1.095 MB / 0.7604 GB, free: 1.547 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0001989/0.2171, allocations: 207 kB / 0.7606 GB, free: 1.344 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0002919/0.2174, allocations: 281 kB / 0.7608 GB, free: 1.062 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.2692/0.4866, allocations: 1.619 MB / 0.7624 GB, free: 28.25 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.4866, allocations: 4.625 kB / 0.7624 GB, free: 28.25 MB / 0.545 GB Notification: Performance of FrontEnd: time 2.004e-06/0.4867, allocations: 0 / 0.7624 GB, free: 28.25 MB / 0.545 GB Notification: Performance of Transformations before backend: time 4.063e-05/0.4867, allocations: 0 / 0.7624 GB, free: 28.25 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.002567/0.4893, allocations: 1.498 MB / 0.7639 GB, free: 27.49 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.337e-05/0.4893, allocations: 8.781 kB / 0.7639 GB, free: 27.49 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002075/0.4914, allocations: 472.3 kB / 0.7643 GB, free: 27.42 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001968/0.4934, allocations: 1.091 MB / 0.7654 GB, free: 27.08 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003493/0.4937, allocations: 132.8 kB / 0.7655 GB, free: 27.07 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001375/0.4939, allocations: 80.88 kB / 0.7656 GB, free: 27.07 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002012/0.4959, allocations: 1.003 MB / 0.7666 GB, free: 26.91 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.165e-05/0.4959, allocations: 0.8125 kB / 0.7666 GB, free: 26.91 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.738e-05/0.496, allocations: 31.5 kB / 0.7666 GB, free: 26.91 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.854e-05/0.496, allocations: 18.84 kB / 0.7666 GB, free: 26.91 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002161/0.4982, allocations: 0.915 MB / 0.7675 GB, free: 26.88 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.005357/0.5036, allocations: 4.888 MB / 0.7723 GB, free: 24.19 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003192/0.5068, allocations: 0.8961 MB / 0.7732 GB, free: 24.13 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006684/0.5075, allocations: 316.9 kB / 0.7735 GB, free: 24.12 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004015/0.5079, allocations: 0.9099 MB / 0.7744 GB, free: 23.09 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.139e-05/0.5079, allocations: 37.81 kB / 0.7744 GB, free: 23.05 MB / 0.545 GB Notification: Performance of pre-optimization done (n=43): time 2.124e-06/0.5079, allocations: 0 / 0.7744 GB, free: 23.05 MB / 0.545 GB Notification: Performance of matching and sorting (n=43): time 0.007623/0.5156, allocations: 2.147 MB / 0.7765 GB, free: 22.75 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.011e-05/0.5156, allocations: 54.03 kB / 0.7766 GB, free: 22.69 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001372/0.517, allocations: 1.049 MB / 0.7776 GB, free: 22.54 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 5.456e-05/0.517, allocations: 32.86 kB / 0.7776 GB, free: 22.51 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003414/0.5174, allocations: 0.5223 MB / 0.7781 GB, free: 22.32 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001019/0.5175, allocations: 149.7 kB / 0.7783 GB, free: 22.22 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.393e-05/0.5175, allocations: 10.12 kB / 0.7783 GB, free: 22.22 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 4.965e-05/0.5176, allocations: 334.1 kB / 0.7786 GB, free: 21.91 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008031/0.5184, allocations: 325.4 kB / 0.7789 GB, free: 21.9 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008851/0.5193, allocations: 0.5277 MB / 0.7794 GB, free: 21.66 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008077/0.5201, allocations: 361 kB / 0.7798 GB, free: 21.64 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.278e-06/0.5201, allocations: 2.562 kB / 0.7798 GB, free: 21.64 MB / 0.545 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.003168/0.5233, allocations: 1.221 MB / 0.781 GB, free: 21.49 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 6.682e-05/0.5234, allocations: 212.8 kB / 0.7812 GB, free: 21.25 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.257e-06/0.5234, allocations: 5.172 kB / 0.7812 GB, free: 21.25 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001137/0.5245, allocations: 334.8 kB / 0.7815 GB, free: 21.22 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005134/0.5251, allocations: 128.5 kB / 0.7816 GB, free: 21.22 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001215/0.5263, allocations: 0.9425 MB / 0.7825 GB, free: 20.68 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001204/0.5275, allocations: 192.9 kB / 0.7827 GB, free: 20.64 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.385e-05/0.5276, allocations: 27.11 kB / 0.7827 GB, free: 20.64 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 6.192e-06/0.5276, allocations: 7.188 kB / 0.7827 GB, free: 20.63 MB / 0.545 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002822/0.5304, allocations: 1.083 MB / 0.7838 GB, free: 20.57 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.021e-06/0.5304, allocations: 3.875 kB / 0.7838 GB, free: 20.57 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009423/0.5314, allocations: 321.2 kB / 0.7841 GB, free: 20.55 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004796/0.5319, allocations: 131.1 kB / 0.7842 GB, free: 20.55 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001134/0.533, allocations: 0.9375 MB / 0.7852 GB, free: 20.01 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009902/0.534, allocations: 162.3 kB / 0.7853 GB, free: 19.97 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.826e-05/0.5341, allocations: 33.16 kB / 0.7853 GB, free: 19.97 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 14} Notification: Performance of prepare postOptimizeDAE: time 0.0004014/0.5345, allocations: 355.4 kB / 0.7857 GB, free: 19.78 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001392/0.5346, allocations: 107.9 kB / 0.7858 GB, free: 19.72 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003422/0.5381, allocations: 1.199 MB / 0.787 GB, free: 19.6 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.471e-05/0.5381, allocations: 8.312 kB / 0.787 GB, free: 19.6 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.641e-06/0.5381, allocations: 0.5625 kB / 0.787 GB, free: 19.6 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.853e-06/0.5381, allocations: 5.469 kB / 0.787 GB, free: 19.6 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004762/0.5429, allocations: 2.264 MB / 0.7892 GB, free: 19.15 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.235e-06/0.5429, allocations: 5.094 kB / 0.7892 GB, free: 19.15 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002726/0.5432, allocations: 72.69 kB / 0.7893 GB, free: 19.15 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009263/0.5441, allocations: 326 kB / 0.7896 GB, free: 19.12 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.593e-05/0.5442, allocations: 18.5 kB / 0.7896 GB, free: 19.12 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00122/0.5454, allocations: 0.9661 MB / 0.7905 GB, free: 18.59 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.449e-06/0.5454, allocations: 3.938 kB / 0.7905 GB, free: 18.59 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003165/0.5486, allocations: 1.252 MB / 0.7918 GB, free: 18.27 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003996/0.549, allocations: 283.2 kB / 0.792 GB, free: 18.11 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001875/0.5492, allocations: 11.38 kB / 0.792 GB, free: 18.11 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008708/0.5501, allocations: 115 kB / 0.7921 GB, free: 18.1 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.821e-05/0.5502, allocations: 38.91 kB / 0.7922 GB, free: 18.09 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.151e-05/0.5502, allocations: 21.55 kB / 0.7922 GB, free: 18.09 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.001047/0.5513, allocations: 0.7349 MB / 0.7929 GB, free: 17.98 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.7e-07/0.5513, allocations: 0 / 0.7929 GB, free: 17.98 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.001517/0.5528, allocations: 0.5584 MB / 0.7935 GB, free: 17.9 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 16} Notification: Performance of Backend phase and start with SimCode phase: time 0.000663/0.5535, allocations: 367.3 kB / 0.7938 GB, free: 17.76 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.002824/0.5563, allocations: 1.158 MB / 0.7949 GB, free: 17.71 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 3.847e-06/0.5563, allocations: 3.719 kB / 0.7949 GB, free: 17.71 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0008014/0.5571, allocations: 365.5 kB / 0.7953 GB, free: 17.7 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002173/0.5593, allocations: 0.5035 MB / 0.7958 GB, free: 17.66 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004798/0.5641, allocations: 2.481 MB / 0.7982 GB, free: 16.56 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004725/0.5646, allocations: 1.066 MB / 0.7993 GB, free: 15.84 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0009411/0.5656, allocations: 218.3 kB / 0.7995 GB, free: 15.79 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001678/0.5657, allocations: 73.52 kB / 0.7995 GB, free: 15.79 MB / 0.545 GB Notification: Performance of SimCode: time 4.81e-07/0.5657, allocations: 0 / 0.7995 GB, free: 15.79 MB / 0.545 GB Notification: Performance of Templates: time 0.03042/0.5962, allocations: 23.01 MB / 0.822 GB, free: 4.266 MB / 0.545 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.HeatPumps.Examples.Carnot_TCon.makefile (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 & ./BuildingSystems_BuildingSystems.Fluid.HeatPumps.Examples.Carnot_TCon -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.HeatPumps.Examples.Carnot_TCon.pipe 2>&1)