Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.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/BuildSysPro 3.5.0-master/package.mo", uses=false) Using package BuildSysPro with version 3.5.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0-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(BuildSysPro.IBPSA.Fluid.HeatPumps.Examples.Carnot_TCon,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.Fluid.HeatPumps.Examples.Carnot_TCon") translateModel(BuildSysPro.IBPSA.Fluid.HeatPumps.Examples.Carnot_TCon,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.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.0009787/0.0009787, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.0009268/0.0009269, allocations: 177.3 kB / 15.95 MB, free: 216 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.294/1.294, allocations: 223.2 MB / 239.9 MB, free: 5.438 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0-master/package.mo): time 0.951/0.951, allocations: 143.3 MB / 434.3 MB, free: 13.62 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003142/0.0003143, allocations: 8 kB / 0.5158 GB, free: 11.27 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1465/0.1469, allocations: 83.41 MB / 0.5973 GB, free: 7.793 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Fluid.HeatPumps.Examples.Carnot_TCon): time 0.2804/0.4272, allocations: 51.25 MB / 0.6473 GB, free: 12.68 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.01175/0.439, allocations: 10.34 MB / 0.6574 GB, free: 5.352 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001719/0.4408, allocations: 42.66 kB / 0.6575 GB, free: 5.332 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.001715/0.4425, allocations: 0.6319 MB / 0.6581 GB, free: 4.977 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.004941/0.4475, allocations: 1.942 MB / 0.66 GB, free: 3.707 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.003698/0.4512, allocations: 1.315 MB / 0.6613 GB, free: 3.082 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.003056/0.4543, allocations: 1.849 MB / 0.6631 GB, free: 2.074 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001118/0.4554, allocations: 0.7998 MB / 0.6638 GB, free: 1.766 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001841/0.4572, allocations: 0.9866 MB / 0.6648 GB, free: 1.254 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000812/0.4581, allocations: 0.6001 MB / 0.6654 GB, free: 0.9922 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0001087/0.4582, allocations: 44.31 kB / 0.6654 GB, free: 0.9883 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002165/0.4604, allocations: 0.9863 MB / 0.6664 GB, free: 0.7227 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001987/0.4606, allocations: 194.1 kB / 0.6666 GB, free: 0.6211 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002822/0.4609, allocations: 286.9 kB / 0.6669 GB, free: 464 kB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.002192/0.4631, allocations: 1.672 MB / 0.6685 GB, free: 56 kB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 2.384e-06/0.4631, allocations: 0 / 0.6685 GB, free: 56 kB / 0.4981 GB Notification: Performance of FrontEnd: time 1.502e-06/0.4631, allocations: 0 / 0.6685 GB, free: 56 kB / 0.4981 GB Notification: Performance of Transformations before backend: time 3.373e-05/0.4631, allocations: 0 / 0.6685 GB, free: 56 kB / 0.4981 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.003021/0.4661, allocations: 1.487 MB / 0.6699 GB, free: 15.04 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 3.744e-05/0.4662, allocations: 9.594 kB / 0.67 GB, free: 15.04 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002353/0.4686, allocations: 469.3 kB / 0.6704 GB, free: 14.95 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002143/0.4707, allocations: 1.055 MB / 0.6714 GB, free: 14.29 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003807/0.4711, allocations: 127.1 kB / 0.6716 GB, free: 14.26 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000129/0.4712, allocations: 83.94 kB / 0.6716 GB, free: 14.23 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002307/0.4736, allocations: 0.9958 MB / 0.6726 GB, free: 13.77 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.978e-05/0.4736, allocations: 1.375 kB / 0.6726 GB, free: 13.77 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.063e-05/0.4737, allocations: 32.94 kB / 0.6726 GB, free: 13.75 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.153e-05/0.4737, allocations: 19.44 kB / 0.6727 GB, free: 13.75 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002545/0.4763, allocations: 0.914 MB / 0.6736 GB, free: 13.46 MB / 0.5137 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.007298/0.4836, allocations: 4.922 MB / 0.6784 GB, free: 9.785 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003616/0.4872, allocations: 0.9149 MB / 0.6793 GB, free: 9.543 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006398/0.4879, allocations: 0.9013 MB / 0.6801 GB, free: 8.496 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.459e-05/0.4879, allocations: 37.72 kB / 0.6802 GB, free: 8.453 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=43): time 3.817e-06/0.4879, allocations: 0 / 0.6802 GB, free: 8.453 MB / 0.5137 GB Notification: Performance of matching and sorting (n=43): time 0.009113/0.497, allocations: 2.144 MB / 0.6823 GB, free: 7.934 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.823e-05/0.4971, allocations: 57.42 kB / 0.6823 GB, free: 7.871 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00174/0.4989, allocations: 1.064 MB / 0.6834 GB, free: 7.43 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 8.656e-05/0.499, allocations: 37.83 kB / 0.6834 GB, free: 7.391 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004283/0.4994, allocations: 0.5181 MB / 0.6839 GB, free: 6.98 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001371/0.4995, allocations: 150 kB / 0.684 GB, free: 6.863 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.505e-05/0.4996, allocations: 10.59 kB / 0.684 GB, free: 6.855 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.000101/0.4997, allocations: 329.2 kB / 0.6844 GB, free: 6.539 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009349/0.5006, allocations: 324.3 kB / 0.6847 GB, free: 6.449 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001114/0.5018, allocations: 0.5274 MB / 0.6852 GB, free: 6.105 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009532/0.5027, allocations: 353.2 kB / 0.6855 GB, free: 5.992 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.588e-06/0.5027, allocations: 1.031 kB / 0.6855 GB, free: 5.992 MB / 0.5137 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.003875/0.5066, allocations: 1.226 MB / 0.6867 GB, free: 5.59 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007226/0.5074, allocations: 1.671 MB / 0.6884 GB, free: 3.816 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.12e-05/0.5074, allocations: 3.5 kB / 0.6884 GB, free: 3.816 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001354/0.5087, allocations: 330.7 kB / 0.6887 GB, free: 3.738 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006221/0.5094, allocations: 130.9 kB / 0.6888 GB, free: 3.723 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001635/0.511, allocations: 0.9473 MB / 0.6897 GB, free: 3.051 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0016/0.5126, allocations: 194.1 kB / 0.6899 GB, free: 2.996 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.146e-05/0.5127, allocations: 28.58 kB / 0.6899 GB, free: 2.992 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.18e-05/0.5128, allocations: 7.844 kB / 0.6899 GB, free: 2.988 MB / 0.5137 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003594/0.5164, allocations: 1.073 MB / 0.691 GB, free: 2.684 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.937e-06/0.5164, allocations: 4.844 kB / 0.691 GB, free: 2.684 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001221/0.5176, allocations: 322.1 kB / 0.6913 GB, free: 2.609 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005563/0.5182, allocations: 126.5 kB / 0.6914 GB, free: 2.598 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001475/0.5197, allocations: 0.9413 MB / 0.6923 GB, free: 1.934 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00153/0.5212, allocations: 167.8 kB / 0.6925 GB, free: 1.887 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.521e-05/0.5213, allocations: 29.28 kB / 0.6925 GB, free: 1.883 MB / 0.5137 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.0007405/0.5221, allocations: 352.8 kB / 0.6929 GB, free: 1.598 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002132/0.5223, allocations: 111.8 kB / 0.693 GB, free: 1.539 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004106/0.5264, allocations: 1.206 MB / 0.6942 GB, free: 1.152 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.561e-05/0.5264, allocations: 6.609 kB / 0.6942 GB, free: 1.152 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.324e-06/0.5265, allocations: 0.5156 kB / 0.6942 GB, free: 1.152 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.847e-06/0.5265, allocations: 6 kB / 0.6942 GB, free: 1.148 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005879/0.5324, allocations: 2.274 MB / 0.6964 GB, free: 132 kB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.859e-06/0.5324, allocations: 2 kB / 0.6964 GB, free: 132 kB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003012/0.5327, allocations: 70.97 kB / 0.6965 GB, free: 124 kB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001103/0.5338, allocations: 318.3 kB / 0.6968 GB, free: 48 kB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.036e-05/0.5339, allocations: 19.03 kB / 0.6968 GB, free: 36 kB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001509/0.5354, allocations: 0.9604 MB / 0.6977 GB, free: 15.36 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.065e-06/0.5354, allocations: 7.125 kB / 0.6977 GB, free: 15.36 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003938/0.5394, allocations: 1.37 MB / 0.6991 GB, free: 14.61 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006919/0.5401, allocations: 293.6 kB / 0.6993 GB, free: 14.34 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001645/0.5402, allocations: 16.48 kB / 0.6994 GB, free: 14.33 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009666/0.5412, allocations: 112.1 kB / 0.6995 GB, free: 14.29 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.936e-05/0.5413, allocations: 35.2 kB / 0.6995 GB, free: 14.27 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.709e-05/0.5414, allocations: 24.17 kB / 0.6995 GB, free: 14.26 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.001305/0.5427, allocations: 0.7533 MB / 0.7003 GB, free: 13.83 MB / 0.5294 GB Notification: Performance of sort global known variables: time 3.01e-07/0.5427, allocations: 0 / 0.7003 GB, free: 13.83 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.001816/0.5445, allocations: 0.5608 MB / 0.7008 GB, free: 13.71 MB / 0.5294 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.0008223/0.5454, allocations: 390.2 kB / 0.7012 GB, free: 13.49 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.003321/0.5487, allocations: 1.157 MB / 0.7023 GB, free: 12.99 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 5.22e-06/0.5487, allocations: 0.9688 kB / 0.7023 GB, free: 12.99 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0009408/0.5497, allocations: 377.9 kB / 0.7027 GB, free: 12.83 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002499/0.5522, allocations: 491 kB / 0.7031 GB, free: 12.59 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005394/0.5576, allocations: 2.484 MB / 0.7056 GB, free: 11 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006206/0.5582, allocations: 1.087 MB / 0.7066 GB, free: 10.11 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.001004/0.5592, allocations: 224.2 kB / 0.7068 GB, free: 10 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001885/0.5594, allocations: 79.81 kB / 0.7069 GB, free: 9.984 MB / 0.5294 GB Notification: Performance of SimCode: time 7.92e-07/0.5594, allocations: 1.219 kB / 0.7069 GB, free: 9.984 MB / 0.5294 GB Notification: Performance of Templates: time 0.03796/0.5974, allocations: 23.57 MB / 0.7299 GB, free: 3.195 MB / 0.545 GB make -j1 -f BuildSysPro_BuildSysPro.IBPSA.Fluid.HeatPumps.Examples.Carnot_TCon.makefile Environment - environmentSimulation: (rm -f BuildSysPro_BuildSysPro.IBPSA.Fluid.HeatPumps.Examples.Carnot_TCon.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Fluid.HeatPumps.Examples.Carnot_TCon.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Fluid.HeatPumps.Examples.Carnot_TCon.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Fluid.HeatPumps.Examples.Carnot_TCon.sim & ./BuildSysPro_BuildSysPro.IBPSA.Fluid.HeatPumps.Examples.Carnot_TCon -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildSysPro_BuildSysPro.IBPSA.Fluid.HeatPumps.Examples.Carnot_TCon.pipe 2>&1) Environment - environmentSimulation: