Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.RegStep.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.Utilities.Math.Functions.Examples.RegStep,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.RegStep") translateModel(Buildings.Utilities.Math.Functions.Examples.RegStep,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.RegStep") [: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.151/1.151, allocations: 249.4 MB / 256.7 MB, free: 15.82 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009873/0.0009876, allocations: 186.4 kB / 316 MB, free: 7.211 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.234/1.234, allocations: 205.1 MB / 0.5667 GB, free: 23.68 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.0008172/0.0008172, allocations: 93.52 kB / 0.671 GB, free: 0.9688 MB / 0.4948 GB Notification: Performance of FrontEnd - loaded program: time 1.161e-05/1.18e-05, allocations: 4 kB / 0.7807 GB, free: 492 kB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3769/0.3769, allocations: 106.3 MB / 0.8846 GB, free: 76.32 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1291/0.506, allocations: 130.1 MB / 1.012 GB, free: 9.984 MB / 0.6667 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002145/0.5063, allocations: 71.95 kB / 1.012 GB, free: 9.914 MB / 0.6667 GB Notification: Performance of FrontEnd: time 0.001189/0.5075, allocations: 245.8 kB / 1.012 GB, free: 9.676 MB / 0.6667 GB Notification: Performance of Transformations before backend: time 4.829e-06/0.5075, allocations: 0 / 1.012 GB, free: 9.676 MB / 0.6667 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0002282/0.5078, allocations: 306.5 kB / 1.012 GB, free: 9.332 MB / 0.6667 GB Notification: Performance of prepare preOptimizeDAE: time 3.716e-05/0.5078, allocations: 8.031 kB / 1.012 GB, free: 9.324 MB / 0.6667 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001856/0.508, allocations: 27.86 kB / 1.012 GB, free: 9.297 MB / 0.6667 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.292e-05/0.5081, allocations: 159.1 kB / 1.012 GB, free: 9.102 MB / 0.6667 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.013e-05/0.5081, allocations: 0 / 1.012 GB, free: 9.102 MB / 0.6667 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.173e-05/0.5081, allocations: 4 kB / 1.012 GB, free: 9.098 MB / 0.6667 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 4.976e-05/0.5082, allocations: 3.938 kB / 1.012 GB, free: 9.094 MB / 0.6667 GB Notification: Performance of preOpt clockPartitioning (simulation): time 5.697e-05/0.5082, allocations: 29.69 kB / 1.012 GB, free: 9.059 MB / 0.6667 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.195e-06/0.5083, allocations: 4 kB / 1.012 GB, free: 9.055 MB / 0.6667 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.071e-05/0.5083, allocations: 7.922 kB / 1.012 GB, free: 9.047 MB / 0.6667 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.15e-06/0.5083, allocations: 3.906 kB / 1.013 GB, free: 9.043 MB / 0.6667 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001149/0.5084, allocations: 134.2 kB / 1.013 GB, free: 8.875 MB / 0.6667 GB Notification: Performance of preOpt comSubExp (simulation): time 3.49e-05/0.5084, allocations: 18.52 kB / 1.013 GB, free: 8.848 MB / 0.6667 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.924e-05/0.5085, allocations: 8.953 kB / 1.013 GB, free: 8.836 MB / 0.6667 GB Notification: Performance of preOpt evalFunc (simulation): time 1.782e-05/0.5085, allocations: 0 / 1.013 GB, free: 8.836 MB / 0.6667 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.401e-05/0.5085, allocations: 38.48 kB / 1.013 GB, free: 8.789 MB / 0.6667 GB Notification: Performance of pre-optimization done (n=1): time 7.11e-07/0.5085, allocations: 0 / 1.013 GB, free: 8.789 MB / 0.6667 GB Notification: Performance of matching and sorting (n=1): time 0.0001134/0.5086, allocations: 29.7 kB / 1.013 GB, free: 8.754 MB / 0.6667 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.781e-05/0.5087, allocations: 55.44 kB / 1.013 GB, free: 8.688 MB / 0.6667 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.633e-05/0.5087, allocations: 85 kB / 1.013 GB, free: 8.598 MB / 0.6667 GB Notification: Performance of collectPreVariables (initialization): time 1.127e-05/0.5087, allocations: 25.7 kB / 1.013 GB, free: 8.566 MB / 0.6667 GB Notification: Performance of collectInitialEqns (initialization): time 2.826e-05/0.5088, allocations: 84.14 kB / 1.013 GB, free: 8.48 MB / 0.6667 GB Notification: Performance of collectInitialBindings (initialization): time 2.163e-05/0.5088, allocations: 3.906 kB / 1.013 GB, free: 8.477 MB / 0.6667 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.815e-06/0.5088, allocations: 0 / 1.013 GB, free: 8.477 MB / 0.6667 GB Notification: Performance of setup shared object (initialization): time 9.254e-05/0.5089, allocations: 314.8 kB / 1.013 GB, free: 8.16 MB / 0.6667 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.637e-06/0.5089, allocations: 0 / 1.013 GB, free: 8.16 MB / 0.6667 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.077e-06/0.5089, allocations: 7.984 kB / 1.013 GB, free: 8.152 MB / 0.6667 GB Notification: Performance of analyzeInitialSystem (initialization): time 1.313e-05/0.509, allocations: 4.062 kB / 1.013 GB, free: 8.148 MB / 0.6667 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.092e-06/0.509, allocations: 0 / 1.013 GB, free: 8.148 MB / 0.6667 GB Notification: Performance of matching and sorting (n=1) (initialization): time 5.295e-05/0.509, allocations: 33.64 kB / 1.013 GB, free: 8.109 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 1.258e-05/0.509, allocations: 8 kB / 1.013 GB, free: 8.102 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.388e-06/0.509, allocations: 0 / 1.013 GB, free: 8.102 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.116e-05/0.5091, allocations: 0 / 1.013 GB, free: 8.102 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.071e-05/0.5091, allocations: 3.984 kB / 1.013 GB, free: 8.098 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.39e-06/0.5092, allocations: 7.906 kB / 1.013 GB, free: 8.09 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.257e-05/0.5092, allocations: 0 / 1.013 GB, free: 8.09 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.685e-06/0.5092, allocations: 4.031 kB / 1.013 GB, free: 8.086 MB / 0.6667 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 1 * 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 6.762e-05/0.5093, allocations: 103.1 kB / 1.013 GB, free: 7.98 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.076e-06/0.5093, allocations: 4 kB / 1.013 GB, free: 7.977 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.972e-05/0.5093, allocations: 6.953 kB / 1.013 GB, free: 7.973 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.72e-07/0.5093, allocations: 0 / 1.013 GB, free: 7.973 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.5093, allocations: 3.984 kB / 1.013 GB, free: 7.969 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.728e-06/0.5093, allocations: 3.906 kB / 1.013 GB, free: 7.965 MB / 0.6667 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.846e-05/0.5094, allocations: 122.2 kB / 1.014 GB, free: 7.809 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.459e-06/0.5094, allocations: 4 kB / 1.014 GB, free: 7.805 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.282e-05/0.5095, allocations: 11.92 kB / 1.014 GB, free: 7.793 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.252e-06/0.5095, allocations: 0 / 1.014 GB, free: 7.793 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.653e-06/0.5095, allocations: 0 / 1.014 GB, free: 7.793 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.254e-06/0.5095, allocations: 4 kB / 1.014 GB, free: 7.789 MB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.5095, allocations: 0 / 1.014 GB, free: 7.789 MB / 0.6667 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 7.784e-05/0.5096, allocations: 60.98 kB / 1.014 GB, free: 7.711 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 2.999e-05/0.5096, allocations: 85.12 kB / 1.014 GB, free: 7.609 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.139e-05/0.5096, allocations: 0 / 1.014 GB, free: 7.609 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.694e-05/0.5097, allocations: 4 kB / 1.014 GB, free: 7.605 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.017e-06/0.5097, allocations: 3.938 kB / 1.014 GB, free: 7.602 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.805e-06/0.5097, allocations: 0 / 1.014 GB, free: 7.602 MB / 0.6667 GB Notification: Performance of sort global known variables: time 5.82e-05/0.5098, allocations: 75.28 kB / 1.014 GB, free: 7.527 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.0001627/0.5099, allocations: 4 kB / 1.014 GB, free: 7.523 MB / 0.6667 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 1 * 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.0001255/0.5101, allocations: 95.25 kB / 1.014 GB, free: 7.418 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 6.393e-05/0.5101, allocations: 11.98 kB / 1.014 GB, free: 7.406 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 1.674e-06/0.5102, allocations: 0 / 1.014 GB, free: 7.406 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 8.837e-06/0.5102, allocations: 4 kB / 1.014 GB, free: 7.402 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.803e-05/0.5103, allocations: 7.906 kB / 1.014 GB, free: 7.395 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001903/0.5105, allocations: 51.86 kB / 1.014 GB, free: 7.32 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002566/0.5107, allocations: 0.6802 MB / 1.015 GB, free: 6.613 MB / 0.6667 GB Notification: Performance of SimCode: time 2.51e-07/0.5107, allocations: 0 / 1.015 GB, free: 6.613 MB / 0.6667 GB Notification: Performance of Templates: time 0.001715/0.5125, allocations: 285.5 kB / 1.015 GB, free: 6.336 MB / 0.6667 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.RegStep.makefile (rm -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.RegStep.sim & ./Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.RegStep -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.RegStep_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Utilities_Math_Functions_Examples_RegStep.csv","../files/Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.RegStep.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches