Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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.Examples.EquationFitReversible,fileNamePrefix="Buildings_10_Buildings_Fluid_HeatPumps_Examples_EquationFitReversible",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatPumps.Examples.EquationFitReversible,fileNamePrefix="Buildings_10_Buildings_Fluid_HeatPumps_Examples_EquationFitReversible",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.008345/0.008345, allocations: 97.72 kB / 15.73 MB, free: 6.016 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.001952/0.001952, allocations: 192 kB / 16.67 MB, free: 5.926 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.333/1.333, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.512/2.512, allocations: 437 MB / 0.7105 GB, free: 4.355 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001361/0.001361, allocations: 63.91 kB / 1.018 GB, free: 9.879 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8205/0.8218, allocations: 151.6 MB / 1.166 GB, free: 3.754 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Examples.EquationFitReversible): time 0.06469/0.8866, allocations: 62.66 MB / 1.227 GB, free: 4.871 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.01978/0.9064, allocations: 13.64 MB / 1.241 GB, free: 7.191 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00307/0.9095, allocations: 59.69 kB / 1.241 GB, free: 7.133 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.00327/0.9129, allocations: 0.9784 MB / 1.242 GB, free: 6.148 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.007585/0.9205, allocations: 2.501 MB / 1.244 GB, free: 3.637 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.004698/0.9252, allocations: 1.641 MB / 1.246 GB, free: 2.008 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.00607/0.9313, allocations: 4.301 MB / 1.25 GB, free: 13.7 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002586/0.9339, allocations: 1.414 MB / 1.251 GB, free: 12.25 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004377/0.9383, allocations: 1.673 MB / 1.253 GB, free: 10.57 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00237/0.9407, allocations: 1.292 MB / 1.254 GB, free: 9.277 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 0.0006368/0.9414, allocations: 176 kB / 1.254 GB, free: 9.105 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003702/0.9451, allocations: 1.427 MB / 1.256 GB, free: 7.676 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0008397/0.946, allocations: 0.5023 MB / 1.256 GB, free: 7.172 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.00233/0.9483, allocations: 1.011 MB / 1.257 GB, free: 6.156 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.006918/0.9552, allocations: 3.18 MB / 1.26 GB, free: 2.969 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 8.416e-06/0.9553, allocations: 7.938 kB / 1.26 GB, free: 2.961 MB / 0.9825 GB Notification: Performance of FrontEnd: time 2.355e-06/0.9553, allocations: 0 / 1.26 GB, free: 2.961 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 9.255e-05/0.9554, allocations: 0 / 1.26 GB, free: 2.961 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: 265 * Number of variables: 265 Notification: Performance of Generate backend data structure: time 0.00611/0.9615, allocations: 2.397 MB / 1.263 GB, free: 0.5 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 5.038e-05/0.9616, allocations: 16.56 kB / 1.263 GB, free: 496 kB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000361/0.962, allocations: 168.8 kB / 1.263 GB, free: 316 kB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001681/0.9637, allocations: 325.2 kB / 1.263 GB, free: 15.99 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003127/0.9668, allocations: 1.49 MB / 1.265 GB, free: 14.45 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002202/0.9671, allocations: 161.5 kB / 1.265 GB, free: 14.28 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002809/0.9674, allocations: 108 kB / 1.265 GB, free: 14.17 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003307/0.9707, allocations: 1.438 MB / 1.266 GB, free: 12.64 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.719e-05/0.9707, allocations: 0 / 1.266 GB, free: 12.64 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001706/0.9709, allocations: 47.94 kB / 1.266 GB, free: 12.6 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.853e-05/0.971, allocations: 39.98 kB / 1.266 GB, free: 12.56 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003402/0.9744, allocations: 1.335 MB / 1.268 GB, free: 11.23 MB / 0.9981 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.01017/0.9846, allocations: 6.652 MB / 1.274 GB, free: 4.129 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002382/0.987, allocations: 1.169 MB / 1.275 GB, free: 2.879 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001376/0.9884, allocations: 0.5671 MB / 1.276 GB, free: 2.312 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008509/0.9893, allocations: 1.148 MB / 1.277 GB, free: 0.9062 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.658e-05/0.9894, allocations: 47.2 kB / 1.277 GB, free: 0.8516 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=77): time 3.868e-06/0.9894, allocations: 0 / 1.277 GB, free: 0.8516 MB / 0.9981 GB Notification: Performance of matching and sorting (n=77): time 0.004709/0.9941, allocations: 1.598 MB / 1.279 GB, free: 15.25 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.247e-05/0.9942, allocations: 111.5 kB / 1.279 GB, free: 15.11 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002376/0.9966, allocations: 1.412 MB / 1.28 GB, free: 13.69 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 0.0002108/0.9968, allocations: 37.7 kB / 1.28 GB, free: 13.65 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007587/0.9976, allocations: 0.7291 MB / 1.281 GB, free: 12.91 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004562/0.9981, allocations: 269.7 kB / 1.281 GB, free: 12.64 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004527/0.9985, allocations: 182.5 kB / 1.281 GB, free: 12.46 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001488/0.9987, allocations: 337.9 kB / 1.282 GB, free: 12.12 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001406/1, allocations: 0.4966 MB / 1.282 GB, free: 11.62 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001558/1.002, allocations: 0.719 MB / 1.283 GB, free: 10.82 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002749/1.004, allocations: 1.125 MB / 1.284 GB, free: 9.625 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.897e-06/1.004, allocations: 8 kB / 1.284 GB, free: 9.617 MB / 1.014 GB Notification: Performance of matching and sorting (n=109) (initialization): time 0.003666/1.008, allocations: 1.359 MB / 1.285 GB, free: 8.25 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 3.431e-05/1.008, allocations: 8 kB / 1.285 GB, free: 8.242 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.385e-05/1.008, allocations: 7.984 kB / 1.285 GB, free: 8.234 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.677e-05/1.008, allocations: 12 kB / 1.285 GB, free: 8.223 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001255/1.01, allocations: 276.1 kB / 1.285 GB, free: 7.953 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.478e-05/1.01, allocations: 8 kB / 1.285 GB, free: 7.945 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00143/1.011, allocations: 163.2 kB / 1.286 GB, free: 7.785 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001303/1.011, allocations: 39.98 kB / 1.286 GB, free: 7.746 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001901/1.013, allocations: 0.7985 MB / 1.286 GB, free: 6.941 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001494/1.015, allocations: 0.7191 MB / 1.287 GB, free: 6.133 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002803/1.017, allocations: 1.121 MB / 1.288 GB, free: 4.953 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.573e-06/1.017, allocations: 0 / 1.288 GB, free: 4.953 MB / 1.014 GB Notification: Performance of matching and sorting (n=109) (initialization_lambda0): time 0.00379/1.021, allocations: 1.359 MB / 1.29 GB, free: 3.582 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 1.912e-05/1.021, allocations: 8.5 kB / 1.29 GB, free: 3.574 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.178e-06/1.021, allocations: 12 kB / 1.29 GB, free: 3.562 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.278e-05/1.021, allocations: 8 kB / 1.29 GB, free: 3.555 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00124/1.023, allocations: 267.6 kB / 1.29 GB, free: 3.293 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.833e-05/1.023, allocations: 11.98 kB / 1.29 GB, free: 3.281 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001647/1.024, allocations: 139.4 kB / 1.29 GB, free: 3.145 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001178/1.024, allocations: 39.98 kB / 1.29 GB, free: 3.105 MB / 1.014 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 2 (intGreThr.y,reaToInt.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (109): * Single equations (assignments): 109 * Array equations: 0 * Algorithm blocks: 0 * 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.0003918/1.025, allocations: 232 kB / 1.29 GB, free: 2.871 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005487/1.025, allocations: 170.9 kB / 1.29 GB, free: 2.703 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003558/1.029, allocations: 1.47 MB / 1.292 GB, free: 1.203 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.152e-05/1.029, allocations: 11.98 kB / 1.292 GB, free: 1.191 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.021e-05/1.029, allocations: 3.984 kB / 1.292 GB, free: 1.188 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002529/1.032, allocations: 1.109 MB / 1.293 GB, free: 48 kB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006549/1.038, allocations: 3.098 MB / 1.296 GB, free: 12.83 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.098e-05/1.038, allocations: 4 kB / 1.296 GB, free: 12.83 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009866/1.039, allocations: 184.2 kB / 1.296 GB, free: 12.65 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.533e-05/1.039, allocations: 15.94 kB / 1.296 GB, free: 12.63 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.352e-05/1.039, allocations: 31.98 kB / 1.296 GB, free: 12.6 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.196e-05/1.039, allocations: 8 kB / 1.296 GB, free: 12.59 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.492e-06/1.039, allocations: 4 kB / 1.296 GB, free: 12.59 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004686/1.044, allocations: 2.084 MB / 1.298 GB, free: 10.43 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009699/1.045, allocations: 391.6 kB / 1.299 GB, free: 10.03 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004475/1.045, allocations: 20.06 kB / 1.299 GB, free: 10.01 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001475/1.047, allocations: 103.8 kB / 1.299 GB, free: 9.906 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001968/1.047, allocations: 84.34 kB / 1.299 GB, free: 9.82 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001283/1.047, allocations: 47.95 kB / 1.299 GB, free: 9.773 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.001926/1.049, allocations: 1.079 MB / 1.3 GB, free: 8.699 MB / 1.029 GB Notification: Performance of sort global known variables: time 4.11e-07/1.049, allocations: 0 / 1.3 GB, free: 8.699 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.002692/1.052, allocations: 0.8071 MB / 1.301 GB, free: 7.891 MB / 1.029 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 2 (heaPum.vol1.dynBal.U,heaPum.vol2.dynBal.U) * Number of discrete variables: 2 (reaToInt.y,intGreThr.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (75): * Single equations (assignments): 71 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * 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.006156/1.058, allocations: 2.982 MB / 1.304 GB, free: 4.84 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.00482/1.063, allocations: 1.818 MB / 1.305 GB, free: 3.027 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.413e-05/1.063, allocations: 4 kB / 1.305 GB, free: 3.023 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.001751/1.065, allocations: 0.6327 MB / 1.306 GB, free: 2.391 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004808/1.07, allocations: 0.8265 MB / 1.307 GB, free: 1.574 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02296/1.093, allocations: 12.53 MB / 1.319 GB, free: 4.598 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008957/1.094, allocations: 1.277 MB / 1.32 GB, free: 3.293 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 0.001795/1.095, allocations: 392.3 kB / 1.321 GB, free: 2.902 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009972/1.096, allocations: 0.6203 MB / 1.321 GB, free: 2.281 MB / 1.045 GB Notification: Performance of SimCode: time 7.62e-07/1.096, allocations: 0 / 1.321 GB, free: 2.281 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08302/1.179, allocations: 46.94 MB / 1.367 GB, free: 3.789 MB / 1.092 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.7/11.88, allocations: 3.984 kB / 1.367 GB, free: 3.785 MB / 1.092 GB (rm -f Buildings_10_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.pipe ; mkfifo Buildings_10_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.pipe >> ../files/Buildings_10_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_res.csv --start-time 0 --stop-time 14400 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 5.76 Buildings_10_Buildings_Fluid_HeatPumps_Examples_EquationFitReversible.fmu > Buildings_10_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_HeatPumps_Examples_EquationFitReversible.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches