Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.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: "" <> buildModelFMU(IBPSA.Fluid.HeatPumps.Examples.Carnot_TCon,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_HeatPumps_Examples_Carnot_TCon",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Fluid.HeatPumps.Examples.Carnot_TCon,fileNamePrefix="IBPSA_latest_IBPSA_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.001526/0.001526, allocations: 107.2 kB / 16.4 MB, free: 6.445 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.001787/0.001788, allocations: 195.9 kB / 17.34 MB, free: 5.719 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.315/1.315, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.688/0.688, allocations: 115.3 MB / 406.5 MB, free: 6.184 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001798/0.001798, allocations: 60.03 kB / 0.5572 GB, free: 32.53 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1461/0.1479, allocations: 76.18 MB / 0.6316 GB, free: 4.934 MB / 478.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.HeatPumps.Examples.Carnot_TCon): time 0.06098/0.2089, allocations: 61.13 MB / 0.6913 GB, free: 7.586 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.01722/0.2262, allocations: 12 MB / 0.703 GB, free: 11.55 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002647/0.2289, allocations: 63.62 kB / 0.7031 GB, free: 11.49 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.002301/0.2313, allocations: 0.6752 MB / 0.7037 GB, free: 10.81 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.005838/0.2371, allocations: 1.963 MB / 0.7056 GB, free: 8.836 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.00349/0.2406, allocations: 1.21 MB / 0.7068 GB, free: 7.633 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.004548/0.2452, allocations: 3.087 MB / 0.7098 GB, free: 4.535 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001934/0.2472, allocations: 1.099 MB / 0.7109 GB, free: 3.402 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003207/0.2504, allocations: 1.359 MB / 0.7122 GB, free: 2.043 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001733/0.2521, allocations: 0.8983 MB / 0.7131 GB, free: 1.141 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.0003613/0.2525, allocations: 116 kB / 0.7132 GB, free: 1.027 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003224/0.2557, allocations: 1.435 MB / 0.7146 GB, free: 15.59 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.000411/0.2562, allocations: 294.8 kB / 0.7149 GB, free: 15.3 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.00112/0.2573, allocations: 0.6919 MB / 0.7156 GB, free: 14.61 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.004721/0.262, allocations: 2.291 MB / 0.7178 GB, free: 12.31 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 5.481e-06/0.262, allocations: 0 / 0.7178 GB, free: 12.31 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.954e-06/0.2621, allocations: 0 / 0.7178 GB, free: 12.31 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 6.173e-05/0.2621, allocations: 0 / 0.7178 GB, free: 12.31 MB / 0.5606 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.003959/0.2661, allocations: 1.725 MB / 0.7195 GB, free: 10.53 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.55e-05/0.2661, allocations: 8.031 kB / 0.7195 GB, free: 10.52 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001466/0.2663, allocations: 118.9 kB / 0.7196 GB, free: 10.39 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002105/0.2684, allocations: 410.8 kB / 0.72 GB, free: 9.992 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002235/0.2706, allocations: 1.163 MB / 0.7211 GB, free: 8.77 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.847e-05/0.2707, allocations: 66 kB / 0.7212 GB, free: 8.707 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001253/0.2709, allocations: 87.94 kB / 0.7213 GB, free: 8.621 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00192/0.2728, allocations: 0.9976 MB / 0.7223 GB, free: 7.562 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.118e-05/0.2728, allocations: 3.938 kB / 0.7223 GB, free: 7.559 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.993e-05/0.2729, allocations: 35.94 kB / 0.7223 GB, free: 7.523 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.823e-05/0.2729, allocations: 20 kB / 0.7223 GB, free: 7.504 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002155/0.2751, allocations: 0.8548 MB / 0.7232 GB, free: 6.652 MB / 0.5606 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.006776/0.2819, allocations: 5.219 MB / 0.7283 GB, free: 1.059 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003272/0.2852, allocations: 0.7937 MB / 0.729 GB, free: 264 kB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006897/0.2859, allocations: 294.2 kB / 0.7293 GB, free: 15.97 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006298/0.2865, allocations: 0.9141 MB / 0.7302 GB, free: 14.85 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.791e-05/0.2865, allocations: 38.5 kB / 0.7302 GB, free: 14.8 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=43): time 2.404e-06/0.2866, allocations: 0 / 0.7302 GB, free: 14.8 MB / 0.5762 GB Notification: Performance of matching and sorting (n=43): time 0.008054/0.2946, allocations: 1.844 MB / 0.732 GB, free: 12.93 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.23e-05/0.2947, allocations: 59.41 kB / 0.7321 GB, free: 12.86 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001625/0.2963, allocations: 1.076 MB / 0.7331 GB, free: 11.77 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 7.381e-05/0.2964, allocations: 33.7 kB / 0.7332 GB, free: 11.73 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.000412/0.2968, allocations: 0.535 MB / 0.7337 GB, free: 11.19 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001266/0.297, allocations: 149.8 kB / 0.7338 GB, free: 11.04 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002292/0.2972, allocations: 138.2 kB / 0.734 GB, free: 10.9 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001136/0.2973, allocations: 330 kB / 0.7343 GB, free: 10.57 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008382/0.2982, allocations: 307.3 kB / 0.7346 GB, free: 10.27 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001018/0.2992, allocations: 0.5346 MB / 0.7351 GB, free: 9.633 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001582/0.3008, allocations: 0.7214 MB / 0.7358 GB, free: 8.84 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.529e-06/0.3008, allocations: 0 / 0.7358 GB, free: 8.84 MB / 0.5762 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.002614/0.3034, allocations: 1.008 MB / 0.7368 GB, free: 7.82 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.835e-05/0.3034, allocations: 4 kB / 0.7368 GB, free: 7.816 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.003e-05/0.3035, allocations: 8 kB / 0.7368 GB, free: 7.809 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001188/0.3047, allocations: 304.7 kB / 0.7371 GB, free: 7.508 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005184/0.3052, allocations: 131.8 kB / 0.7372 GB, free: 7.379 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001348/0.3065, allocations: 0.8995 MB / 0.7381 GB, free: 6.453 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001175/0.3077, allocations: 155.2 kB / 0.7382 GB, free: 6.301 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.009e-05/0.3078, allocations: 35.98 kB / 0.7383 GB, free: 6.266 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.00115/0.309, allocations: 0.509 MB / 0.7388 GB, free: 5.754 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0009919/0.31, allocations: 0.5268 MB / 0.7393 GB, free: 5.125 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001545/0.3115, allocations: 0.7061 MB / 0.74 GB, free: 4.348 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.53e-06/0.3115, allocations: 4 kB / 0.74 GB, free: 4.344 MB / 0.5762 GB Notification: Performance of matching and sorting (n=71) (initialization_lambda0): time 0.002592/0.3141, allocations: 1.004 MB / 0.741 GB, free: 3.328 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.532e-05/0.3142, allocations: 7.938 kB / 0.741 GB, free: 3.32 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.005e-06/0.3142, allocations: 8 kB / 0.741 GB, free: 3.312 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001045/0.3152, allocations: 298.8 kB / 0.7413 GB, free: 3.02 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005129/0.3158, allocations: 135.8 kB / 0.7414 GB, free: 2.887 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001291/0.3171, allocations: 0.8879 MB / 0.7423 GB, free: 1.973 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001191/0.3183, allocations: 139.5 kB / 0.7424 GB, free: 1.836 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.512e-05/0.3183, allocations: 28 kB / 0.7424 GB, free: 1.809 MB / 0.5762 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.0002494/0.3186, allocations: 235.4 kB / 0.7427 GB, free: 1.574 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001792/0.3188, allocations: 114.6 kB / 0.7428 GB, free: 1.461 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00367/0.3225, allocations: 1.082 MB / 0.7438 GB, free: 368 kB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.279e-05/0.3225, allocations: 4 kB / 0.7438 GB, free: 364 kB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.592e-06/0.3225, allocations: 7.875 kB / 0.7438 GB, free: 356 kB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.865e-06/0.3225, allocations: 3.984 kB / 0.7438 GB, free: 352 kB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3245/0.647, allocations: 2.136 MB / 0.7459 GB, free: 109.2 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.11e-05/0.6471, allocations: 6.5 kB / 0.7459 GB, free: 109.2 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002898/0.6474, allocations: 62.06 kB / 0.746 GB, free: 109.2 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009848/0.6484, allocations: 289.3 kB / 0.7463 GB, free: 109.2 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.922e-05/0.6484, allocations: 16.75 kB / 0.7463 GB, free: 109.2 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001317/0.6497, allocations: 0.9276 MB / 0.7472 GB, free: 108.6 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.738e-06/0.6498, allocations: 2.125 kB / 0.7472 GB, free: 108.6 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003676/0.6534, allocations: 1.15 MB / 0.7483 GB, free: 108.3 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005054/0.654, allocations: 266.1 kB / 0.7486 GB, free: 108.2 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001296/0.6541, allocations: 10.45 kB / 0.7486 GB, free: 108.2 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007776/0.6549, allocations: 72.55 kB / 0.7486 GB, free: 108.2 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.735e-05/0.655, allocations: 42.58 kB / 0.7487 GB, free: 108.2 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.368e-05/0.655, allocations: 22.2 kB / 0.7487 GB, free: 108.2 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.001296/0.6564, allocations: 0.754 MB / 0.7494 GB, free: 107.9 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.4e-07/0.6564, allocations: 0.8438 kB / 0.7494 GB, free: 107.9 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.00171/0.6581, allocations: 0.5669 MB / 0.75 GB, free: 107.8 MB / 0.5762 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.004515/0.6626, allocations: 1.969 MB / 0.7519 GB, free: 106.8 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002944/0.6656, allocations: 1.122 MB / 0.753 GB, free: 106.5 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 5.27e-06/0.6656, allocations: 2.25 kB / 0.753 GB, free: 106.5 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0008095/0.6664, allocations: 341.1 kB / 0.7533 GB, free: 106.4 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002341/0.6687, allocations: 0.5128 MB / 0.7538 GB, free: 106.3 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0161/0.6849, allocations: 8.247 MB / 0.7619 GB, free: 102.2 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004432/0.6853, allocations: 1.067 MB / 0.7629 GB, free: 101.5 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0009313/0.6863, allocations: 227.7 kB / 0.7631 GB, free: 101.5 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004143/0.6867, allocations: 406.8 kB / 0.7635 GB, free: 101.2 MB / 0.5762 GB Notification: Performance of SimCode: time 7.91e-07/0.6867, allocations: 2.406 kB / 0.7635 GB, free: 101.2 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05097/0.7377, allocations: 34.24 MB / 0.797 GB, free: 71.64 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.21/13.95, allocations: 6.812 kB / 0.797 GB, free: 71.64 MB / 0.5762 GB (rm -f IBPSA_latest_IBPSA.Fluid.HeatPumps.Examples.Carnot_TCon.pipe ; mkfifo IBPSA_latest_IBPSA.Fluid.HeatPumps.Examples.Carnot_TCon.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Fluid.HeatPumps.Examples.Carnot_TCon.pipe >> ../files/IBPSA_latest_IBPSA.Fluid.HeatPumps.Examples.Carnot_TCon.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Fluid_HeatPumps_Examples_Carnot_TCon_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 IBPSA_latest_IBPSA_Fluid_HeatPumps_Examples_Carnot_TCon.fmu > IBPSA_latest_IBPSA.Fluid.HeatPumps.Examples.Carnot_TCon.pipe 2>&1)