Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_maint.7.0.x_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 7.0.3-maint.7.0.x/package.mo", uses=false) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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: translateModel(Buildings.Fluid.HeatPumps.Examples.Carnot_TCon,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon") translateModel(Buildings.Fluid.HeatPumps.Examples.Carnot_TCon,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.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.006753/0.006753, allocations: 99.23 kB / 15.73 MB, free: 5.953 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.001981/0.001981, allocations: 198.9 kB / 16.68 MB, free: 5.887 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.506/1.506, allocations: 205.1 MB / 222.5 MB, free: 4.473 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.606/1.606, allocations: 251.7 MB / 0.5094 GB, free: 3.016 MB / 414.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.002243/0.002243, allocations: 59.91 kB / 0.7258 GB, free: 8.984 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2178/0.22, allocations: 104.7 MB / 0.828 GB, free: 168 kB / 0.6387 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Examples.Carnot_TCon): time 0.05625/0.2763, allocations: 61.21 MB / 0.8878 GB, free: 2.734 MB / 0.7012 GB Notification: Performance of NFInst.instExpressions: time 0.01756/0.2939, allocations: 11.87 MB / 0.8994 GB, free: 6.836 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002611/0.2966, allocations: 59.62 kB / 0.8995 GB, free: 6.777 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.002569/0.2992, allocations: 0.6831 MB / 0.9001 GB, free: 6.09 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.007233/0.3065, allocations: 1.949 MB / 0.902 GB, free: 4.133 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.004027/0.3106, allocations: 1.228 MB / 0.9032 GB, free: 2.914 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.6185/0.9291, allocations: 3.069 MB / 0.9062 GB, free: 21.37 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002283/0.9314, allocations: 1.103 MB / 0.9073 GB, free: 21.29 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00402/0.9354, allocations: 1.314 MB / 0.9086 GB, free: 21.29 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002091/0.9376, allocations: 0.9116 MB / 0.9095 GB, free: 21.23 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 0.0002885/0.9379, allocations: 117.8 kB / 0.9096 GB, free: 21.23 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003804/0.9417, allocations: 1.419 MB / 0.911 GB, free: 21.23 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0003821/0.9421, allocations: 291.4 kB / 0.9113 GB, free: 21.19 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.00103/0.9431, allocations: 0.7001 MB / 0.9119 GB, free: 20.99 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.004757/0.9479, allocations: 2.286 MB / 0.9142 GB, free: 20.79 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 8.476e-06/0.9479, allocations: 4.391 kB / 0.9142 GB, free: 20.79 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.784e-06/0.9479, allocations: 0 / 0.9142 GB, free: 20.79 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 2.487e-05/0.9479, allocations: 0 / 0.9142 GB, free: 20.79 MB / 0.7169 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.004146/0.9521, allocations: 1.737 MB / 0.9159 GB, free: 19.85 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.689e-05/0.9522, allocations: 10.59 kB / 0.9159 GB, free: 19.85 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002489/0.9546, allocations: 408.1 kB / 0.9163 GB, free: 19.77 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002649/0.9573, allocations: 1.161 MB / 0.9174 GB, free: 19.39 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001/0.9574, allocations: 70.91 kB / 0.9175 GB, free: 19.38 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001788/0.9576, allocations: 81.84 kB / 0.9175 GB, free: 19.38 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002602/0.9602, allocations: 0.9958 MB / 0.9185 GB, free: 19.2 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.512e-05/0.9603, allocations: 3.219 kB / 0.9185 GB, free: 19.2 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.512e-05/0.9604, allocations: 33.81 kB / 0.9186 GB, free: 19.2 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.348e-05/0.9604, allocations: 19.84 kB / 0.9186 GB, free: 19.2 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002525/0.9629, allocations: 0.8702 MB / 0.9194 GB, free: 19.18 MB / 0.7169 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.007978/0.9709, allocations: 4.97 MB / 0.9243 GB, free: 16.4 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004067/0.975, allocations: 0.8167 MB / 0.9251 GB, free: 16.36 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008525/0.9759, allocations: 315.9 kB / 0.9254 GB, free: 16.34 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005684/0.9765, allocations: 0.9064 MB / 0.9263 GB, free: 15.31 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.902e-05/0.9765, allocations: 38.34 kB / 0.9263 GB, free: 15.27 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=47): time 2.544e-06/0.9765, allocations: 0 / 0.9263 GB, free: 15.27 MB / 0.7169 GB Notification: Performance of matching and sorting (n=47): time 0.008435/0.985, allocations: 1.758 MB / 0.928 GB, free: 15.02 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.287e-05/0.9851, allocations: 61.39 kB / 0.9281 GB, free: 14.95 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002075/0.9871, allocations: 1.077 MB / 0.9291 GB, free: 14.8 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 0.0001338/0.9873, allocations: 40.64 kB / 0.9292 GB, free: 14.77 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004123/0.9877, allocations: 0.529 MB / 0.9297 GB, free: 14.57 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001718/0.9879, allocations: 166.2 kB / 0.9298 GB, free: 14.46 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002637/0.9882, allocations: 148 kB / 0.93 GB, free: 14.44 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 7.083e-05/0.9882, allocations: 334.5 kB / 0.9303 GB, free: 14.13 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009567/0.9892, allocations: 317.1 kB / 0.9306 GB, free: 14.12 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001101/0.9903, allocations: 0.5416 MB / 0.9311 GB, free: 13.86 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001708/0.992, allocations: 0.7207 MB / 0.9318 GB, free: 13.67 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.013e-06/0.9921, allocations: 9.656 kB / 0.9318 GB, free: 13.66 MB / 0.7169 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.004217/0.9963, allocations: 1.187 MB / 0.933 GB, free: 13.54 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.313e-05/0.9963, allocations: 7.469 kB / 0.933 GB, free: 13.54 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.407e-05/0.9963, allocations: 4.719 kB / 0.933 GB, free: 13.54 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001265/0.9976, allocations: 307.8 kB / 0.9333 GB, free: 13.51 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006015/0.9982, allocations: 137.3 kB / 0.9334 GB, free: 13.51 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001404/0.9996, allocations: 0.9019 MB / 0.9343 GB, free: 12.97 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001535/1.001, allocations: 150.2 kB / 0.9345 GB, free: 12.93 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.01e-05/1.001, allocations: 35.28 kB / 0.9345 GB, free: 12.93 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001379/1.003, allocations: 0.5229 MB / 0.935 GB, free: 12.84 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001109/1.004, allocations: 0.5335 MB / 0.9355 GB, free: 12.59 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001708/1.006, allocations: 0.7295 MB / 0.9362 GB, free: 12.39 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.538e-06/1.006, allocations: 1.156 kB / 0.9362 GB, free: 12.39 MB / 0.7169 GB Notification: Performance of matching and sorting (n=75) (initialization_lambda0): time 0.003906/1.009, allocations: 1.166 MB / 0.9374 GB, free: 12.26 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.069e-05/1.009, allocations: 11.22 kB / 0.9374 GB, free: 12.25 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.097e-06/1.009, allocations: 4.656 kB / 0.9374 GB, free: 12.25 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001071/1.011, allocations: 299.1 kB / 0.9377 GB, free: 12.23 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006039/1.011, allocations: 133.3 kB / 0.9378 GB, free: 12.23 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001288/1.012, allocations: 0.8897 MB / 0.9387 GB, free: 11.7 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001543/1.014, allocations: 145.3 kB / 0.9388 GB, free: 11.67 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.784e-05/1.014, allocations: 30.47 kB / 0.9388 GB, free: 11.67 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * 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 (61): * Single equations (assignments): 60 * 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.0002978/1.014, allocations: 226.1 kB / 0.9391 GB, free: 11.48 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002107/1.015, allocations: 113.1 kB / 0.9392 GB, free: 11.42 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004017/1.019, allocations: 1.131 MB / 0.9403 GB, free: 11.32 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.81e-05/1.019, allocations: 4.688 kB / 0.9403 GB, free: 11.32 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.197e-06/1.019, allocations: 5.062 kB / 0.9403 GB, free: 11.31 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.484e-06/1.019, allocations: 3.75 kB / 0.9403 GB, free: 11.31 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005426/1.024, allocations: 2.206 MB / 0.9424 GB, free: 10.88 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.806e-06/1.024, allocations: 2.344 kB / 0.9424 GB, free: 10.88 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003101/1.025, allocations: 72.77 kB / 0.9425 GB, free: 10.88 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009619/1.025, allocations: 295.7 kB / 0.9428 GB, free: 10.86 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.089e-05/1.026, allocations: 16.36 kB / 0.9428 GB, free: 10.86 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00129/1.027, allocations: 0.9247 MB / 0.9437 GB, free: 10.32 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.629e-06/1.027, allocations: 6.438 kB / 0.9437 GB, free: 10.32 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004473/1.031, allocations: 1.324 MB / 0.945 GB, free: 9.988 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006653/1.032, allocations: 269.1 kB / 0.9453 GB, free: 9.832 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000166/1.032, allocations: 16.52 kB / 0.9453 GB, free: 9.828 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008371/1.033, allocations: 70.88 kB / 0.9454 GB, free: 9.824 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.446e-05/1.033, allocations: 35.16 kB / 0.9454 GB, free: 9.824 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.097e-05/1.033, allocations: 24.08 kB / 0.9454 GB, free: 9.824 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.001272/1.034, allocations: 0.7572 MB / 0.9461 GB, free: 9.711 MB / 0.7169 GB Notification: Performance of sort global known variables: time 2.71e-07/1.034, allocations: 3.938 kB / 0.9462 GB, free: 9.707 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.001938/1.036, allocations: 0.5659 MB / 0.9467 GB, free: 9.633 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.0008161/1.037, allocations: 370.9 kB / 0.9471 GB, free: 9.484 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.003321/1.041, allocations: 1.179 MB / 0.9482 GB, free: 9.449 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 5.921e-06/1.041, allocations: 5.531 kB / 0.9482 GB, free: 9.445 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0009067/1.042, allocations: 359.7 kB / 0.9486 GB, free: 9.438 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002598/1.044, allocations: 0.5389 MB / 0.9491 GB, free: 9.336 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005547/1.05, allocations: 2.027 MB / 0.9511 GB, free: 8.41 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004802/1.05, allocations: 1.06 MB / 0.9521 GB, free: 7.688 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.001018/1.051, allocations: 238.5 kB / 0.9523 GB, free: 7.621 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001887/1.051, allocations: 79.78 kB / 0.9524 GB, free: 7.609 MB / 0.7169 GB Notification: Performance of SimCode: time 6.81e-07/1.051, allocations: 0 / 0.9524 GB, free: 7.609 MB / 0.7169 GB Notification: Performance of Templates: time 0.04414/1.096, allocations: 25.7 MB / 0.9775 GB, free: 7.707 MB / 0.7325 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.pipe 2>&1)