Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/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_maint.7.0.x_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_maint.7.0.x_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.194/1.194, allocations: 249.4 MB / 256.7 MB, free: 6.996 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009286/0.0009286, allocations: 180.4 kB / 316 MB, free: 3.516 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.1/1.1, allocations: 205.1 MB / 0.5667 GB, free: 15.57 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008207/0.0008207, allocations: 90.02 kB / 0.671 GB, free: 4.699 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 7.665e-06/7.695e-06, allocations: 4 kB / 0.7807 GB, free: 103 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1703/0.1703, allocations: 106.3 MB / 0.8846 GB, free: 12.61 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.029/1.199, allocations: 428.4 MB / 1.303 GB, free: 319.4 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002597/1.199, allocations: 83.08 kB / 1.303 GB, free: 319.3 MB / 0.8698 GB Notification: Performance of FrontEnd: time 1.137/2.336, allocations: 0.5027 GB / 1.806 GB, free: 140.2 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 0.0001048/2.337, allocations: 43.94 kB / 1.806 GB, free: 140.1 MB / 0.8698 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.003021/2.34, allocations: 1.908 MB / 1.808 GB, free: 138.2 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 2.861e-05/2.34, allocations: 8.031 kB / 1.808 GB, free: 138.2 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001105/2.341, allocations: 347.6 kB / 1.808 GB, free: 137.9 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002354/2.343, allocations: 1.638 MB / 1.81 GB, free: 136.2 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001061/2.343, allocations: 117.5 kB / 1.81 GB, free: 136.1 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001232/2.343, allocations: 64 kB / 1.81 GB, free: 136 MB / 0.8698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001463/2.345, allocations: 1.004 MB / 1.811 GB, free: 135 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001422/2.346, allocations: 1.117 MB / 1.812 GB, free: 133.8 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.756e-05/2.346, allocations: 0 / 1.812 GB, free: 133.8 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.201e-05/2.346, allocations: 4 kB / 1.812 GB, free: 133.8 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.101e-05/2.346, allocations: 42.95 kB / 1.812 GB, free: 133.8 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006096/2.353, allocations: 7.088 MB / 1.819 GB, free: 126.3 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007269/2.353, allocations: 0.5773 MB / 1.819 GB, free: 125.7 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004239/2.354, allocations: 382.7 kB / 1.82 GB, free: 125.4 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003956/2.354, allocations: 0.8311 MB / 1.82 GB, free: 124.4 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.799e-05/2.354, allocations: 51.11 kB / 1.821 GB, free: 124.3 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=63): time 1.994e-06/2.354, allocations: 3.938 kB / 1.821 GB, free: 124.3 MB / 0.8698 GB Notification: Performance of matching and sorting (n=63): time 0.001292/2.355, allocations: 0.8185 MB / 1.821 GB, free: 123.5 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.823e-05/2.356, allocations: 113.4 kB / 1.821 GB, free: 123.3 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001122/2.357, allocations: 1.149 MB / 1.823 GB, free: 122.2 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 6.282e-05/2.357, allocations: 29.05 kB / 1.823 GB, free: 122.1 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002172/2.357, allocations: 0.5157 MB / 1.823 GB, free: 121.6 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 0.000151/2.357, allocations: 201 kB / 1.823 GB, free: 121.4 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.956e-05/2.357, allocations: 4 kB / 1.823 GB, free: 121.4 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 5.076e-05/2.357, allocations: 337.8 kB / 1.824 GB, free: 121.1 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004407/2.358, allocations: 353.9 kB / 1.824 GB, free: 120.7 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005234/2.358, allocations: 0.6138 MB / 1.825 GB, free: 120 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007011/2.359, allocations: 423.4 kB / 1.825 GB, free: 119.6 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.945e-06/2.359, allocations: 0 / 1.825 GB, free: 119.6 MB / 0.8698 GB Notification: Performance of matching and sorting (n=101) (initialization): time 0.001506/2.36, allocations: 1.039 MB / 1.826 GB, free: 118.6 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002442/2.361, allocations: 1.869 MB / 1.828 GB, free: 116.6 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.177e-06/2.361, allocations: 7.906 kB / 1.828 GB, free: 116.6 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.843e-05/2.361, allocations: 8 kB / 1.828 GB, free: 116.6 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001078/2.362, allocations: 282.8 kB / 1.828 GB, free: 116.3 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.386e-06/2.362, allocations: 8 kB / 1.828 GB, free: 116.3 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00119/2.363, allocations: 217 kB / 1.828 GB, free: 116.1 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.396e-05/2.363, allocations: 39.64 kB / 1.828 GB, free: 116.1 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 5.791e-06/2.363, allocations: 4 kB / 1.828 GB, free: 116.1 MB / 0.8698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001332/2.364, allocations: 0.8554 MB / 1.829 GB, free: 115.2 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.649e-06/2.364, allocations: 7.938 kB / 1.829 GB, free: 115.2 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.536e-06/2.364, allocations: 15.98 kB / 1.829 GB, free: 115.2 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001042/2.366, allocations: 277.1 kB / 1.829 GB, free: 115 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.372e-06/2.366, allocations: 11.94 kB / 1.829 GB, free: 115 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009924/2.367, allocations: 183.7 kB / 1.83 GB, free: 114.8 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.514e-05/2.367, allocations: 31.98 kB / 1.83 GB, free: 114.8 MB / 0.8698 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 (heaPum.uMod,intGreThr.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (101): * Single equations (assignments): 101 * 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.0001511/2.367, allocations: 136 kB / 1.83 GB, free: 114.6 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001621/2.367, allocations: 142.2 kB / 1.83 GB, free: 114.5 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001499/2.368, allocations: 0.9881 MB / 1.831 GB, free: 113.5 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.939e-06/2.368, allocations: 12 kB / 1.831 GB, free: 113.5 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.478e-06/2.368, allocations: 0 / 1.831 GB, free: 113.5 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001055/2.37, allocations: 0.8345 MB / 1.832 GB, free: 112.6 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002956/2.373, allocations: 2.462 MB / 1.834 GB, free: 110.1 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.348e-06/2.373, allocations: 4 kB / 1.834 GB, free: 110.1 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009232/2.373, allocations: 217.4 kB / 1.834 GB, free: 109.9 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.513e-06/2.373, allocations: 4 kB / 1.834 GB, free: 109.9 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.016e-05/2.374, allocations: 11.98 kB / 1.834 GB, free: 109.9 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.777e-06/2.374, allocations: 7.188 kB / 1.834 GB, free: 109.9 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.667e-06/2.374, allocations: 7.938 kB / 1.834 GB, free: 109.8 MB / 0.8698 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001852/2.375, allocations: 1.729 MB / 1.836 GB, free: 108 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000429/2.376, allocations: 379 kB / 1.836 GB, free: 107.6 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002078/2.376, allocations: 7.375 kB / 1.836 GB, free: 107.6 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001007/2.377, allocations: 126.3 kB / 1.837 GB, free: 107.5 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001513/2.377, allocations: 67.56 kB / 1.837 GB, free: 107.4 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.603e-05/2.377, allocations: 35.97 kB / 1.837 GB, free: 107.4 MB / 0.8698 GB Notification: Performance of sort global known variables: time 0.0008352/2.378, allocations: 0.8678 MB / 1.837 GB, free: 106.5 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.001679/2.38, allocations: 0.8355 MB / 1.838 GB, free: 105.7 MB / 0.8698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 2 (heaPum.vol1.dynBal.U,heaPum.vol2.dynBal.U) * Number of discrete variables: 2 (heaPum.uMod,intGreThr.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (67): * Single equations (assignments): 63 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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.0009809/2.381, allocations: 0.815 MB / 1.839 GB, free: 105 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.001633/2.382, allocations: 1.407 MB / 1.84 GB, free: 103.6 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 3.257e-06/2.383, allocations: 2.438 kB / 1.84 GB, free: 103.6 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0006093/2.383, allocations: 469.6 kB / 1.841 GB, free: 103.1 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002194/2.385, allocations: 0.5508 MB / 1.841 GB, free: 102.6 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003147/2.388, allocations: 2.08 MB / 1.843 GB, free: 100.5 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009858/2.389, allocations: 1.451 MB / 1.845 GB, free: 98.98 MB / 0.8698 GB Notification: Performance of SimCode: time 3.4e-07/2.389, allocations: 4 kB / 1.845 GB, free: 98.97 MB / 0.8698 GB Notification: Performance of Templates: time 0.0431/2.433, allocations: 35.02 MB / 1.879 GB, free: 64.3 MB / 0.8698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Fluid_HeatPumps_Examples_EquationFitReversible.csv","../files/Buildings_maint.7.0.x_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches