Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Validation.Comparative.Carnot_y.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/Buildings 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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(Buildings.Fluid.HeatPumps.ModularReversible.Validation.Comparative.Carnot_y,fileNamePrefix="Buildings_latest_Buildings_Fluid_HeatPumps_ModularReversible_Validation_Comparative_Carnot_y",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatPumps.ModularReversible.Validation.Comparative.Carnot_y,fileNamePrefix="Buildings_latest_Buildings_Fluid_HeatPumps_ModularReversible_Validation_Comparative_Carnot_y",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.005047/0.005047, allocations: 99.61 kB / 15.73 MB, free: 6.062 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.001446/0.001446, allocations: 194.1 kB / 16.67 MB, free: 5.973 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.293/1.293, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.452/2.452, allocations: 482.6 MB / 0.755 GB, free: 6.617 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001718/0.001719, allocations: 65.17 kB / 1.083 GB, free: 13.74 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2462/0.2479, allocations: 162.3 MB / 1.242 GB, free: 8.914 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.ModularReversible.Validation.Comparative.Carnot_y): time 0.06864/0.3166, allocations: 75.54 MB / 1.316 GB, free: 13.12 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.01555/0.3322, allocations: 12.81 MB / 1.328 GB, free: 280 kB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00119/0.3334, allocations: 63.62 kB / 1.328 GB, free: 216 kB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.001548/0.3349, allocations: 0.8346 MB / 1.329 GB, free: 15.37 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.004336/0.3393, allocations: 2.484 MB / 1.331 GB, free: 12.87 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.002531/0.3419, allocations: 1.387 MB / 1.333 GB, free: 11.5 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.003976/0.3458, allocations: 4.419 MB / 1.337 GB, free: 7.066 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00152/0.3474, allocations: 1.457 MB / 1.339 GB, free: 5.566 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002813/0.3502, allocations: 1.828 MB / 1.34 GB, free: 3.738 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001244/0.3514, allocations: 1.186 MB / 1.342 GB, free: 2.547 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 0.0002154/0.3517, allocations: 164 kB / 1.342 GB, free: 2.387 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00214/0.3538, allocations: 1.4 MB / 1.343 GB, free: 0.9844 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 0.0003332/0.3542, allocations: 410.6 kB / 1.343 GB, free: 0.582 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 0.0007891/0.355, allocations: 0.9177 MB / 1.344 GB, free: 15.66 MB / 1.076 GB Notification: Performance of NFConvertDAE.convert: time 0.002939/0.3579, allocations: 2.908 MB / 1.347 GB, free: 12.74 MB / 1.076 GB Notification: Performance of FrontEnd - DAE generated: time 7.293e-06/0.3579, allocations: 8 kB / 1.347 GB, free: 12.73 MB / 1.076 GB Notification: Performance of FrontEnd: time 1.513e-06/0.3579, allocations: 3.938 kB / 1.347 GB, free: 12.73 MB / 1.076 GB Notification: Performance of Transformations before backend: time 1.273e-05/0.3579, allocations: 0 / 1.347 GB, free: 12.73 MB / 1.076 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 240 * Number of variables: 240 Notification: Performance of Generate backend data structure: time 0.003086/0.361, allocations: 2.167 MB / 1.349 GB, free: 10.49 MB / 1.076 GB Notification: Performance of prepare preOptimizeDAE: time 3.01e-05/0.3611, allocations: 8.031 kB / 1.349 GB, free: 10.48 MB / 1.076 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001589/0.3612, allocations: 148.1 kB / 1.349 GB, free: 10.33 MB / 1.076 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007101/0.362, allocations: 243.7 kB / 1.35 GB, free: 10.09 MB / 1.076 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002155/0.3641, allocations: 1.549 MB / 1.351 GB, free: 8.492 MB / 1.076 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.826e-05/0.3642, allocations: 74 kB / 1.351 GB, free: 8.418 MB / 1.076 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001308/0.3643, allocations: 104 kB / 1.351 GB, free: 8.316 MB / 1.076 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001793/0.3661, allocations: 1.1 MB / 1.352 GB, free: 7.184 MB / 1.076 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.264e-05/0.3662, allocations: 0 / 1.352 GB, free: 7.184 MB / 1.076 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.393e-05/0.3662, allocations: 44 kB / 1.352 GB, free: 7.141 MB / 1.076 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.128e-05/0.3663, allocations: 27.98 kB / 1.353 GB, free: 7.113 MB / 1.076 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001768/0.3681, allocations: 0.8939 MB / 1.353 GB, free: 6.215 MB / 1.076 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.005168/0.3732, allocations: 4.948 MB / 1.358 GB, free: 0.9805 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001294/0.3745, allocations: 0.6052 MB / 1.359 GB, free: 380 kB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006577/0.3752, allocations: 346.3 kB / 1.359 GB, free: 32 kB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006167/0.3758, allocations: 0.8277 MB / 1.36 GB, free: 15.02 MB / 1.092 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.081e-05/0.3759, allocations: 39.12 kB / 1.36 GB, free: 14.97 MB / 1.092 GB Notification: Performance of pre-optimization done (n=61): time 1.522e-06/0.3759, allocations: 0 / 1.36 GB, free: 14.97 MB / 1.092 GB Notification: Performance of matching and sorting (n=61): time 0.006806/0.3827, allocations: 1.721 MB / 1.362 GB, free: 13.22 MB / 1.092 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.338e-05/0.3827, allocations: 59.97 kB / 1.362 GB, free: 13.15 MB / 1.092 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001443/0.3842, allocations: 1.251 MB / 1.363 GB, free: 11.88 MB / 1.092 GB Notification: Performance of collectPreVariables (initialization): time 5.216e-05/0.3842, allocations: 41.7 kB / 1.363 GB, free: 11.84 MB / 1.092 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004871/0.3847, allocations: 0.6192 MB / 1.364 GB, free: 11.21 MB / 1.092 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001735/0.3849, allocations: 230 kB / 1.364 GB, free: 10.98 MB / 1.092 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002059/0.3851, allocations: 150.6 kB / 1.364 GB, free: 10.83 MB / 1.092 GB Notification: Performance of setup shared object (initialization): time 0.0001288/0.3853, allocations: 341.8 kB / 1.364 GB, free: 10.49 MB / 1.092 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006232/0.3859, allocations: 288.7 kB / 1.365 GB, free: 10.21 MB / 1.092 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007883/0.3867, allocations: 496.7 kB / 1.365 GB, free: 9.645 MB / 1.092 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001339/0.388, allocations: 0.7089 MB / 1.366 GB, free: 8.887 MB / 1.092 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.44e-06/0.3881, allocations: 4 kB / 1.366 GB, free: 8.883 MB / 1.092 GB Notification: Performance of matching and sorting (n=88) (initialization): time 0.004255/0.3923, allocations: 1.277 MB / 1.367 GB, free: 7.594 MB / 1.092 GB Notification: Performance of prepare postOptimizeDAE: time 1.811e-05/0.3923, allocations: 13.86 kB / 1.367 GB, free: 7.582 MB / 1.092 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.933e-06/0.3924, allocations: 4 kB / 1.367 GB, free: 7.578 MB / 1.092 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005183/0.3929, allocations: 145 kB / 1.367 GB, free: 7.434 MB / 1.092 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005229/0.3934, allocations: 159.8 kB / 1.367 GB, free: 7.277 MB / 1.092 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007798/0.3942, allocations: 0.7084 MB / 1.368 GB, free: 6.543 MB / 1.092 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000735/0.3949, allocations: 115.3 kB / 1.368 GB, free: 6.43 MB / 1.092 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.812e-05/0.395, allocations: 31.98 kB / 1.368 GB, free: 6.398 MB / 1.092 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0009288/0.3959, allocations: 0.5527 MB / 1.369 GB, free: 5.844 MB / 1.092 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007675/0.3967, allocations: 492.7 kB / 1.369 GB, free: 5.285 MB / 1.092 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001282/0.398, allocations: 0.6895 MB / 1.37 GB, free: 4.547 MB / 1.092 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.914e-06/0.398, allocations: 0 / 1.37 GB, free: 4.547 MB / 1.092 GB Notification: Performance of matching and sorting (n=88) (initialization_lambda0): time 0.004262/0.4023, allocations: 1.277 MB / 1.371 GB, free: 3.258 MB / 1.092 GB Notification: Performance of prepare postOptimizeDAE: time 8.085e-06/0.4023, allocations: 11.94 kB / 1.371 GB, free: 3.246 MB / 1.092 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.989e-06/0.4023, allocations: 4 kB / 1.371 GB, free: 3.242 MB / 1.092 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004648/0.4028, allocations: 153 kB / 1.371 GB, free: 3.09 MB / 1.092 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005184/0.4033, allocations: 151.8 kB / 1.371 GB, free: 2.941 MB / 1.092 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007637/0.4041, allocations: 0.7084 MB / 1.372 GB, free: 2.207 MB / 1.092 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007624/0.4049, allocations: 103.6 kB / 1.372 GB, free: 2.105 MB / 1.092 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.556e-05/0.4049, allocations: 31.97 kB / 1.372 GB, free: 2.074 MB / 1.092 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (78): * Single equations (assignments): 77 * 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,10)} Notification: Performance of prepare postOptimizeDAE: time 0.000171/0.4051, allocations: 235.5 kB / 1.372 GB, free: 1.84 MB / 1.092 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001987/0.4053, allocations: 139.1 kB / 1.373 GB, free: 1.703 MB / 1.092 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004312/0.4096, allocations: 1.274 MB / 1.374 GB, free: 440 kB / 1.092 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.089e-05/0.4097, allocations: 8 kB / 1.374 GB, free: 432 kB / 1.092 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.4097, allocations: 4 kB / 1.374 GB, free: 428 kB / 1.092 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003889/0.4136, allocations: 1.092 MB / 1.375 GB, free: 15.29 MB / 1.107 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005629/0.4192, allocations: 2.599 MB / 1.377 GB, free: 12.57 MB / 1.107 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.118e-06/0.4192, allocations: 0 / 1.377 GB, free: 12.57 MB / 1.107 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004095/0.4196, allocations: 112.3 kB / 1.377 GB, free: 12.46 MB / 1.107 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004402/0.4201, allocations: 144.7 kB / 1.378 GB, free: 12.32 MB / 1.107 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.064e-05/0.4201, allocations: 23.94 kB / 1.378 GB, free: 12.3 MB / 1.107 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004679/0.4248, allocations: 2.634 MB / 1.38 GB, free: 9.508 MB / 1.107 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.019e-06/0.4248, allocations: 4 kB / 1.38 GB, free: 9.504 MB / 1.107 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00478/0.4296, allocations: 1.692 MB / 1.382 GB, free: 7.75 MB / 1.107 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000374/0.43, allocations: 319.9 kB / 1.382 GB, free: 7.418 MB / 1.107 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001416/0.4301, allocations: 16 kB / 1.382 GB, free: 7.402 MB / 1.107 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006827/0.4308, allocations: 55.98 kB / 1.382 GB, free: 7.348 MB / 1.107 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001041/0.4309, allocations: 56.25 kB / 1.382 GB, free: 7.289 MB / 1.107 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.262e-05/0.431, allocations: 39.97 kB / 1.382 GB, free: 7.25 MB / 1.107 GB Notification: Performance of sorting global known variables: time 0.001077/0.4321, allocations: 0.8943 MB / 1.383 GB, free: 6.355 MB / 1.107 GB Notification: Performance of sort global known variables: time 2.41e-07/0.4321, allocations: 4 kB / 1.383 GB, free: 6.352 MB / 1.107 GB Notification: Performance of remove unused functions: time 0.001436/0.4335, allocations: 0.7331 MB / 1.384 GB, free: 5.617 MB / 1.107 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 2 (heaPum.con.vol.dynBal.U,heaPum.eva.vol.dynBal.U) * 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 (55): * Single equations (assignments): 50 * 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,10)} Notification: Performance of Backend phase and start with SimCode phase: time 0.005768/0.4393, allocations: 2.62 MB / 1.387 GB, free: 2.934 MB / 1.107 GB Notification: Performance of simCode: created initialization part: time 0.00224/0.4416, allocations: 1.106 MB / 1.388 GB, free: 1.832 MB / 1.107 GB Notification: Performance of simCode: created event and clocks part: time 4.458e-06/0.4416, allocations: 4 kB / 1.388 GB, free: 1.828 MB / 1.107 GB Notification: Performance of simCode: created simulation system equations: time 0.001349/0.4429, allocations: 0.5526 MB / 1.388 GB, free: 1.262 MB / 1.107 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002946/0.4459, allocations: 0.8111 MB / 1.389 GB, free: 484 kB / 1.107 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01777/0.4637, allocations: 10.02 MB / 1.399 GB, free: 6.145 MB / 1.123 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007262/0.4644, allocations: 1.187 MB / 1.4 GB, free: 4.926 MB / 1.123 GB Notification: Performance of simCode: alias equations: time 0.0008184/0.4652, allocations: 311.6 kB / 1.4 GB, free: 4.633 MB / 1.123 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006233/0.4659, allocations: 0.5211 MB / 1.401 GB, free: 4.113 MB / 1.123 GB Notification: Performance of SimCode: time 2.2e-07/0.4659, allocations: 0 / 1.401 GB, free: 4.113 MB / 1.123 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 11.25/11.72, allocations: 43.95 MB / 1.444 GB, free: 8.789 MB / 1.17 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.95/26.67, allocations: 18.8 kB / 1.444 GB, free: 8.773 MB / 1.17 GB (rm -f Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Validation.Comparative.Carnot_y.pipe ; mkfifo Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Validation.Comparative.Carnot_y.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Validation.Comparative.Carnot_y.pipe >> ../files/Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Validation.Comparative.Carnot_y.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Validation.Comparative.Carnot_y_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_HeatPumps_ModularReversible_Validation_Comparative_Carnot_y_fmu --startTime=0 --stopTime=3600 --timeout=400 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_HeatPumps_ModularReversible_Validation_Comparative_Carnot_y.fmu > Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Validation.Comparative.Carnot_y.pipe 2>&1)