Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.SmoothHeaviside.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.SmoothHeaviside,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|smoothHeaviside.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.SmoothHeaviside") translateModel(Buildings.Utilities.Math.Examples.SmoothHeaviside,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|smoothHeaviside.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.SmoothHeaviside") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.6/1.6, allocations: 249.5 MB / 257 MB, free: 6.918 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.001371/0.001371, allocations: 168.9 kB / 316.3 MB, free: 3.234 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.87/1.87, allocations: 205.3 MB / 0.5671 GB, free: 15.82 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.001126/0.001126, allocations: 87.45 kB / 0.6714 GB, free: 4.941 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.972e-05/1.976e-05, allocations: 4 kB / 0.7814 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2565/0.2566, allocations: 106.3 MB / 0.8852 GB, free: 12.25 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9007/1.157, allocations: 132.3 MB / 1.014 GB, free: 5.441 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002534/1.158, allocations: 73.19 kB / 1.015 GB, free: 5.406 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.003281/1.161, allocations: 1.08 MB / 1.016 GB, free: 4.457 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.353e-06/1.161, allocations: 0 / 1.016 GB, free: 4.457 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 6.813e-06/1.161, allocations: 4 kB / 1.016 GB, free: 4.453 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.0004183/1.161, allocations: 334.2 kB / 1.016 GB, free: 4.086 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.424e-05/1.161, allocations: 8.031 kB / 1.016 GB, free: 4.078 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.934e-05/1.162, allocations: 4 kB / 1.016 GB, free: 4.074 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001638/1.162, allocations: 171 kB / 1.016 GB, free: 3.867 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.51e-05/1.162, allocations: 0 / 1.016 GB, free: 3.867 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.624e-05/1.162, allocations: 4 kB / 1.016 GB, free: 3.863 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.456e-05/1.162, allocations: 7.312 kB / 1.016 GB, free: 3.859 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.215e-05/1.162, allocations: 37.25 kB / 1.016 GB, free: 3.82 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.069e-05/1.162, allocations: 0 / 1.016 GB, free: 3.82 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.038e-05/1.162, allocations: 2.734 kB / 1.016 GB, free: 3.82 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.809e-06/1.162, allocations: 4 kB / 1.016 GB, free: 3.816 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004593/1.162, allocations: 251.9 kB / 1.016 GB, free: 3.543 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 6.363e-05/1.162, allocations: 26.55 kB / 1.016 GB, free: 3.508 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.07e-05/1.163, allocations: 12.61 kB / 1.016 GB, free: 3.496 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001542/1.163, allocations: 81.11 kB / 1.016 GB, free: 3.398 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.06e-05/1.163, allocations: 30.56 kB / 1.017 GB, free: 3.359 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=2): time 1.102e-06/1.163, allocations: 4 kB / 1.017 GB, free: 3.355 MB / 0.6355 GB Notification: Performance of matching and sorting (n=2): time 0.0002981/1.163, allocations: 51.98 kB / 1.017 GB, free: 3.305 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.42e-05/1.163, allocations: 55.41 kB / 1.017 GB, free: 3.238 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.038e-05/1.163, allocations: 92.38 kB / 1.017 GB, free: 3.145 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.504e-05/1.163, allocations: 25.7 kB / 1.017 GB, free: 3.113 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 5.054e-05/1.163, allocations: 80.14 kB / 1.017 GB, free: 3.031 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 1.76e-05/1.163, allocations: 3.906 kB / 1.017 GB, free: 3.027 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.838e-06/1.163, allocations: 4 kB / 1.017 GB, free: 3.023 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.000152/1.163, allocations: 325.8 kB / 1.017 GB, free: 2.699 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.692e-05/1.163, allocations: 3.688 kB / 1.017 GB, free: 2.699 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.858e-06/1.163, allocations: 7.938 kB / 1.017 GB, free: 2.691 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.77e-05/1.164, allocations: 15.42 kB / 1.017 GB, free: 2.68 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/1.164, allocations: 0 / 1.017 GB, free: 2.68 MB / 0.6355 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001193/1.164, allocations: 49.31 kB / 1.017 GB, free: 2.629 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.727e-05/1.164, allocations: 4 kB / 1.017 GB, free: 2.625 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.603e-06/1.164, allocations: 0.875 kB / 1.017 GB, free: 2.625 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.687e-05/1.164, allocations: 96 / 1.017 GB, free: 2.625 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.525e-05/1.164, allocations: 23.86 kB / 1.017 GB, free: 2.602 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.043e-06/1.164, allocations: 4 kB / 1.017 GB, free: 2.598 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.434e-05/1.164, allocations: 11.92 kB / 1.017 GB, free: 2.586 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.821e-06/1.164, allocations: 0 / 1.017 GB, free: 2.586 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 9.707e-05/1.164, allocations: 108.9 kB / 1.017 GB, free: 2.473 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.154e-05/1.164, allocations: 0 / 1.017 GB, free: 2.473 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002103/1.164, allocations: 72.03 kB / 1.017 GB, free: 2.402 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.35e-06/1.164, allocations: 4.859 kB / 1.017 GB, free: 2.398 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.992e-06/1.164, allocations: 4 kB / 1.017 GB, free: 2.395 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.006e-06/1.164, allocations: 0 / 1.017 GB, free: 2.395 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001502/1.165, allocations: 133.8 kB / 1.018 GB, free: 2.23 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.687e-06/1.165, allocations: 3.953 kB / 1.018 GB, free: 2.227 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.104e-05/1.165, allocations: 11.98 kB / 1.018 GB, free: 2.215 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.625e-06/1.165, allocations: 1.688 kB / 1.018 GB, free: 2.215 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.145e-06/1.165, allocations: 0 / 1.018 GB, free: 2.215 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-06/1.165, allocations: 4.031 kB / 1.018 GB, free: 2.211 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/1.165, allocations: 0 / 1.018 GB, free: 2.211 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002051/1.165, allocations: 146.2 kB / 1.018 GB, free: 2.059 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 6.34e-05/1.165, allocations: 81.06 kB / 1.018 GB, free: 1.961 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.864e-05/1.165, allocations: 4 kB / 1.018 GB, free: 1.957 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.03e-05/1.165, allocations: 11.92 kB / 1.018 GB, free: 1.945 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.83e-05/1.165, allocations: 8.031 kB / 1.018 GB, free: 1.938 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.775e-06/1.165, allocations: 0 / 1.018 GB, free: 1.938 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 4.28e-05/1.165, allocations: 82.91 kB / 1.018 GB, free: 1.859 MB / 0.6355 GB Notification: Performance of sort global known variables: time 1.5e-07/1.165, allocations: 0 / 1.018 GB, free: 1.859 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0002155/1.165, allocations: 8 kB / 1.018 GB, free: 1.852 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.0002045/1.166, allocations: 105.8 kB / 1.018 GB, free: 1.738 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 9.747e-05/1.166, allocations: 11.38 kB / 1.018 GB, free: 1.73 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 1.462e-06/1.166, allocations: 0 / 1.018 GB, free: 1.73 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 1.97e-05/1.166, allocations: 11.44 kB / 1.018 GB, free: 1.723 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002137/1.166, allocations: 4 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.0002398/1.166, allocations: 64.94 kB / 1.018 GB, free: 1.637 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003505/1.167, allocations: 0.6845 MB / 1.019 GB, free: 0.9258 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 2.772e-05/1.167, allocations: 0 / 1.019 GB, free: 0.9258 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.003e-05/1.167, allocations: 7.438 kB / 1.019 GB, free: 0.918 MB / 0.6355 GB Notification: Performance of SimCode: time 2.6e-07/1.167, allocations: 0 / 1.019 GB, free: 0.918 MB / 0.6355 GB Notification: Performance of Templates: time 0.002638/1.169, allocations: 467.6 kB / 1.019 GB, free: 488 kB / 0.6355 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.SmoothHeaviside.makefile (rm -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.SmoothHeaviside.sim & ./Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.SmoothHeaviside -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.SmoothHeaviside_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Utilities_Math_Examples_SmoothHeaviside.csv","../files/Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.SmoothHeaviside.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches