Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 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.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_latest_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_latest_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.001073/0.001073, allocations: 110.7 kB / 16.37 MB, free: 6.004 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.001073/0.001073, allocations: 195.8 kB / 17.31 MB, free: 5.613 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.305/1.305, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.468/2.468, allocations: 442.6 MB / 0.7165 GB, free: 14.66 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001256/0.001256, allocations: 64.7 kB / 0.8773 GB, free: 10.99 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2757/0.277, allocations: 153 MB / 1.027 GB, free: 2.066 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Examples.EquationFitReversible): time 0.493/0.77, allocations: 62.63 MB / 1.088 GB, free: 28.33 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.01721/0.7873, allocations: 13.65 MB / 1.101 GB, free: 25.3 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003055/0.7904, allocations: 61.19 kB / 1.101 GB, free: 25.29 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.00314/0.7935, allocations: 0.9466 MB / 1.102 GB, free: 24.73 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.007352/0.801, allocations: 2.387 MB / 1.105 GB, free: 23.3 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.004944/0.8059, allocations: 1.63 MB / 1.106 GB, free: 22.41 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.006316/0.8122, allocations: 4.294 MB / 1.11 GB, free: 20.33 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002671/0.8149, allocations: 1.418 MB / 1.112 GB, free: 19.65 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003989/0.8189, allocations: 1.642 MB / 1.113 GB, free: 18.88 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002712/0.8217, allocations: 1.292 MB / 1.115 GB, free: 18.28 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 0.0007801/0.8225, allocations: 175.8 kB / 1.115 GB, free: 18.28 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004502/0.827, allocations: 1.425 MB / 1.116 GB, free: 17.77 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.000914/0.8279, allocations: 0.5035 MB / 1.117 GB, free: 17.47 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.00214/0.8301, allocations: 1.011 MB / 1.118 GB, free: 16.84 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.005945/0.836, allocations: 3.167 MB / 1.121 GB, free: 15.66 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.8361, allocations: 4.703 kB / 1.121 GB, free: 15.65 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.924e-06/0.8361, allocations: 0.75 kB / 1.121 GB, free: 15.65 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 5.093e-05/0.8361, allocations: 0 / 1.121 GB, free: 15.65 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: 265 * Number of variables: 265 Notification: Performance of Generate backend data structure: time 0.005084/0.8412, allocations: 2.335 MB / 1.123 GB, free: 14.21 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.654e-05/0.8413, allocations: 9.469 kB / 1.123 GB, free: 14.21 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001493/0.8428, allocations: 323.6 kB / 1.123 GB, free: 14.11 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002774/0.8456, allocations: 1.474 MB / 1.125 GB, free: 13.24 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001606/0.8457, allocations: 162.5 kB / 1.125 GB, free: 13.13 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001802/0.8459, allocations: 107.6 kB / 1.125 GB, free: 13.09 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002921/0.8489, allocations: 1.44 MB / 1.126 GB, free: 12.42 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.956e-05/0.8489, allocations: 1.406 kB / 1.126 GB, free: 12.42 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001195/0.849, allocations: 48.73 kB / 1.126 GB, free: 12.38 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.172e-05/0.8491, allocations: 30.59 kB / 1.126 GB, free: 12.38 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003126/0.8522, allocations: 1.341 MB / 1.128 GB, free: 11.93 MB / 0.8419 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.008063/0.8603, allocations: 6.63 MB / 1.134 GB, free: 7.027 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002043/0.8624, allocations: 1.169 MB / 1.135 GB, free: 6.332 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001209/0.8636, allocations: 0.5677 MB / 1.136 GB, free: 6.125 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005773/0.8642, allocations: 1.145 MB / 1.137 GB, free: 4.797 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.136e-05/0.8642, allocations: 51.81 kB / 1.137 GB, free: 4.742 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=77): time 2.745e-06/0.8642, allocations: 0 / 1.137 GB, free: 4.742 MB / 0.8419 GB Notification: Performance of matching and sorting (n=77): time 0.00421/0.8684, allocations: 1.588 MB / 1.139 GB, free: 4.176 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.874e-05/0.8685, allocations: 117.3 kB / 1.139 GB, free: 4.047 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002082/0.8706, allocations: 1.403 MB / 1.14 GB, free: 3.43 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 0.0001712/0.8708, allocations: 42.73 kB / 1.14 GB, free: 3.387 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.000461/0.8712, allocations: 0.7117 MB / 1.141 GB, free: 2.754 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002339/0.8715, allocations: 273.6 kB / 1.141 GB, free: 2.516 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003086/0.8718, allocations: 174.3 kB / 1.141 GB, free: 2.414 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 6.223e-05/0.8719, allocations: 341.7 kB / 1.142 GB, free: 2.082 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001172/0.8731, allocations: 0.4945 MB / 1.142 GB, free: 1.82 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0013/0.8744, allocations: 0.7224 MB / 1.143 GB, free: 1.281 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002314/0.8767, allocations: 1.125 MB / 1.144 GB, free: 0.5781 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.622e-06/0.8767, allocations: 2.312 kB / 1.144 GB, free: 0.5781 MB / 0.8419 GB Notification: Performance of matching and sorting (n=109) (initialization): time 0.003225/0.8799, allocations: 1.356 MB / 1.145 GB, free: 15.88 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.028e-05/0.88, allocations: 7.781 kB / 1.145 GB, free: 15.88 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.097e-05/0.88, allocations: 4.406 kB / 1.145 GB, free: 15.88 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.187e-05/0.88, allocations: 9.219 kB / 1.145 GB, free: 15.88 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001213/0.8812, allocations: 270.8 kB / 1.146 GB, free: 15.8 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.848e-05/0.8813, allocations: 14.44 kB / 1.146 GB, free: 15.79 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001715/0.883, allocations: 159.4 kB / 1.146 GB, free: 15.7 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001541/0.8832, allocations: 35.38 kB / 1.146 GB, free: 15.69 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002403/0.8856, allocations: 0.796 MB / 1.147 GB, free: 15.21 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001892/0.8875, allocations: 0.7251 MB / 1.147 GB, free: 14.68 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002871/0.8904, allocations: 1.123 MB / 1.148 GB, free: 13.98 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.975e-06/0.8904, allocations: 5.062 kB / 1.148 GB, free: 13.97 MB / 0.8575 GB Notification: Performance of matching and sorting (n=109) (initialization_lambda0): time 0.003585/0.894, allocations: 1.344 MB / 1.15 GB, free: 13.28 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.715e-05/0.894, allocations: 6.906 kB / 1.15 GB, free: 13.28 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.816e-06/0.8941, allocations: 8.906 kB / 1.15 GB, free: 13.27 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.269e-05/0.8941, allocations: 8.812 kB / 1.15 GB, free: 13.27 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001236/0.8953, allocations: 271.5 kB / 1.15 GB, free: 13.2 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.977e-05/0.8954, allocations: 12.64 kB / 1.15 GB, free: 13.19 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001582/0.8969, allocations: 149 kB / 1.15 GB, free: 13.1 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000135/0.8971, allocations: 39.55 kB / 1.15 GB, free: 13.09 MB / 0.8575 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.000382/0.8975, allocations: 238 kB / 1.15 GB, free: 12.86 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006392/0.8981, allocations: 147.3 kB / 1.15 GB, free: 12.79 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00356/0.9017, allocations: 1.484 MB / 1.152 GB, free: 11.89 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.837e-05/0.9017, allocations: 8.031 kB / 1.152 GB, free: 11.89 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.763e-06/0.9018, allocations: 4 kB / 1.152 GB, free: 11.89 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002553/0.9043, allocations: 1.11 MB / 1.153 GB, free: 11.24 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006876/0.9112, allocations: 3.114 MB / 1.156 GB, free: 9.062 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.121e-05/0.9112, allocations: 4.188 kB / 1.156 GB, free: 9.062 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001014/0.9123, allocations: 191.1 kB / 1.156 GB, free: 9.004 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.355e-05/0.9123, allocations: 7.031 kB / 1.156 GB, free: 9.004 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.19e-05/0.9124, allocations: 22.3 kB / 1.156 GB, free: 8.992 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.115e-05/0.9124, allocations: 10.88 kB / 1.156 GB, free: 8.988 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.592e-06/0.9124, allocations: 13.44 kB / 1.156 GB, free: 8.98 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004679/0.9171, allocations: 2.073 MB / 1.158 GB, free: 7.707 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0012/0.9183, allocations: 382.4 kB / 1.159 GB, free: 7.387 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005403/0.9189, allocations: 16.09 kB / 1.159 GB, free: 7.379 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001495/0.9204, allocations: 108.6 kB / 1.159 GB, free: 7.324 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002032/0.9206, allocations: 83.69 kB / 1.159 GB, free: 7.273 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001339/0.9207, allocations: 41.31 kB / 1.159 GB, free: 7.258 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.002027/0.9228, allocations: 1.083 MB / 1.16 GB, free: 6.668 MB / 0.8575 GB Notification: Performance of sort global known variables: time 3.2e-07/0.9228, allocations: 0 / 1.16 GB, free: 6.668 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.002824/0.9256, allocations: 0.7934 MB / 1.161 GB, free: 6.512 MB / 0.8575 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.001176/0.9268, allocations: 467.5 kB / 1.161 GB, free: 6.258 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.00436/0.9312, allocations: 1.82 MB / 1.163 GB, free: 5.379 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 7.564e-06/0.9312, allocations: 4.125 kB / 1.163 GB, free: 5.375 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.001585/0.9328, allocations: 0.6376 MB / 1.164 GB, free: 5.062 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004568/0.9374, allocations: 0.8275 MB / 1.164 GB, free: 4.621 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005649/0.943, allocations: 2.752 MB / 1.167 GB, free: 2.398 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001363/0.9444, allocations: 1.281 MB / 1.168 GB, free: 1.09 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.002231/0.9467, allocations: 404.1 kB / 1.169 GB, free: 0.6875 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005241/0.9472, allocations: 131.4 kB / 1.169 GB, free: 0.5586 MB / 0.8575 GB Notification: Performance of SimCode: time 6.62e-07/0.9473, allocations: 0 / 1.169 GB, free: 0.5586 MB / 0.8575 GB Notification: Performance of Templates: time 0.05783/1.005, allocations: 33.47 MB / 1.202 GB, free: 15.46 MB / 0.9044 GB make -j1 -f Buildings_latest_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.makefile (rm -f Buildings_latest_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.pipe ; mkfifo Buildings_latest_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.pipe >> ../files/Buildings_latest_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.sim & ./Buildings_latest_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_HeatPumps_Examples_EquationFitReversible.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches