Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.HeatPumps.Validation.EquationFitReversible_ScalingFactor.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 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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: "" <> buildModelFMU(Buildings.Fluid.HeatPumps.Validation.EquationFitReversible_ScalingFactor,fileNamePrefix="Buildings_8_Buildings_Fluid_HeatPumps_Validation_EquationFitReversible_ScalingFactor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatPumps.Validation.EquationFitReversible_ScalingFactor,fileNamePrefix="Buildings_8_Buildings_Fluid_HeatPumps_Validation_EquationFitReversible_ScalingFactor",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.001043/0.001043, allocations: 99.38 kB / 15.37 MB, free: 0.707 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.0009028/0.0009029, allocations: 181.8 kB / 16.28 MB, free: 6.656 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.271/1.271, allocations: 205.4 MB / 222.5 MB, free: 5.562 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.495/1.495, allocations: 292.7 MB / 0.5503 GB, free: 14.46 MB / 462.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.0004387/0.0004388, allocations: 15.22 kB / 0.6744 GB, free: 25.96 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1624/0.1628, allocations: 116.3 MB / 0.788 GB, free: 11.48 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Validation.EquationFitReversible_ScalingFactor): time 0.08852/0.2514, allocations: 112.9 MB / 0.8983 GB, free: 10.17 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.3242/0.5756, allocations: 20.56 MB / 0.9184 GB, free: 39.5 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002317/0.578, allocations: 98.97 kB / 0.9185 GB, free: 39.5 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.002483/0.5804, allocations: 1.373 MB / 0.9198 GB, free: 39.48 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.006446/0.5869, allocations: 3.646 MB / 0.9234 GB, free: 39.33 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.004631/0.5915, allocations: 2.636 MB / 0.9259 GB, free: 39.25 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.008633/0.6002, allocations: 10.33 MB / 0.936 GB, free: 38.92 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002795/0.603, allocations: 2.202 MB / 0.9382 GB, free: 38.56 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003442/0.6064, allocations: 2.476 MB / 0.9406 GB, free: 38.24 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001968/0.6084, allocations: 2.252 MB / 0.9428 GB, free: 37.84 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 0.000258/0.6087, allocations: 135.2 kB / 0.9429 GB, free: 37.84 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00331/0.612, allocations: 1.81 MB / 0.9447 GB, free: 37.66 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0005232/0.6125, allocations: 0.743 MB / 0.9454 GB, free: 37.52 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.001306/0.6138, allocations: 1.642 MB / 0.947 GB, free: 36.98 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.00415/0.618, allocations: 5.249 MB / 0.9522 GB, free: 36.02 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.146e-06/0.618, allocations: 2.25 kB / 0.9522 GB, free: 36.02 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.583e-06/0.618, allocations: 0 / 0.9522 GB, free: 36.02 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 2.866e-05/0.6181, allocations: 0 / 0.9522 GB, free: 36.02 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: 494 * Number of variables: 494 Notification: Performance of Generate backend data structure: time 0.004368/0.6224, allocations: 3.209 MB / 0.9553 GB, free: 34.01 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.126e-05/0.6225, allocations: 10 kB / 0.9553 GB, free: 34.01 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002735/0.6227, allocations: 295.1 kB / 0.9556 GB, free: 33.91 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002117/0.6249, allocations: 0.6426 MB / 0.9562 GB, free: 33.63 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002661/0.6275, allocations: 2.56 MB / 0.9587 GB, free: 32.48 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001938/0.6277, allocations: 302.8 kB / 0.959 GB, free: 32.34 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002372/0.628, allocations: 204.6 kB / 0.9592 GB, free: 32.34 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003385/0.6314, allocations: 2.604 MB / 0.9617 GB, free: 31.47 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.823e-05/0.6314, allocations: 6.688 kB / 0.9617 GB, free: 31.46 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001773/0.6316, allocations: 84.72 kB / 0.9618 GB, free: 31.46 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.52e-05/0.6317, allocations: 64.14 kB / 0.9619 GB, free: 31.46 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003514/0.6352, allocations: 2.293 MB / 0.9641 GB, free: 30.4 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.008747/0.6439, allocations: 11.48 MB / 0.9753 GB, free: 20.82 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002128/0.6461, allocations: 1.351 MB / 0.9766 GB, free: 20.14 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001321/0.6474, allocations: 0.849 MB / 0.9775 GB, free: 19.71 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005273/0.6479, allocations: 1.325 MB / 0.9788 GB, free: 18.16 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001576/0.6495, allocations: 1.099 MB / 0.9798 GB, free: 17.46 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=115): time 2.535e-06/0.6495, allocations: 0 / 0.9798 GB, free: 17.46 MB / 0.7169 GB Notification: Performance of matching and sorting (n=115): time 0.004204/0.6537, allocations: 2.494 MB / 0.9823 GB, free: 16.22 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.42e-05/0.6538, allocations: 482.5 kB / 0.9827 GB, free: 15.66 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002357/0.6562, allocations: 2.66 MB / 0.9853 GB, free: 14.25 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 0.0001159/0.6563, allocations: 56.08 kB / 0.9854 GB, free: 14.2 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006605/0.657, allocations: 1.314 MB / 0.9867 GB, free: 13.04 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002302/0.6572, allocations: 405 kB / 0.9871 GB, free: 12.7 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000148/0.6574, allocations: 128.7 kB / 0.9872 GB, free: 12.62 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 2.819e-05/0.6574, allocations: 312.3 kB / 0.9875 GB, free: 12.31 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001371/0.6588, allocations: 0.8034 MB / 0.9883 GB, free: 11.9 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001555/0.6603, allocations: 1.341 MB / 0.9896 GB, free: 10.82 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002715/0.6631, allocations: 1.938 MB / 0.9915 GB, free: 9.566 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.111e-06/0.6631, allocations: 3.375 kB / 0.9915 GB, free: 9.566 MB / 0.7169 GB Notification: Performance of matching and sorting (n=196) (initialization): time 0.003483/0.6666, allocations: 2.334 MB / 0.9937 GB, free: 7.754 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001057/0.6667, allocations: 431.5 kB / 0.9942 GB, free: 7.188 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.034e-05/0.6667, allocations: 8 kB / 0.9942 GB, free: 7.18 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.937e-05/0.6667, allocations: 20 kB / 0.9942 GB, free: 7.16 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001459/0.6682, allocations: 427.3 kB / 0.9946 GB, free: 6.742 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.753e-05/0.6682, allocations: 27.92 kB / 0.9946 GB, free: 6.715 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001787/0.67, allocations: 345.1 kB / 0.995 GB, free: 6.379 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001094/0.6701, allocations: 63.98 kB / 0.995 GB, free: 6.316 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 4.809e-06/0.6701, allocations: 4 kB / 0.995 GB, free: 6.312 MB / 0.7169 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003184/0.6733, allocations: 2.055 MB / 0.997 GB, free: 4.25 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.097e-06/0.6734, allocations: 16.19 kB / 0.997 GB, free: 4.234 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.778e-06/0.6734, allocations: 16 kB / 0.9971 GB, free: 4.219 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001426/0.6748, allocations: 431.3 kB / 0.9975 GB, free: 3.797 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.376e-05/0.6748, allocations: 23.94 kB / 0.9975 GB, free: 3.773 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00161/0.6764, allocations: 310 kB / 0.9978 GB, free: 3.469 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001047/0.6766, allocations: 71.97 kB / 0.9979 GB, free: 3.398 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 45 * Number of states: 0 () * Number of discrete variables: 6 (uMod.count,$PRE.uMod.count,uMod.T_start,$PRE.uMod.T_start,reaToInt.y,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (195): * Single equations (assignments): 194 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006878/0.6772, allocations: 0.6802 MB / 0.9985 GB, free: 2.707 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002719/0.6775, allocations: 276.7 kB / 0.9988 GB, free: 2.434 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00334/0.6809, allocations: 2.171 MB / 1.001 GB, free: 272 kB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.273e-05/0.6809, allocations: 16 kB / 1.001 GB, free: 256 kB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/0.6809, allocations: 0 / 1.001 GB, free: 256 kB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003015/0.6839, allocations: 1.731 MB / 1.003 GB, free: 14.49 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00708/0.691, allocations: 5.276 MB / 1.008 GB, free: 9.129 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.717e-06/0.691, allocations: 8 kB / 1.008 GB, free: 9.121 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001213/0.6922, allocations: 284.3 kB / 1.008 GB, free: 8.844 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.807e-06/0.6923, allocations: 8 kB / 1.008 GB, free: 8.836 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.622e-05/0.6924, allocations: 39.97 kB / 1.008 GB, free: 8.797 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.099e-05/0.6924, allocations: 19.94 kB / 1.008 GB, free: 8.777 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.218e-06/0.6924, allocations: 4 kB / 1.008 GB, free: 8.773 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005109/0.6975, allocations: 3.191 MB / 1.011 GB, free: 5.527 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007944/0.6983, allocations: 0.6338 MB / 1.012 GB, free: 4.871 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002999/0.6986, allocations: 32 kB / 1.012 GB, free: 4.84 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001604/0.7002, allocations: 188 kB / 1.012 GB, free: 4.66 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002034/0.7004, allocations: 116.7 kB / 1.012 GB, free: 4.547 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00011/0.7006, allocations: 71.88 kB / 1.012 GB, free: 4.477 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.002031/0.7026, allocations: 1.848 MB / 1.014 GB, free: 2.629 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.4e-07/0.7026, allocations: 0 / 1.014 GB, free: 2.629 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.002676/0.7053, allocations: 1.431 MB / 1.015 GB, free: 1.195 MB / 0.7325 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 4 (heaPum.vol1.dynBal.U,heaPum.vol2.dynBal.U,heaPum1.vol1.dynBal.U,heaPum1.vol2.dynBal.U) * Number of discrete variables: 4 ($whenCondition1,reaToInt.y,uMod.T_start,uMod.count) * Number of discrete states: 1 (uMod.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (117): * Single equations (assignments): 109 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.006163/0.7115, allocations: 4.284 MB / 1.02 GB, free: 12.87 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0051/0.7166, allocations: 3.121 MB / 1.023 GB, free: 9.723 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 5.29e-06/0.7166, allocations: 4.438 kB / 1.023 GB, free: 9.719 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.001692/0.7183, allocations: 0.9639 MB / 1.024 GB, free: 8.758 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00703/0.7253, allocations: 1.406 MB / 1.025 GB, free: 7.371 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03635/0.7617, allocations: 25.49 MB / 1.05 GB, free: 11.77 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00112/0.7628, allocations: 1.759 MB / 1.052 GB, free: 9.98 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.002429/0.7653, allocations: 0.7056 MB / 1.052 GB, free: 9.297 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0014/0.7667, allocations: 1.171 MB / 1.053 GB, free: 8.125 MB / 0.7794 GB Notification: Performance of SimCode: time 4.01e-07/0.7667, allocations: 0 / 1.053 GB, free: 8.125 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.318/4.085, allocations: 80.59 MB / 1.132 GB, free: 8.426 MB / 0.8575 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000279/4.085, allocations: 263.3 kB / 1.132 GB, free: 8.07 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.922/8.007, allocations: 0 / 1.132 GB, free: 8.07 MB / 0.8575 GB (rm -f Buildings_8_Buildings.Fluid.HeatPumps.Validation.EquationFitReversible_ScalingFactor.pipe ; mkfifo Buildings_8_Buildings.Fluid.HeatPumps.Validation.EquationFitReversible_ScalingFactor.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.HeatPumps.Validation.EquationFitReversible_ScalingFactor.pipe >> ../files/Buildings_8_Buildings.Fluid.HeatPumps.Validation.EquationFitReversible_ScalingFactor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Fluid_HeatPumps_Validation_EquationFitReversible_ScalingFactor_fmu --startTime=0 --stopTime=5000 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Fluid_HeatPumps_Validation_EquationFitReversible_ScalingFactor.fmu > Buildings_8_Buildings.Fluid.HeatPumps.Validation.EquationFitReversible_ScalingFactor.pipe 2>&1)