Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.HeatPumps.BaseClasses.Validation.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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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: translateModel(Buildings.Fluid.HeatPumps.BaseClasses.Validation.EquationFitReversible,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|equFit.QLoa_flow|equFit.QSou_flow",fileNamePrefix="Buildings_9_Buildings.Fluid.HeatPumps.BaseClasses.Validation.EquationFitReversible") translateModel(Buildings.Fluid.HeatPumps.BaseClasses.Validation.EquationFitReversible,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|equFit.QLoa_flow|equFit.QSou_flow",fileNamePrefix="Buildings_9_Buildings.Fluid.HeatPumps.BaseClasses.Validation.EquationFitReversible") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001252/0.001252, allocations: 99.86 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.00143/0.00143, allocations: 177.3 kB / 15.94 MB, free: 228 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.334/1.334, allocations: 223.2 MB / 239.9 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.386/2.386, allocations: 390.2 MB / 0.6653 GB, free: 2.918 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003933/0.0003935, allocations: 8 kB / 0.8145 GB, free: 14.27 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6765/0.6769, allocations: 142.3 MB / 0.9535 GB, free: 8.277 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.BaseClasses.Validation.EquationFitReversible): time 0.002091/0.679, allocations: 1.936 MB / 0.9554 GB, free: 6.762 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.00142/0.6805, allocations: 1.236 MB / 0.9566 GB, free: 5.785 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001114/0.6806, allocations: 7.469 kB / 0.9566 GB, free: 5.781 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0004149/0.681, allocations: 184.2 kB / 0.9568 GB, free: 5.648 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001185/0.6812, allocations: 83.64 kB / 0.9569 GB, free: 5.578 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002384/0.6814, allocations: 84.58 kB / 0.9569 GB, free: 5.516 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002166/0.6816, allocations: 206 kB / 0.9571 GB, free: 5.387 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001081/0.6817, allocations: 44.66 kB / 0.9572 GB, free: 5.367 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001609/0.6819, allocations: 122.4 kB / 0.9573 GB, free: 5.297 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002226/0.6821, allocations: 173.4 kB / 0.9575 GB, free: 5.191 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.987e-05/0.6822, allocations: 18.47 kB / 0.9575 GB, free: 5.191 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001144/0.6823, allocations: 55.14 kB / 0.9575 GB, free: 5.172 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.000102/0.6824, allocations: 105.2 kB / 0.9576 GB, free: 5.102 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 6.573e-05/0.6825, allocations: 93.48 kB / 0.9577 GB, free: 5.027 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002805/0.6828, allocations: 371.5 kB / 0.9581 GB, free: 4.762 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.585e-06/0.6828, allocations: 0 / 0.9581 GB, free: 4.762 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.472e-06/0.6828, allocations: 0 / 0.9581 GB, free: 4.762 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.42e-06/0.6828, allocations: 0 / 0.9581 GB, free: 4.762 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: 27 * Number of variables: 27 Notification: Performance of Generate backend data structure: time 0.001073/0.6839, allocations: 0.6629 MB / 0.9587 GB, free: 4.195 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.321e-05/0.6839, allocations: 9 kB / 0.9587 GB, free: 4.195 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008734/0.6848, allocations: 177.4 kB / 0.9589 GB, free: 4.121 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000391/0.6852, allocations: 339.1 kB / 0.9592 GB, free: 3.809 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.875e-05/0.6853, allocations: 86.86 kB / 0.9593 GB, free: 3.727 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.029e-05/0.6854, allocations: 16.25 kB / 0.9593 GB, free: 3.719 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007144/0.6861, allocations: 310.4 kB / 0.9596 GB, free: 3.539 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.827e-06/0.6861, allocations: 0.9062 kB / 0.9596 GB, free: 3.539 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.213e-05/0.6861, allocations: 9.172 kB / 0.9596 GB, free: 3.531 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.753e-06/0.6861, allocations: 6.391 kB / 0.9596 GB, free: 3.527 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001115/0.6873, allocations: 464.5 kB / 0.9601 GB, free: 3.312 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001586/0.6889, allocations: 0.8786 MB / 0.9609 GB, free: 2.598 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006444/0.6895, allocations: 295.9 kB / 0.9612 GB, free: 2.438 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 3.118e-05/0.6896, allocations: 2.031 kB / 0.9612 GB, free: 2.438 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.563e-05/0.6896, allocations: 35.59 kB / 0.9613 GB, free: 2.395 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=18): time 1.623e-06/0.6896, allocations: 1 kB / 0.9613 GB, free: 2.395 MB / 0.7169 GB Notification: Performance of matching and sorting (n=18): time 0.001787/0.6914, allocations: 0.7044 MB / 0.9619 GB, free: 2.039 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.056e-05/0.6914, allocations: 57.44 kB / 0.962 GB, free: 1.973 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004166/0.6918, allocations: 423.1 kB / 0.9624 GB, free: 1.715 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 3.292e-05/0.6919, allocations: 31.23 kB / 0.9624 GB, free: 1.68 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 9.137e-05/0.692, allocations: 181.5 kB / 0.9626 GB, free: 1.516 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 5.229e-05/0.692, allocations: 58.42 kB / 0.9627 GB, free: 1.465 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.227e-05/0.6921, allocations: 5.375 kB / 0.9627 GB, free: 1.461 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.94e-05/0.6921, allocations: 351.8 kB / 0.963 GB, free: 1.117 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005107/0.6926, allocations: 211.5 kB / 0.9632 GB, free: 1.02 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000532/0.6932, allocations: 253.3 kB / 0.9634 GB, free: 0.875 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005005/0.6937, allocations: 203.1 kB / 0.9636 GB, free: 0.7812 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.6937, allocations: 4 kB / 0.9636 GB, free: 0.7773 MB / 0.7169 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001139/0.6949, allocations: 0.4955 MB / 0.9641 GB, free: 0.5195 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.516e-05/0.6949, allocations: 9.156 kB / 0.9641 GB, free: 0.5156 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.328e-06/0.6949, allocations: 1.094 kB / 0.9641 GB, free: 0.5156 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.28e-05/0.6949, allocations: 1.156 kB / 0.9641 GB, free: 0.5156 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000482/0.6954, allocations: 72.14 kB / 0.9642 GB, free: 0.4922 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.166e-06/0.6954, allocations: 1.281 kB / 0.9642 GB, free: 0.4922 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003747/0.6958, allocations: 56.66 kB / 0.9643 GB, free: 476 kB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.899e-05/0.6958, allocations: 3.75 kB / 0.9643 GB, free: 476 kB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (reaToInt.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * 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.0001728/0.696, allocations: 172.9 kB / 0.9644 GB, free: 316 kB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.796e-05/0.6961, allocations: 40.25 kB / 0.9645 GB, free: 292 kB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.751e-05/0.6961, allocations: 43.59 kB / 0.9645 GB, free: 256 kB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.248e-06/0.6962, allocations: 1.875 kB / 0.9645 GB, free: 256 kB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.121e-06/0.6962, allocations: 1 kB / 0.9645 GB, free: 256 kB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.657e-06/0.6962, allocations: 3.984 kB / 0.9645 GB, free: 252 kB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004994/0.6967, allocations: 479 kB / 0.965 GB, free: 15.83 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.834e-06/0.6967, allocations: 0 / 0.965 GB, free: 15.83 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000444/0.6971, allocations: 72.7 kB / 0.965 GB, free: 15.81 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.368e-06/0.6972, allocations: 1.406 kB / 0.965 GB, free: 15.81 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.057e-05/0.6972, allocations: 9.359 kB / 0.9651 GB, free: 15.8 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.595e-06/0.6972, allocations: 1.344 kB / 0.9651 GB, free: 15.8 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.6972, allocations: 0 / 0.9651 GB, free: 15.8 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001303/0.6985, allocations: 0.5987 MB / 0.9656 GB, free: 15.43 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 9.78e-05/0.6986, allocations: 120 kB / 0.9658 GB, free: 15.31 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.788e-05/0.6987, allocations: 1 kB / 0.9658 GB, free: 15.31 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003676/0.6991, allocations: 45.86 kB / 0.9658 GB, free: 15.29 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.1e-05/0.6992, allocations: 30.11 kB / 0.9658 GB, free: 15.27 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.345e-05/0.6992, allocations: 4.156 kB / 0.9658 GB, free: 15.27 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0003427/0.6995, allocations: 308.3 kB / 0.9661 GB, free: 15.08 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6995, allocations: 0 / 0.9661 GB, free: 15.08 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0003395/0.6999, allocations: 61.31 kB / 0.9662 GB, free: 15.07 MB / 0.7325 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (reaToInt.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.0001306/0.7, allocations: 109.4 kB / 0.9663 GB, free: 14.98 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.001226/0.7013, allocations: 471.9 kB / 0.9667 GB, free: 14.76 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.7013, allocations: 0 / 0.9667 GB, free: 14.76 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0006093/0.7019, allocations: 250.7 kB / 0.967 GB, free: 14.64 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003252/0.7022, allocations: 54.05 kB / 0.967 GB, free: 14.61 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00135/0.7036, allocations: 0.7598 MB / 0.9678 GB, free: 14.1 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003742/0.704, allocations: 0.8071 MB / 0.9686 GB, free: 13.33 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0003724/0.7043, allocations: 61.27 kB / 0.9686 GB, free: 13.3 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001384/0.7045, allocations: 25.33 kB / 0.9686 GB, free: 13.29 MB / 0.7325 GB Notification: Performance of SimCode: time 7.51e-07/0.7045, allocations: 0 / 0.9686 GB, free: 13.29 MB / 0.7325 GB Notification: Performance of Templates: time 0.007993/0.7125, allocations: 3.853 MB / 0.9724 GB, free: 11.39 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Fluid.HeatPumps.BaseClasses.Validation.EquationFitReversible.makefile (rm -f Buildings_9_Buildings.Fluid.HeatPumps.BaseClasses.Validation.EquationFitReversible.pipe ; mkfifo Buildings_9_Buildings.Fluid.HeatPumps.BaseClasses.Validation.EquationFitReversible.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.HeatPumps.BaseClasses.Validation.EquationFitReversible.pipe >> ../files/Buildings_9_Buildings.Fluid.HeatPumps.BaseClasses.Validation.EquationFitReversible.sim & ./Buildings_9_Buildings.Fluid.HeatPumps.BaseClasses.Validation.EquationFitReversible -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.HeatPumps.BaseClasses.Validation.EquationFitReversible.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.HeatPumps.BaseClasses.Validation.EquationFitReversible_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_HeatPumps_BaseClasses_Validation_EquationFitReversible.csv","../files/Buildings_9_Buildings.Fluid.HeatPumps.BaseClasses.Validation.EquationFitReversible.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches