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.00134/0.00134, allocations: 107.6 kB / 16.27 MB, free: 6.414 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.001303/0.001303, allocations: 190.3 kB / 17.2 MB, free: 5.953 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.309/1.309, allocations: 222.9 MB / 240.9 MB, free: 15.22 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002349/0.002349, allocations: 302.3 kB / 291.3 MB, free: 14.55 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9433/0.9433, allocations: 169.3 MB / 0.4988 GB, free: 4.52 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001843/0.001843, allocations: 98.8 kB / 0.5959 GB, free: 15.18 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1661/0.168, allocations: 86.97 MB / 0.6808 GB, free: 8.219 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.HeatPumps.Examples.Carnot_TCon): time 0.4094/0.5774, allocations: 61.15 MB / 0.7405 GB, free: 10.16 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.01923/0.5967, allocations: 11.98 MB / 0.7522 GB, free: 0.6172 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002631/0.5994, allocations: 56.41 kB / 0.7523 GB, free: 0.5977 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.002468/0.6019, allocations: 0.6787 MB / 0.753 GB, free: 12 kB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.00629/0.6082, allocations: 1.973 MB / 0.7549 GB, free: 14.43 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.003848/0.6121, allocations: 1.199 MB / 0.7561 GB, free: 13.5 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.004687/0.6168, allocations: 3.072 MB / 0.7591 GB, free: 11.7 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001889/0.6187, allocations: 1.103 MB / 0.7601 GB, free: 10.98 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003507/0.6222, allocations: 1.333 MB / 0.7614 GB, free: 10.17 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001861/0.6241, allocations: 0.8936 MB / 0.7623 GB, free: 9.621 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 0.0003769/0.6245, allocations: 114.4 kB / 0.7624 GB, free: 9.621 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00353/0.6281, allocations: 1.438 MB / 0.7638 GB, free: 8.832 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0004982/0.6286, allocations: 286.2 kB / 0.7641 GB, free: 8.602 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.001468/0.6301, allocations: 0.6985 MB / 0.7648 GB, free: 8.129 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.004161/0.6342, allocations: 2.274 MB / 0.767 GB, free: 6.633 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 6.452e-06/0.6343, allocations: 1.781 kB / 0.767 GB, free: 6.633 MB / 0.5294 GB Notification: Performance of FrontEnd: time 2.114e-06/0.6343, allocations: 0 / 0.767 GB, free: 6.633 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 5.894e-05/0.6343, allocations: 0 / 0.767 GB, free: 6.633 MB / 0.5294 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.003895/0.6382, allocations: 1.724 MB / 0.7687 GB, free: 5.297 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.802e-05/0.6383, allocations: 13.81 kB / 0.7687 GB, free: 5.293 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002333/0.6406, allocations: 405.9 kB / 0.7691 GB, free: 4.98 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002313/0.643, allocations: 1.097 MB / 0.7702 GB, free: 3.828 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003602/0.6433, allocations: 121.9 kB / 0.7703 GB, free: 3.707 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001311/0.6435, allocations: 84 kB / 0.7704 GB, free: 3.625 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002092/0.6456, allocations: 1.002 MB / 0.7713 GB, free: 2.566 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.07e-05/0.6456, allocations: 7.938 kB / 0.7713 GB, free: 2.559 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.15e-05/0.6457, allocations: 32 kB / 0.7714 GB, free: 2.527 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.719e-05/0.6457, allocations: 20 kB / 0.7714 GB, free: 2.508 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002336/0.6481, allocations: 0.8664 MB / 0.7722 GB, free: 1.637 MB / 0.5294 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.007171/0.6553, allocations: 5.275 MB / 0.7774 GB, free: 11.99 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003459/0.6587, allocations: 0.7958 MB / 0.7782 GB, free: 11.19 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000755/0.6595, allocations: 296.7 kB / 0.7784 GB, free: 10.89 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006921/0.6602, allocations: 0.9141 MB / 0.7793 GB, free: 9.777 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.701e-05/0.6603, allocations: 34.56 kB / 0.7794 GB, free: 9.734 MB / 0.545 GB Notification: Performance of pre-optimization done (n=43): time 2.294e-06/0.6603, allocations: 0 / 0.7794 GB, free: 9.734 MB / 0.545 GB Notification: Performance of matching and sorting (n=43): time 0.008822/0.6691, allocations: 1.916 MB / 0.7812 GB, free: 7.789 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.064e-05/0.6692, allocations: 59.41 kB / 0.7813 GB, free: 7.719 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001833/0.671, allocations: 1.072 MB / 0.7823 GB, free: 6.633 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 8.448e-05/0.6711, allocations: 41.7 kB / 0.7824 GB, free: 6.586 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004499/0.6716, allocations: 0.5312 MB / 0.7829 GB, free: 6.051 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.000143/0.6717, allocations: 145.8 kB / 0.783 GB, free: 5.906 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002302/0.672, allocations: 138.1 kB / 0.7832 GB, free: 5.766 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001205/0.6721, allocations: 333.9 kB / 0.7835 GB, free: 5.434 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009022/0.673, allocations: 311.3 kB / 0.7838 GB, free: 5.125 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001113/0.6741, allocations: 0.5424 MB / 0.7843 GB, free: 4.48 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001719/0.6759, allocations: 0.7222 MB / 0.785 GB, free: 3.688 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.654e-06/0.6759, allocations: 4 kB / 0.785 GB, free: 3.684 MB / 0.545 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.002906/0.6788, allocations: 1.031 MB / 0.786 GB, free: 2.641 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 2.289e-05/0.6788, allocations: 9.875 kB / 0.786 GB, free: 2.633 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.359e-05/0.6789, allocations: 4 kB / 0.786 GB, free: 2.629 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0014/0.6803, allocations: 312.6 kB / 0.7863 GB, free: 2.32 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005671/0.6808, allocations: 131.8 kB / 0.7865 GB, free: 2.191 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001567/0.6824, allocations: 0.92 MB / 0.7874 GB, free: 1.246 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001424/0.6839, allocations: 151.3 kB / 0.7875 GB, free: 1.098 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000103/0.684, allocations: 35.98 kB / 0.7875 GB, free: 1.062 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001257/0.6852, allocations: 0.509 MB / 0.788 GB, free: 0.5508 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001109/0.6864, allocations: 0.5385 MB / 0.7886 GB, free: 15.91 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001722/0.6881, allocations: 0.7138 MB / 0.7893 GB, free: 15.12 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.19e-06/0.6881, allocations: 0 / 0.7893 GB, free: 15.12 MB / 0.5606 GB Notification: Performance of matching and sorting (n=71) (initialization_lambda0): time 0.003039/0.6912, allocations: 1.02 MB / 0.7903 GB, free: 14.09 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.83e-05/0.6912, allocations: 15.88 kB / 0.7903 GB, free: 14.08 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.065e-05/0.6912, allocations: 4 kB / 0.7903 GB, free: 14.07 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001208/0.6924, allocations: 315.4 kB / 0.7906 GB, free: 13.77 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005683/0.693, allocations: 123.9 kB / 0.7907 GB, free: 13.64 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00156/0.6946, allocations: 0.9074 MB / 0.7916 GB, free: 12.71 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001591/0.6962, allocations: 143.5 kB / 0.7917 GB, free: 12.57 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001053/0.6963, allocations: 33.31 kB / 0.7918 GB, free: 12.54 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * 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 (57): * Single equations (assignments): 56 * 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.0003234/0.6966, allocations: 217.2 kB / 0.792 GB, free: 12.32 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004738/0.6971, allocations: 110.7 kB / 0.7921 GB, free: 12.21 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004193/0.7013, allocations: 1.102 MB / 0.7931 GB, free: 11.09 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.945e-05/0.7014, allocations: 12.08 kB / 0.7932 GB, free: 11.07 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.538e-06/0.7014, allocations: 3.938 kB / 0.7932 GB, free: 11.07 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.189e-05/0.7014, allocations: 11.98 kB / 0.7932 GB, free: 11.06 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005919/0.7073, allocations: 2.154 MB / 0.7953 GB, free: 8.82 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.588e-05/0.7074, allocations: 7.984 kB / 0.7953 GB, free: 8.812 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002883/0.7077, allocations: 68.17 kB / 0.7953 GB, free: 8.746 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001064/0.7087, allocations: 292.6 kB / 0.7956 GB, free: 8.457 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.343e-05/0.7088, allocations: 12 kB / 0.7956 GB, free: 8.445 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001648/0.7105, allocations: 0.9566 MB / 0.7966 GB, free: 7.465 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.47e-06/0.7105, allocations: 4 kB / 0.7966 GB, free: 7.461 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003862/0.7143, allocations: 1.163 MB / 0.7977 GB, free: 6.254 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006376/0.715, allocations: 267.5 kB / 0.798 GB, free: 5.973 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002645/0.7153, allocations: 12 kB / 0.798 GB, free: 5.961 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009851/0.7163, allocations: 71.91 kB / 0.798 GB, free: 5.891 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.624e-05/0.7164, allocations: 43.83 kB / 0.7981 GB, free: 5.848 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.145e-05/0.7165, allocations: 19.98 kB / 0.7981 GB, free: 5.828 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.001358/0.7178, allocations: 0.7551 MB / 0.7988 GB, free: 5.066 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.1e-07/0.7178, allocations: 0 / 0.7988 GB, free: 5.066 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.00188/0.7197, allocations: 0.5614 MB / 0.7994 GB, free: 4.504 MB / 0.5606 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.0008912/0.7206, allocations: 400.3 kB / 0.7998 GB, free: 4.109 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.003488/0.7241, allocations: 1.147 MB / 0.8009 GB, free: 2.961 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 5.74e-06/0.7241, allocations: 0 / 0.8009 GB, free: 2.961 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.000956/0.7251, allocations: 347.3 kB / 0.8012 GB, free: 2.625 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002785/0.7279, allocations: 0.505 MB / 0.8017 GB, free: 2.133 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005635/0.7336, allocations: 2.078 MB / 0.8038 GB, free: 15.99 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006891/0.7343, allocations: 1.061 MB / 0.8048 GB, free: 14.9 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000287/0.7346, allocations: 87.41 kB / 0.8049 GB, free: 14.82 MB / 0.5762 GB Notification: Performance of SimCode: time 6.61e-07/0.7346, allocations: 0 / 0.8049 GB, free: 14.82 MB / 0.5762 GB Notification: Performance of Templates: time 0.0331/0.7677, allocations: 24.03 MB / 0.8283 GB, free: 6.973 MB / 0.5919 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)