Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.SmoothLimit.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.Examples.SmoothLimit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|smoLim.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.SmoothLimit") translateModel(Buildings.Utilities.Math.Examples.SmoothLimit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|smoLim.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.SmoothLimit") [: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.195/1.195, allocations: 249.4 MB / 256.7 MB, free: 7.043 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.001015/0.001015, allocations: 185.1 kB / 316 MB, free: 3.551 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.092/1.092, allocations: 205.1 MB / 0.5667 GB, free: 15.62 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.0008688/0.0008688, allocations: 96.95 kB / 0.671 GB, free: 4.742 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 6.622e-06/6.633e-06, allocations: 0 / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1465/0.1465, allocations: 106.3 MB / 0.8846 GB, free: 12.65 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4131/0.5596, allocations: 132.7 MB / 1.014 GB, free: 6.027 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000177/0.5598, allocations: 72.58 kB / 1.014 GB, free: 5.988 MB / 0.6355 GB Notification: Performance of FrontEnd: time 0.003581/0.5634, allocations: 1.073 MB / 1.015 GB, free: 5.098 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 4.949e-06/0.5635, allocations: 4 kB / 1.015 GB, free: 5.094 MB / 0.6355 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0002749/0.5637, allocations: 341.3 kB / 1.016 GB, free: 4.719 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 3.36e-05/0.5638, allocations: 12.03 kB / 1.016 GB, free: 4.707 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.767e-05/0.5638, allocations: 3.906 kB / 1.016 GB, free: 4.703 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001055/0.5639, allocations: 171 kB / 1.016 GB, free: 4.496 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.014e-05/0.5639, allocations: 0 / 1.016 GB, free: 4.496 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.009e-05/0.564, allocations: 0 / 1.016 GB, free: 4.496 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.373e-05/0.564, allocations: 15.69 kB / 1.016 GB, free: 4.484 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.198e-05/0.5641, allocations: 40.5 kB / 1.016 GB, free: 4.441 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.253e-06/0.5641, allocations: 4.656 kB / 1.016 GB, free: 4.438 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.925e-06/0.5641, allocations: 0 / 1.016 GB, free: 4.438 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.249e-06/0.5641, allocations: 3.984 kB / 1.016 GB, free: 4.434 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002712/0.5644, allocations: 228.6 kB / 1.016 GB, free: 4.184 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 4.671e-05/0.5645, allocations: 22.27 kB / 1.016 GB, free: 4.156 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.385e-05/0.5645, allocations: 16.91 kB / 1.016 GB, free: 4.137 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000629/0.5651, allocations: 480.4 kB / 1.017 GB, free: 3.578 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.014e-05/0.5652, allocations: 30.56 kB / 1.017 GB, free: 3.539 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=2): time 1.092e-06/0.5652, allocations: 10.23 kB / 1.017 GB, free: 3.531 MB / 0.6355 GB Notification: Performance of matching and sorting (n=2): time 0.0003109/0.5655, allocations: 81.03 kB / 1.017 GB, free: 3.453 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.389e-05/0.5655, allocations: 55.39 kB / 1.017 GB, free: 3.387 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.619e-05/0.5656, allocations: 99.72 kB / 1.017 GB, free: 3.285 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 9.838e-06/0.5656, allocations: 25.7 kB / 1.017 GB, free: 3.254 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 3.62e-05/0.5656, allocations: 87.95 kB / 1.017 GB, free: 3.168 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 1.359e-05/0.5657, allocations: 7.844 kB / 1.017 GB, free: 3.16 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.786e-06/0.5657, allocations: 0 / 1.017 GB, free: 3.16 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 8.849e-05/0.5658, allocations: 322 kB / 1.017 GB, free: 2.84 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.437e-05/0.5658, allocations: 4 kB / 1.017 GB, free: 2.836 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.182e-05/0.5658, allocations: 7.625 kB / 1.017 GB, free: 2.832 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001789/0.566, allocations: 47.89 kB / 1.017 GB, free: 2.789 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.273e-06/0.566, allocations: 0 / 1.017 GB, free: 2.789 MB / 0.6355 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002227/0.5662, allocations: 89.14 kB / 1.017 GB, free: 2.703 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.804e-05/0.5662, allocations: 8 kB / 1.017 GB, free: 2.695 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.016e-06/0.5663, allocations: 0 / 1.017 GB, free: 2.695 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.398e-06/0.5663, allocations: 0 / 1.017 GB, free: 2.695 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.48e-05/0.5663, allocations: 4 kB / 1.017 GB, free: 2.691 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.236e-06/0.5664, allocations: 0 / 1.017 GB, free: 2.691 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.469e-05/0.5664, allocations: 15.92 kB / 1.017 GB, free: 2.676 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.685e-06/0.5664, allocations: 0 / 1.017 GB, free: 2.676 MB / 0.6355 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 (2): * Single equations (assignments): 2 * 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 5.117e-05/0.5665, allocations: 108.9 kB / 1.018 GB, free: 2.562 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.558e-05/0.5665, allocations: 3.906 kB / 1.018 GB, free: 2.559 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002619/0.5668, allocations: 96.53 kB / 1.018 GB, free: 2.465 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.452e-06/0.5668, allocations: 0 / 1.018 GB, free: 2.465 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.5668, allocations: 3.188 kB / 1.018 GB, free: 2.465 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.305e-06/0.5668, allocations: 0 / 1.018 GB, free: 2.465 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001202/0.5669, allocations: 145.7 kB / 1.018 GB, free: 2.293 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.41e-07/0.5669, allocations: 0 / 1.018 GB, free: 2.293 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.434e-05/0.567, allocations: 7.938 kB / 1.018 GB, free: 2.285 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.593e-06/0.567, allocations: 4.031 kB / 1.018 GB, free: 2.281 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.414e-06/0.567, allocations: 3.984 kB / 1.018 GB, free: 2.277 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.114e-06/0.567, allocations: 3.906 kB / 1.018 GB, free: 2.273 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.567, allocations: 4 kB / 1.018 GB, free: 2.27 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002548/0.5673, allocations: 170.3 kB / 1.018 GB, free: 2.09 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 3.695e-05/0.5673, allocations: 89 kB / 1.018 GB, free: 1.984 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.273e-05/0.5673, allocations: 0 / 1.018 GB, free: 1.984 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.45e-05/0.5674, allocations: 4 kB / 1.018 GB, free: 1.98 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.943e-05/0.5674, allocations: 0 / 1.018 GB, free: 1.98 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.085e-06/0.5674, allocations: 0 / 1.018 GB, free: 1.98 MB / 0.6355 GB Notification: Performance of sort global known variables: time 3.365e-05/0.5675, allocations: 90.52 kB / 1.018 GB, free: 1.895 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0002125/0.5677, allocations: 23.97 kB / 1.018 GB, free: 1.871 MB / 0.6355 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 (2): * Single equations (assignments): 2 * 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.0001509/0.5678, allocations: 130.7 kB / 1.018 GB, free: 1.738 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 6.23e-05/0.5679, allocations: 15.62 kB / 1.018 GB, free: 1.727 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 1.092e-06/0.5679, allocations: 0 / 1.018 GB, free: 1.727 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 1.852e-05/0.5679, allocations: 8 kB / 1.018 GB, free: 1.719 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001184/0.5681, allocations: 0.7812 kB / 1.018 GB, free: 1.719 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001872/0.5683, allocations: 68.97 kB / 1.018 GB, free: 1.637 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002295/0.5685, allocations: 0.6958 MB / 1.019 GB, free: 0.9141 MB / 0.6355 GB Notification: Performance of SimCode: time 2.3e-07/0.5685, allocations: 0 / 1.019 GB, free: 0.9141 MB / 0.6355 GB Notification: Performance of Templates: time 0.002106/0.5706, allocations: 0.6655 MB / 1.02 GB, free: 268 kB / 0.6355 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.SmoothLimit.makefile (rm -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.SmoothLimit.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.SmoothLimit.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.SmoothLimit.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.SmoothLimit.sim & ./Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.SmoothLimit -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.SmoothLimit.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.SmoothLimit_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Utilities_Math_Examples_SmoothLimit.csv","../files/Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.SmoothLimit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches