Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Actuators.Dampers.Examples.Damper.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: translateModel(Buildings.Fluid.Actuators.Dampers.Examples.Damper,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|res.m_flow|preInd.m_flow|preIndFrom_dp.m_flow|preIndDpFixed_nominal.m_flow",fileNamePrefix="Buildings_9_Buildings.Fluid.Actuators.Dampers.Examples.Damper") translateModel(Buildings.Fluid.Actuators.Dampers.Examples.Damper,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|res.m_flow|preInd.m_flow|preIndFrom_dp.m_flow|preIndDpFixed_nominal.m_flow",fileNamePrefix="Buildings_9_Buildings.Fluid.Actuators.Dampers.Examples.Damper") [: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 9.1.1-maint.9.1.x/package.mo): time 1.956/1.956, allocations: 387.2 MB / 394.5 MB, free: 13.6 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001085/0.001085, allocations: 188.4 kB / 487 MB, free: 5.316 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.352/1.352, allocations: 221.3 MB / 0.7819 GB, free: 1.34 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001047/0.001047, allocations: 92.84 kB / 0.9213 GB, free: 2.59 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 9.026e-06/9.067e-06, allocations: 4 kB / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2671/0.2671, allocations: 142.3 MB / 1.205 GB, free: 26.15 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 3.786/4.054, allocations: 1.917 GB / 3.122 GB, free: 390 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002303/4.054, allocations: 87.94 kB / 3.122 GB, free: 389.9 MB / 1.151 GB Notification: Performance of FrontEnd: time 1.574/5.628, allocations: 0.5878 GB / 3.71 GB, free: 231.3 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0001476/5.628, allocations: 40 kB / 3.71 GB, free: 231.3 MB / 1.151 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 163 * Number of variables: 163 Notification: Performance of Generate backend data structure: time 0.00566/5.634, allocations: 2.3 MB / 3.712 GB, free: 228.9 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.389e-05/5.634, allocations: 13.03 kB / 3.712 GB, free: 228.9 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003731/5.637, allocations: 425.1 kB / 3.713 GB, free: 228.5 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004059/5.642, allocations: 2.254 MB / 3.715 GB, free: 226.2 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.881e-05/5.642, allocations: 20 kB / 3.715 GB, free: 226.2 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003656/5.642, allocations: 76 kB / 3.715 GB, free: 226.1 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001855/5.644, allocations: 1.494 MB / 3.717 GB, free: 224.6 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001459/5.645, allocations: 1.243 MB / 3.718 GB, free: 223.3 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.06e-05/5.645, allocations: 7.938 kB / 3.718 GB, free: 223.3 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.6e-05/5.645, allocations: 0 / 3.718 GB, free: 223.3 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.583e-05/5.645, allocations: 16 kB / 3.718 GB, free: 223.3 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008356/5.654, allocations: 6.238 MB / 3.724 GB, free: 216.9 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001965/5.656, allocations: 1.465 MB / 3.725 GB, free: 215.4 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007457/5.657, allocations: 0.701 MB / 3.726 GB, free: 214.7 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004386/5.657, allocations: 454.1 kB / 3.726 GB, free: 214.2 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.727e-05/5.657, allocations: 39.06 kB / 3.726 GB, free: 214.1 MB / 1.151 GB Notification: Performance of pre-optimization done (n=57): time 3.947e-06/5.657, allocations: 0 / 3.726 GB, free: 214.1 MB / 1.151 GB Notification: Performance of matching and sorting (n=57): time 0.006029/5.663, allocations: 2.146 MB / 3.729 GB, free: 212 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.51e-05/5.663, allocations: 55.91 kB / 3.729 GB, free: 211.9 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003216/5.666, allocations: 2.463 MB / 3.731 GB, free: 209.4 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 0.0006921/5.667, allocations: 25.7 kB / 3.731 GB, free: 209.4 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004042/5.667, allocations: 472.1 kB / 3.731 GB, free: 208.9 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001446/5.668, allocations: 177.2 kB / 3.732 GB, free: 208.7 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002299/5.668, allocations: 0 / 3.732 GB, free: 208.7 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 9.824e-05/5.668, allocations: 389.8 kB / 3.732 GB, free: 208.3 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002429/5.67, allocations: 2.167 MB / 3.734 GB, free: 206.2 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002638/5.673, allocations: 2.636 MB / 3.737 GB, free: 203.4 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004605/5.678, allocations: 2.241 MB / 3.739 GB, free: 201.1 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.031e-06/5.678, allocations: 3.938 kB / 3.739 GB, free: 201.1 MB / 1.151 GB Notification: Performance of matching and sorting (n=235) (initialization): time 0.008898/5.687, allocations: 4.958 MB / 3.744 GB, free: 196.2 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003485/5.687, allocations: 2.055 MB / 3.746 GB, free: 194 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.302e-05/5.687, allocations: 4 kB / 3.746 GB, free: 194 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004722/5.687, allocations: 116.9 kB / 3.746 GB, free: 193.9 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002337/5.69, allocations: 391.5 kB / 3.746 GB, free: 193.5 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001186/5.691, allocations: 1.341 MB / 3.748 GB, free: 192.1 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002939/5.694, allocations: 309.5 kB / 3.748 GB, free: 191.8 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003502/5.694, allocations: 140 kB / 3.748 GB, free: 191.6 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 8.346e-06/5.694, allocations: 4 kB / 3.748 GB, free: 191.6 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007712/5.702, allocations: 4.708 MB / 3.753 GB, free: 186.9 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.056e-05/5.702, allocations: 8.125 kB / 3.753 GB, free: 186.9 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.75e-05/5.702, allocations: 12 kB / 3.753 GB, free: 186.9 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002244/5.704, allocations: 411.4 kB / 3.753 GB, free: 186.5 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.355e-05/5.704, allocations: 12 kB / 3.753 GB, free: 186.5 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003008/5.707, allocations: 234.5 kB / 3.753 GB, free: 186.3 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003506/5.708, allocations: 140 kB / 3.753 GB, free: 186.1 MB / 1.151 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * Number of states: 0 () * Number of discrete variables: 39 (preIndDpFixed_nominal.idx_sorted[1],preIndDpFixed_nominal.idx_sorted[2],preIndDpFixed_nominal.idx_sorted[3],preIndDpFixed_nominal.idx_sorted[4],preIndDpFixed_nominal.idx_sorted[5],preIndDpFixed_nominal.idx_sorted[6],preIndDpFixed_nominal.idx_sorted[7],preIndDpFixed_nominal.idx_sorted[8],preIndDpFixed_nominal.idx_sorted[9],preIndDpFixed_nominal.idx_sorted[10],preIndDpFixed_nominal.idx_sorted[11],preIndDpFixed_nominal.idx_sorted[12],preIndDpFixed_nominal.idx_sorted[13],preIndFrom_dp.idx_sorted[1],preIndFrom_dp.idx_sorted[2],preIndFrom_dp.idx_sorted[3],preIndFrom_dp.idx_sorted[4],preIndFrom_dp.idx_sorted[5],preIndFrom_dp.idx_sorted[6],preIndFrom_dp.idx_sorted[7],preIndFrom_dp.idx_sorted[8],preIndFrom_dp.idx_sorted[9],preIndFrom_dp.idx_sorted[10],preIndFrom_dp.idx_sorted[11],preIndFrom_dp.idx_sorted[12],preIndFrom_dp.idx_sorted[13],preInd.idx_sorted[1],preInd.idx_sorted[2],preInd.idx_sorted[3],preInd.idx_sorted[4],preInd.idx_sorted[5],preInd.idx_sorted[6],preInd.idx_sorted[7],preInd.idx_sorted[8],preInd.idx_sorted[9],preInd.idx_sorted[10],preInd.idx_sorted[11],preInd.idx_sorted[12],preInd.idx_sorted[13]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (195): * Single equations (assignments): 190 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0004783/5.708, allocations: 177.9 kB / 3.754 GB, free: 186 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004321/5.709, allocations: 161.7 kB / 3.754 GB, free: 185.8 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005314/5.714, allocations: 2.416 MB / 3.756 GB, free: 183.4 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.013e-05/5.714, allocations: 8 kB / 3.756 GB, free: 183.4 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.645e-06/5.714, allocations: 4 kB / 3.756 GB, free: 183.4 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.165e-05/5.714, allocations: 3.984 kB / 3.756 GB, free: 183.4 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008661/5.723, allocations: 4.163 MB / 3.76 GB, free: 179.1 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.951e-06/5.723, allocations: 0 / 3.76 GB, free: 179.1 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009251/5.724, allocations: 191.8 kB / 3.76 GB, free: 178.9 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003514/5.724, allocations: 124.7 kB / 3.76 GB, free: 178.8 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.697e-05/5.724, allocations: 27.98 kB / 3.76 GB, free: 178.8 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001051/5.725, allocations: 1.314 MB / 3.762 GB, free: 177.4 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.808e-06/5.725, allocations: 0 / 3.762 GB, free: 177.4 MB / 1.151 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005031/5.73, allocations: 2.486 MB / 3.764 GB, free: 174.8 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001127/5.731, allocations: 0.5882 MB / 3.765 GB, free: 174.2 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000357/5.732, allocations: 0 / 3.765 GB, free: 174.2 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001577/5.733, allocations: 99.78 kB / 3.765 GB, free: 174.1 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001079/5.733, allocations: 44.42 kB / 3.765 GB, free: 174 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000108/5.734, allocations: 83.97 kB / 3.765 GB, free: 174 MB / 1.151 GB Notification: Performance of sort global known variables: time 0.00212/5.736, allocations: 1.833 MB / 3.767 GB, free: 172.1 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.003556/5.739, allocations: 1.135 MB / 3.768 GB, free: 171 MB / 1.151 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (62): * Single equations (assignments): 60 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.002323/5.742, allocations: 1.799 MB / 3.77 GB, free: 169.3 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.007453/5.749, allocations: 5.942 MB / 3.775 GB, free: 163.4 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 6.853e-06/5.749, allocations: 0 / 3.775 GB, free: 163.4 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0009098/5.75, allocations: 0.6516 MB / 3.776 GB, free: 162.7 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002354/5.752, allocations: 341.6 kB / 3.776 GB, free: 162.4 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005115/5.758, allocations: 2.382 MB / 3.779 GB, free: 160 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001748/5.759, allocations: 1.551 MB / 3.78 GB, free: 158.4 MB / 1.151 GB Notification: Performance of SimCode: time 1.242e-06/5.759, allocations: 4 kB / 3.78 GB, free: 158.4 MB / 1.151 GB Notification: Performance of Templates: time 0.08839/5.848, allocations: 66.38 MB / 3.845 GB, free: 92.24 MB / 1.151 GB make -j1 -f Buildings_9_Buildings.Fluid.Actuators.Dampers.Examples.Damper.makefile (rm -f Buildings_9_Buildings.Fluid.Actuators.Dampers.Examples.Damper.pipe ; mkfifo Buildings_9_Buildings.Fluid.Actuators.Dampers.Examples.Damper.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Actuators.Dampers.Examples.Damper.pipe >> ../files/Buildings_9_Buildings.Fluid.Actuators.Dampers.Examples.Damper.sim & ./Buildings_9_Buildings.Fluid.Actuators.Dampers.Examples.Damper -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Actuators.Dampers.Examples.Damper.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Actuators.Dampers.Examples.Damper_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Actuators_Dampers_Examples_Damper.csv","../files/Buildings_9_Buildings.Fluid.Actuators.Dampers.Examples.Damper.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches