Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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.Validation.EquationFitReversible_ScalingFactor,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatPumps_Validation_EquationFitReversible_ScalingFactor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatPumps.Validation.EquationFitReversible_ScalingFactor,fileNamePrefix="Buildings_9_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.001003/0.001003, allocations: 99.55 kB / 15.05 MB, free: 1.105 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.0009536/0.0009536, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.405/1.405, allocations: 223.2 MB / 239.9 MB, free: 5.461 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.345/2.345, allocations: 390.3 MB / 0.6653 GB, free: 3.008 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.000393/0.0003932, allocations: 8 kB / 0.8146 GB, free: 14.23 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8701/0.8705, allocations: 142.3 MB / 0.9536 GB, free: 8.172 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Validation.EquationFitReversible_ScalingFactor): time 0.1037/0.9742, allocations: 96.59 MB / 1.048 GB, free: 15.37 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.029/1.003, allocations: 17.96 MB / 1.065 GB, free: 13.38 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005014/1.008, allocations: 95.38 kB / 1.066 GB, free: 13.28 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.005425/1.014, allocations: 1.427 MB / 1.067 GB, free: 11.85 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.01766/1.031, allocations: 3.715 MB / 1.071 GB, free: 8.125 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.008822/1.04, allocations: 2.699 MB / 1.073 GB, free: 5.477 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.01039/1.051, allocations: 4.76 MB / 1.078 GB, free: 0.7109 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004962/1.056, allocations: 2.015 MB / 1.08 GB, free: 14.67 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006471/1.062, allocations: 2.18 MB / 1.082 GB, free: 12.48 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003691/1.066, allocations: 1.552 MB / 1.083 GB, free: 10.92 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 0.0006406/1.067, allocations: 124 kB / 1.084 GB, free: 10.8 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005393/1.072, allocations: 1.217 MB / 1.085 GB, free: 9.582 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0009965/1.073, allocations: 0.6305 MB / 1.085 GB, free: 8.949 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.001608/1.075, allocations: 0.6641 MB / 1.086 GB, free: 8.277 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.006598/1.081, allocations: 3.865 MB / 1.09 GB, free: 4.402 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/1.081, allocations: 3.938 kB / 1.09 GB, free: 4.398 MB / 0.8419 GB Notification: Performance of FrontEnd: time 2.695e-06/1.081, allocations: 4 kB / 1.09 GB, free: 4.395 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 0.0001336/1.081, allocations: 4 kB / 1.09 GB, free: 4.391 MB / 0.8419 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.008366/1.09, allocations: 3.205 MB / 1.093 GB, free: 1.113 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 5.048e-05/1.09, allocations: 8.031 kB / 1.093 GB, free: 1.105 MB / 0.8419 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008428/1.091, allocations: 290.5 kB / 1.093 GB, free: 0.8125 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002985/1.094, allocations: 0.64 MB / 1.094 GB, free: 172 kB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00589/1.1, allocations: 2.56 MB / 1.096 GB, free: 13.54 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003008/1.1, allocations: 302.6 kB / 1.097 GB, free: 13.22 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003461/1.1, allocations: 196 kB / 1.097 GB, free: 13.03 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004835/1.105, allocations: 2.474 MB / 1.099 GB, free: 10.43 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.508e-05/1.105, allocations: 3.938 kB / 1.099 GB, free: 10.43 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002186/1.105, allocations: 91.94 kB / 1.099 GB, free: 10.34 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.409e-05/1.106, allocations: 63.98 kB / 1.099 GB, free: 10.27 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005074/1.111, allocations: 2.083 MB / 1.101 GB, free: 8.188 MB / 0.8575 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.02008/1.131, allocations: 10.94 MB / 1.112 GB, free: 12.74 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002722/1.134, allocations: 1.217 MB / 1.113 GB, free: 11.52 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001159/1.135, allocations: 1.323 MB / 1.115 GB, free: 9.898 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00215/1.137, allocations: 0.9781 MB / 1.116 GB, free: 8.871 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=115): time 3.116e-06/1.137, allocations: 0 / 1.116 GB, free: 8.871 MB / 0.8731 GB Notification: Performance of matching and sorting (n=115): time 0.005939/1.143, allocations: 2.176 MB / 1.118 GB, free: 6.684 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002585/1.143, allocations: 487.6 kB / 1.118 GB, free: 6.098 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003989/1.147, allocations: 2.529 MB / 1.121 GB, free: 3.555 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 0.0003296/1.147, allocations: 57.7 kB / 1.121 GB, free: 3.492 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.001311/1.149, allocations: 1.315 MB / 1.122 GB, free: 2.164 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005102/1.149, allocations: 402.3 kB / 1.122 GB, free: 1.766 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001024/1.149, allocations: 32 kB / 1.122 GB, free: 1.734 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001777/1.15, allocations: 357.9 kB / 1.123 GB, free: 1.379 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001664/1.151, allocations: 0.691 MB / 1.123 GB, free: 0.6875 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001999/1.153, allocations: 1.223 MB / 1.125 GB, free: 15.24 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001694/1.155, allocations: 0.8083 MB / 1.125 GB, free: 14.43 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.556e-06/1.155, allocations: 4 kB / 1.125 GB, free: 14.42 MB / 0.8887 GB Notification: Performance of matching and sorting (n=196) (initialization): time 0.004688/1.16, allocations: 2.105 MB / 1.127 GB, free: 12.3 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 0.001742/1.161, allocations: 4.328 MB / 1.132 GB, free: 7.66 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.844e-05/1.162, allocations: 8 kB / 1.132 GB, free: 7.652 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.977e-05/1.162, allocations: 20 kB / 1.132 GB, free: 7.633 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001806/1.163, allocations: 423.3 kB / 1.132 GB, free: 7.219 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.239e-05/1.163, allocations: 23.92 kB / 1.132 GB, free: 7.195 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002784/1.166, allocations: 333.7 kB / 1.132 GB, free: 6.867 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000168/1.166, allocations: 75.91 kB / 1.132 GB, free: 6.793 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 1.313e-05/1.166, allocations: 4 kB / 1.133 GB, free: 6.789 MB / 0.8887 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00403/1.17, allocations: 1.833 MB / 1.134 GB, free: 4.949 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.845e-05/1.17, allocations: 11.98 kB / 1.134 GB, free: 4.938 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.047e-05/1.171, allocations: 24.09 kB / 1.134 GB, free: 4.914 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001702/1.172, allocations: 419.4 kB / 1.135 GB, free: 4.504 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3e-05/1.172, allocations: 23.92 kB / 1.135 GB, free: 4.48 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002624/1.175, allocations: 306.1 kB / 1.135 GB, free: 4.18 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001581/1.175, allocations: 67.98 kB / 1.135 GB, free: 4.113 MB / 0.8887 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 ($whenCondition1,reaToInt.y,$PRE.uMod.T_start,uMod.T_start,$PRE.uMod.count,uMod.count) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001566/1.177, allocations: 0.6918 MB / 1.136 GB, free: 3.41 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006993/1.177, allocations: 280.5 kB / 1.136 GB, free: 3.133 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004332/1.182, allocations: 1.961 MB / 1.138 GB, free: 1.16 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.426e-05/1.182, allocations: 15.98 kB / 1.138 GB, free: 1.145 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.826e-06/1.182, allocations: 0 / 1.138 GB, free: 1.145 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003108/1.185, allocations: 1.511 MB / 1.139 GB, free: 15.59 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009452/1.194, allocations: 4.793 MB / 1.144 GB, free: 10.65 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-05/1.194, allocations: 4 kB / 1.144 GB, free: 10.65 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001364/1.196, allocations: 280.3 kB / 1.144 GB, free: 10.38 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.674e-05/1.196, allocations: 8 kB / 1.144 GB, free: 10.37 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.605e-05/1.196, allocations: 43.92 kB / 1.144 GB, free: 10.32 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.655e-05/1.196, allocations: 15.94 kB / 1.144 GB, free: 10.31 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.091e-06/1.196, allocations: 8 kB / 1.144 GB, free: 10.3 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006657/1.203, allocations: 3.376 MB / 1.148 GB, free: 6.605 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002031/1.205, allocations: 0.5909 MB / 1.148 GB, free: 5.992 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005477/1.205, allocations: 31.95 kB / 1.148 GB, free: 5.961 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001944/1.207, allocations: 175.7 kB / 1.149 GB, free: 5.789 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002724/1.207, allocations: 116.7 kB / 1.149 GB, free: 5.672 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001485/1.208, allocations: 59.95 kB / 1.149 GB, free: 5.613 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.002973/1.211, allocations: 1.751 MB / 1.15 GB, free: 3.863 MB / 0.9044 GB Notification: Performance of sort global known variables: time 4.5e-07/1.211, allocations: 0 / 1.15 GB, free: 3.863 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.004218/1.215, allocations: 1.419 MB / 1.152 GB, free: 2.441 MB / 0.9044 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.008559/1.223, allocations: 5.857 MB / 1.158 GB, free: 12.41 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.006424/1.23, allocations: 2.785 MB / 1.16 GB, free: 9.609 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 1.899e-05/1.23, allocations: 8.609 kB / 1.16 GB, free: 9.602 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.001968/1.232, allocations: 0.8543 MB / 1.161 GB, free: 8.746 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006959/1.239, allocations: 1.286 MB / 1.162 GB, free: 7.477 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01529/1.254, allocations: 14.24 MB / 1.176 GB, free: 8.668 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001649/1.256, allocations: 1.823 MB / 1.178 GB, free: 6.812 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 0.003797/1.26, allocations: 0.6953 MB / 1.179 GB, free: 6.137 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00157/1.261, allocations: 1.147 MB / 1.18 GB, free: 4.988 MB / 0.9356 GB Notification: Performance of SimCode: time 7.71e-07/1.261, allocations: 0 / 1.18 GB, free: 4.988 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6728/1.934, allocations: 74.22 MB / 1.252 GB, free: 265.8 MB / 0.9981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001601/1.934, allocations: 255.9 kB / 1.253 GB, free: 265.6 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.21/6.144, allocations: 0 / 1.253 GB, free: 265.6 MB / 0.9981 GB (rm -f Buildings_9_Buildings.Fluid.HeatPumps.Validation.EquationFitReversible_ScalingFactor.pipe ; mkfifo Buildings_9_Buildings.Fluid.HeatPumps.Validation.EquationFitReversible_ScalingFactor.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.HeatPumps.Validation.EquationFitReversible_ScalingFactor.pipe >> ../files/Buildings_9_Buildings.Fluid.HeatPumps.Validation.EquationFitReversible_ScalingFactor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.HeatPumps.Validation.EquationFitReversible_ScalingFactor_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_HeatPumps_Validation_EquationFitReversible_ScalingFactor_fmu --startTime=0 --stopTime=5000 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_HeatPumps_Validation_EquationFitReversible_ScalingFactor.fmu > Buildings_9_Buildings.Fluid.HeatPumps.Validation.EquationFitReversible_ScalingFactor.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.HeatPumps.Validation.EquationFitReversible_ScalingFactor_res.mat does not exist to compare? outputFormat=mat