Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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: translateModel(Buildings.Fluid.HeatPumps.Validation.EquationFitReversible_ScalingFactor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|heaPum1.QLoa_flow|heaPum.QLoa_flow|heaPum1.P|heaPum.P|capErr.y|heaPum1.COP|heaPum.COP|heaPum1.dp1|heaPum.dp2",fileNamePrefix="Buildings_latest_Buildings.Fluid.HeatPumps.Validation.EquationFitReversible_ScalingFactor") translateModel(Buildings.Fluid.HeatPumps.Validation.EquationFitReversible_ScalingFactor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|heaPum1.QLoa_flow|heaPum.QLoa_flow|heaPum1.P|heaPum.P|capErr.y|heaPum1.COP|heaPum.COP|heaPum1.dp1|heaPum.dp2",fileNamePrefix="Buildings_latest_Buildings.Fluid.HeatPumps.Validation.EquationFitReversible_ScalingFactor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001014/0.001014, allocations: 99.34 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001531/0.001531, allocations: 181.5 kB / 16.92 MB, free: 6.918 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.422/1.422, allocations: 223.3 MB / 241 MB, free: 5.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.721/2.721, allocations: 462.6 MB / 0.7371 GB, free: 15.54 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0005222/0.0005226, allocations: 9.969 kB / 0.9034 GB, free: 36.45 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3814/0.3819, allocations: 159.6 MB / 1.059 GB, free: 4.949 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Validation.EquationFitReversible_ScalingFactor): time 0.1241/0.5061, allocations: 113 MB / 1.17 GB, free: 3.57 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.03351/0.5397, allocations: 20.74 MB / 1.19 GB, free: 14.77 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005092/0.5448, allocations: 99.38 kB / 1.19 GB, free: 14.67 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.005374/0.5502, allocations: 1.379 MB / 1.191 GB, free: 13.29 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.01226/0.5625, allocations: 3.681 MB / 1.195 GB, free: 9.59 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.008487/0.5711, allocations: 2.633 MB / 1.198 GB, free: 6.988 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.01451/0.5856, allocations: 10.42 MB / 1.208 GB, free: 12.55 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.005054/0.5907, allocations: 2.209 MB / 1.21 GB, free: 10.29 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006891/0.5976, allocations: 2.461 MB / 1.212 GB, free: 7.812 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004716/0.6024, allocations: 2.256 MB / 1.214 GB, free: 5.547 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 0.00118/0.6036, allocations: 140 kB / 1.215 GB, free: 5.41 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005891/0.6095, allocations: 1.816 MB / 1.216 GB, free: 3.59 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.00167/0.6112, allocations: 0.7353 MB / 1.217 GB, free: 2.852 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.004116/0.6154, allocations: 1.649 MB / 1.219 GB, free: 1.188 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.007085/0.6225, allocations: 4.2 MB / 1.223 GB, free: 12.98 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 6.713e-06/0.6225, allocations: 0 / 1.223 GB, free: 12.98 MB / 0.9825 GB Notification: Performance of FrontEnd: time 3.516e-06/0.6225, allocations: 0 / 1.223 GB, free: 12.98 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 0.0001811/0.6227, allocations: 4 kB / 1.223 GB, free: 12.97 MB / 0.9825 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.008973/0.6317, allocations: 3.234 MB / 1.226 GB, free: 9.668 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 5.102e-05/0.6318, allocations: 12.03 kB / 1.226 GB, free: 9.656 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003696/0.6355, allocations: 0.6485 MB / 1.227 GB, free: 9.004 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006473/0.642, allocations: 2.585 MB / 1.229 GB, free: 6.348 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005337/0.6426, allocations: 306.6 kB / 1.229 GB, free: 6.023 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007426/0.6433, allocations: 200 kB / 1.23 GB, free: 5.828 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006835/0.6502, allocations: 2.602 MB / 1.232 GB, free: 3.102 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.535e-05/0.6503, allocations: 11.84 kB / 1.232 GB, free: 3.09 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003705/0.6507, allocations: 84 kB / 1.232 GB, free: 3.008 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.129e-05/0.6508, allocations: 67.94 kB / 1.232 GB, free: 2.941 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005901/0.6567, allocations: 2.293 MB / 1.235 GB, free: 0.6445 MB / 0.9825 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.01914/0.6758, allocations: 11.48 MB / 1.246 GB, free: 4.672 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003203/0.6791, allocations: 1.359 MB / 1.247 GB, free: 3.297 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001936/0.6811, allocations: 0.8508 MB / 1.248 GB, free: 2.445 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001091/0.6822, allocations: 1.327 MB / 1.249 GB, free: 0.8242 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.615/1.297, allocations: 1.084 MB / 1.25 GB, free: 182.5 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=115): time 6.682e-06/1.297, allocations: 2.625 kB / 1.25 GB, free: 182.5 MB / 0.9981 GB Notification: Performance of matching and sorting (n=115): time 0.007195/1.304, allocations: 2.496 MB / 1.253 GB, free: 182.4 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001542/1.305, allocations: 486.8 kB / 1.253 GB, free: 181.8 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004051/1.309, allocations: 2.675 MB / 1.256 GB, free: 181.6 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.000293/1.309, allocations: 60.73 kB / 1.256 GB, free: 181.6 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.00103/1.31, allocations: 1.31 MB / 1.257 GB, free: 181.3 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004224/1.31, allocations: 410.7 kB / 1.258 GB, free: 181 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001917/1.311, allocations: 132 kB / 1.258 GB, free: 181 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 5.409e-05/1.311, allocations: 304.9 kB / 1.258 GB, free: 180.7 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001741/1.312, allocations: 0.8062 MB / 1.259 GB, free: 180.7 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002168/1.315, allocations: 1.345 MB / 1.26 GB, free: 180.1 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003855/1.319, allocations: 1.932 MB / 1.262 GB, free: 179.7 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.977e-06/1.319, allocations: 5.469 kB / 1.262 GB, free: 179.7 MB / 0.9981 GB Notification: Performance of matching and sorting (n=196) (initialization): time 0.005219/1.324, allocations: 2.333 MB / 1.264 GB, free: 179.4 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002723/1.324, allocations: 424.1 kB / 1.265 GB, free: 178.9 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.298e-05/1.324, allocations: 10.22 kB / 1.265 GB, free: 178.9 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.178e-05/1.324, allocations: 17.78 kB / 1.265 GB, free: 178.9 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001983/1.326, allocations: 431.6 kB / 1.265 GB, free: 178.9 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.274e-05/1.326, allocations: 23.14 kB / 1.265 GB, free: 178.9 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003038/1.329, allocations: 332.9 kB / 1.265 GB, free: 178.8 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002178/1.329, allocations: 73.38 kB / 1.265 GB, free: 178.8 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.357e-05/1.33, allocations: 4.938 kB / 1.265 GB, free: 178.8 MB / 0.9981 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005245/1.335, allocations: 2.057 MB / 1.267 GB, free: 178.7 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.028e-05/1.335, allocations: 9.984 kB / 1.267 GB, free: 178.7 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.841e-05/1.335, allocations: 17.56 kB / 1.268 GB, free: 178.7 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00187/1.337, allocations: 429.4 kB / 1.268 GB, free: 178.7 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.28e-05/1.337, allocations: 24.97 kB / 1.268 GB, free: 178.6 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002868/1.34, allocations: 314.4 kB / 1.268 GB, free: 178.6 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001931/1.34, allocations: 70.09 kB / 1.268 GB, free: 178.6 MB / 0.9981 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.001922/1.342, allocations: 0.6863 MB / 1.269 GB, free: 178.3 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009073/1.343, allocations: 285.8 kB / 1.269 GB, free: 178.2 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006074/1.349, allocations: 2.171 MB / 1.271 GB, free: 177.8 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.309e-05/1.349, allocations: 17.89 kB / 1.271 GB, free: 177.8 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.489e-05/1.349, allocations: 4.969 kB / 1.271 GB, free: 177.8 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003747/1.353, allocations: 1.721 MB / 1.273 GB, free: 177 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01159/1.364, allocations: 5.272 MB / 1.278 GB, free: 174.5 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.917e-05/1.364, allocations: 6.531 kB / 1.278 GB, free: 174.5 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001478/1.366, allocations: 285.3 kB / 1.279 GB, free: 174.5 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.008e-05/1.366, allocations: 14.47 kB / 1.279 GB, free: 174.5 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001436/1.366, allocations: 41.69 kB / 1.279 GB, free: 174.5 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.42e-05/1.366, allocations: 11.8 kB / 1.279 GB, free: 174.5 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.538e-06/1.366, allocations: 10.78 kB / 1.279 GB, free: 174.4 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007147/1.373, allocations: 3.208 MB / 1.282 GB, free: 172.9 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002006/1.375, allocations: 0.6262 MB / 1.282 GB, free: 172.5 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009657/1.376, allocations: 32.67 kB / 1.282 GB, free: 172.5 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002637/1.379, allocations: 179.3 kB / 1.283 GB, free: 172.4 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000344/1.379, allocations: 120.2 kB / 1.283 GB, free: 172.4 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002378/1.379, allocations: 61.48 kB / 1.283 GB, free: 172.4 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.005019/1.385, allocations: 1.859 MB / 1.285 GB, free: 171.7 MB / 0.9981 GB Notification: Performance of sort global known variables: time 9.32e-07/1.385, allocations: 0 / 1.285 GB, free: 171.7 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.007016/1.392, allocations: 1.434 MB / 1.286 GB, free: 171.5 MB / 0.9981 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.00211/1.394, allocations: 0.6502 MB / 1.287 GB, free: 171.3 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.007861/1.402, allocations: 3.118 MB / 1.29 GB, free: 170.1 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.653e-05/1.402, allocations: 3.125 kB / 1.29 GB, free: 170.1 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.002247/1.404, allocations: 0.9186 MB / 1.29 GB, free: 169.8 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01049/1.414, allocations: 1.397 MB / 1.292 GB, free: 169.4 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009631/1.424, allocations: 6.004 MB / 1.298 GB, free: 165.8 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001414/1.426, allocations: 1.757 MB / 1.299 GB, free: 164.7 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001366/1.427, allocations: 244.9 kB / 1.3 GB, free: 164.6 MB / 0.9981 GB Notification: Performance of SimCode: time 1.022e-06/1.427, allocations: 0 / 1.3 GB, free: 164.6 MB / 0.9981 GB Notification: Performance of Templates: time 0.06414/1.491, allocations: 48.79 MB / 1.347 GB, free: 118.8 MB / 0.9981 GB make -j1 -f Buildings_latest_Buildings.Fluid.HeatPumps.Validation.EquationFitReversible_ScalingFactor.makefile (rm -f Buildings_latest_Buildings.Fluid.HeatPumps.Validation.EquationFitReversible_ScalingFactor.pipe ; mkfifo Buildings_latest_Buildings.Fluid.HeatPumps.Validation.EquationFitReversible_ScalingFactor.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.HeatPumps.Validation.EquationFitReversible_ScalingFactor.pipe >> ../files/Buildings_latest_Buildings.Fluid.HeatPumps.Validation.EquationFitReversible_ScalingFactor.sim & ./Buildings_latest_Buildings.Fluid.HeatPumps.Validation.EquationFitReversible_ScalingFactor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.HeatPumps.Validation.EquationFitReversible_ScalingFactor.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.HeatPumps.Validation.EquationFitReversible_ScalingFactor_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_HeatPumps_Validation_EquationFitReversible_ScalingFactor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.HeatPumps.Validation.EquationFitReversible_ScalingFactor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches