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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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: translateModel(Buildings.Fluid.HeatPumps.Examples.EquationFitReversible,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|heaPum.QSou_flow|heaPum.QLoa_flow|heaPum.sta_a1.T|heaPum.sta_b1.T|heaPum.COP",fileNamePrefix="Buildings_10_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible") translateModel(Buildings.Fluid.HeatPumps.Examples.EquationFitReversible,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|heaPum.QSou_flow|heaPum.QLoa_flow|heaPum.sta_a1.T|heaPum.sta_b1.T|heaPum.COP",fileNamePrefix="Buildings_10_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005816/0.005816, allocations: 101.1 kB / 15.88 MB, free: 6.328 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.001214/0.001214, allocations: 196.2 kB / 16.79 MB, free: 6.254 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.383/1.383, allocations: 222.9 MB / 240.5 MB, free: 4.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.578/2.578, allocations: 437 MB / 0.7106 GB, free: 5.266 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001517/0.001517, allocations: 59.91 kB / 0.8692 GB, free: 5.156 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6748/0.6763, allocations: 151.6 MB / 1.017 GB, free: 2.766 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Examples.EquationFitReversible): time 0.06163/0.738, allocations: 62.23 MB / 1.078 GB, free: 4.328 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.01824/0.7563, allocations: 13.73 MB / 1.091 GB, free: 6.562 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002813/0.7591, allocations: 55.69 kB / 1.091 GB, free: 6.508 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.002761/0.7619, allocations: 0.7965 MB / 1.092 GB, free: 5.707 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.007042/0.769, allocations: 2.23 MB / 1.094 GB, free: 3.469 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.004263/0.7733, allocations: 1.466 MB / 1.096 GB, free: 2.016 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.006539/0.7798, allocations: 5.477 MB / 1.101 GB, free: 12.52 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002186/0.782, allocations: 1.2 MB / 1.102 GB, free: 11.29 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003383/0.7854, allocations: 1.42 MB / 1.104 GB, free: 9.867 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00256/0.788, allocations: 1.291 MB / 1.105 GB, free: 8.57 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0006237/0.7887, allocations: 88 kB / 1.105 GB, free: 8.484 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003724/0.7924, allocations: 1.317 MB / 1.106 GB, free: 7.164 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0007974/0.7932, allocations: 438.2 kB / 1.107 GB, free: 6.734 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.00166/0.7949, allocations: 0.921 MB / 1.108 GB, free: 5.809 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.003364/0.7983, allocations: 2.425 MB / 1.11 GB, free: 3.379 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.671e-06/0.7983, allocations: 4 kB / 1.11 GB, free: 3.375 MB / 0.8575 GB Notification: Performance of FrontEnd: time 3.387e-06/0.7983, allocations: 0 / 1.11 GB, free: 3.375 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.053e-05/0.7984, allocations: 7.938 kB / 1.11 GB, free: 3.367 MB / 0.8575 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.005497/0.8039, allocations: 2.333 MB / 1.112 GB, free: 0.9727 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.775e-05/0.8039, allocations: 8.031 kB / 1.112 GB, free: 0.9648 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001432/0.8054, allocations: 314.4 kB / 1.113 GB, free: 0.6562 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002441/0.8078, allocations: 1.447 MB / 1.114 GB, free: 15.16 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001873/0.808, allocations: 169.4 kB / 1.114 GB, free: 14.98 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000157/0.8082, allocations: 104 kB / 1.114 GB, free: 14.88 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00286/0.8111, allocations: 1.434 MB / 1.116 GB, free: 13.36 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.861e-05/0.8111, allocations: 3.906 kB / 1.116 GB, free: 13.35 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001206/0.8113, allocations: 48 kB / 1.116 GB, free: 13.3 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.63e-05/0.8113, allocations: 43.92 kB / 1.116 GB, free: 13.26 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003003/0.8143, allocations: 1.327 MB / 1.117 GB, free: 11.94 MB / 0.8731 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.008189/0.8225, allocations: 6.632 MB / 1.124 GB, free: 4.863 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002131/0.8247, allocations: 1.17 MB / 1.125 GB, free: 3.613 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001213/0.8259, allocations: 0.5609 MB / 1.125 GB, free: 3.047 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008352/0.8268, allocations: 1.145 MB / 1.126 GB, free: 1.645 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.382e-05/0.8268, allocations: 43.88 kB / 1.126 GB, free: 1.594 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=77): time 3.216e-06/0.8268, allocations: 0 / 1.126 GB, free: 1.594 MB / 0.8731 GB Notification: Performance of matching and sorting (n=77): time 0.004072/0.8309, allocations: 1.597 MB / 1.128 GB, free: 15.98 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.599e-05/0.831, allocations: 111.5 kB / 1.128 GB, free: 15.85 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001858/0.8328, allocations: 1.397 MB / 1.13 GB, free: 14.45 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 0.0001169/0.833, allocations: 45.7 kB / 1.13 GB, free: 14.4 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005694/0.8335, allocations: 0.7124 MB / 1.13 GB, free: 13.68 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002396/0.8338, allocations: 264.1 kB / 1.131 GB, free: 13.41 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002936/0.8341, allocations: 174.5 kB / 1.131 GB, free: 13.23 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001111/0.8342, allocations: 345.9 kB / 1.131 GB, free: 12.89 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001174/0.8354, allocations: 0.4927 MB / 1.131 GB, free: 12.39 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001333/0.8367, allocations: 0.7191 MB / 1.132 GB, free: 11.58 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002419/0.8392, allocations: 1.136 MB / 1.133 GB, free: 10.38 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.608e-06/0.8392, allocations: 4 kB / 1.133 GB, free: 10.38 MB / 0.8887 GB Notification: Performance of matching and sorting (n=109) (initialization): time 0.00339/0.8426, allocations: 1.347 MB / 1.135 GB, free: 9.023 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 2.537e-05/0.8426, allocations: 8 kB / 1.135 GB, free: 9.016 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.171e-05/0.8427, allocations: 8.031 kB / 1.135 GB, free: 9.008 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.644e-05/0.8427, allocations: 8 kB / 1.135 GB, free: 9 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001185/0.8439, allocations: 271.6 kB / 1.135 GB, free: 8.734 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.77e-05/0.8439, allocations: 12 kB / 1.135 GB, free: 8.723 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001516/0.8454, allocations: 194.9 kB / 1.135 GB, free: 8.531 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.5e-05/0.8455, allocations: 39.92 kB / 1.135 GB, free: 8.492 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001796/0.8473, allocations: 0.7985 MB / 1.136 GB, free: 7.691 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001324/0.8487, allocations: 0.7152 MB / 1.137 GB, free: 6.879 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002363/0.851, allocations: 1.125 MB / 1.138 GB, free: 5.695 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.604e-06/0.8511, allocations: 4 kB / 1.138 GB, free: 5.691 MB / 0.8887 GB Notification: Performance of matching and sorting (n=109) (initialization_lambda0): time 0.003357/0.8544, allocations: 1.346 MB / 1.139 GB, free: 4.336 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 1.867e-05/0.8545, allocations: 8 kB / 1.139 GB, free: 4.328 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.177e-06/0.8545, allocations: 7.938 kB / 1.139 GB, free: 4.32 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.337e-05/0.8545, allocations: 8 kB / 1.139 GB, free: 4.312 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001201/0.8557, allocations: 276.2 kB / 1.139 GB, free: 4.043 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.723e-05/0.8557, allocations: 11.94 kB / 1.139 GB, free: 4.031 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00149/0.8572, allocations: 183.1 kB / 1.14 GB, free: 3.852 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.136e-05/0.8573, allocations: 43.92 kB / 1.14 GB, free: 3.809 MB / 0.8887 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.0003564/0.8577, allocations: 232 kB / 1.14 GB, free: 3.574 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003135/0.858, allocations: 146.2 kB / 1.14 GB, free: 3.43 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003293/0.8613, allocations: 1.482 MB / 1.141 GB, free: 1.918 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.785e-05/0.8614, allocations: 8 kB / 1.141 GB, free: 1.91 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.284e-06/0.8614, allocations: 0 / 1.141 GB, free: 1.91 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002381/0.8638, allocations: 1.113 MB / 1.142 GB, free: 0.7656 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006188/0.87, allocations: 3.078 MB / 1.145 GB, free: 13.57 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.358e-06/0.87, allocations: 4 kB / 1.145 GB, free: 13.57 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009591/0.871, allocations: 200.2 kB / 1.146 GB, free: 13.37 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.142e-05/0.871, allocations: 8 kB / 1.146 GB, free: 13.36 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.765e-05/0.8711, allocations: 27.94 kB / 1.146 GB, free: 13.34 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-05/0.8711, allocations: 7.984 kB / 1.146 GB, free: 13.33 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.656e-06/0.8711, allocations: 19.86 kB / 1.146 GB, free: 13.31 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004384/0.8755, allocations: 2.06 MB / 1.148 GB, free: 11.17 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008822/0.8764, allocations: 382.9 kB / 1.148 GB, free: 10.78 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003233/0.8767, allocations: 31.83 kB / 1.148 GB, free: 10.75 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00127/0.878, allocations: 135.8 kB / 1.148 GB, free: 10.61 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001968/0.8782, allocations: 84.34 kB / 1.148 GB, free: 10.53 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.316e-05/0.8783, allocations: 39.91 kB / 1.148 GB, free: 10.49 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.00153/0.8799, allocations: 1.072 MB / 1.149 GB, free: 9.422 MB / 0.9044 GB Notification: Performance of sort global known variables: time 2.4e-07/0.8799, allocations: 0 / 1.149 GB, free: 9.422 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.00211/0.882, allocations: 0.7915 MB / 1.15 GB, free: 8.629 MB / 0.9044 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.0009853/0.883, allocations: 463.8 kB / 1.151 GB, free: 8.172 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.004444/0.8874, allocations: 1.806 MB / 1.152 GB, free: 6.371 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 1.098e-05/0.8875, allocations: 7.859 kB / 1.152 GB, free: 6.363 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.001548/0.889, allocations: 0.621 MB / 1.153 GB, free: 5.746 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00411/0.8932, allocations: 0.7722 MB / 1.154 GB, free: 4.98 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00523/0.8984, allocations: 3.361 MB / 1.157 GB, free: 1.523 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000907/0.8993, allocations: 1.269 MB / 1.158 GB, free: 224 kB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006562/0.9, allocations: 143.2 kB / 1.158 GB, free: 80 kB / 0.9044 GB Notification: Performance of SimCode: time 7.52e-07/0.9, allocations: 0 / 1.158 GB, free: 80 kB / 0.9044 GB Notification: Performance of Templates: time 0.04433/0.9443, allocations: 28.51 MB / 1.186 GB, free: 3.754 MB / 0.9356 GB make -j1 -f Buildings_10_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.makefile (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 & ./Buildings_10_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_res.mat","/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