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.474/1.474, allocations: 249.3 MB / 261.8 MB, free: 5.863 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.001086/0.001086, allocations: 180.8 kB / 321.3 MB, free: 14.66 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.952/1.952, allocations: 205.2 MB / 0.572 GB, free: 10.69 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.0009288/0.0009287, allocations: 90.52 kB / 0.6764 GB, free: 15.67 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 3.416e-05/3.419e-05, allocations: 4 kB / 0.7879 GB, free: 97.12 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.239/0.239, allocations: 106.3 MB / 0.8918 GB, free: 6.699 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8285/1.068, allocations: 132.1 MB / 1.021 GB, free: 2.691 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002945/1.068, allocations: 76.64 kB / 1.021 GB, free: 2.652 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.003314/1.071, allocations: 1.077 MB / 1.022 GB, free: 1.703 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.753e-06/1.071, allocations: 4 kB / 1.022 GB, free: 1.699 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 6.062e-06/1.071, allocations: 0 / 1.022 GB, free: 1.699 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.0003635/1.072, allocations: 334.3 kB / 1.022 GB, free: 1.332 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.923e-05/1.072, allocations: 8.031 kB / 1.022 GB, free: 1.324 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.644e-05/1.072, allocations: 11.94 kB / 1.022 GB, free: 1.312 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000141/1.072, allocations: 163 kB / 1.022 GB, free: 1.113 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.496e-05/1.072, allocations: 4.859 kB / 1.022 GB, free: 1.109 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.074e-05/1.072, allocations: 4 kB / 1.022 GB, free: 1.105 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001026/1.072, allocations: 32.7 kB / 1.022 GB, free: 1.07 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.433e-06/1.072, allocations: 0 / 1.022 GB, free: 1.07 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.312e-05/1.072, allocations: 3.688 kB / 1.022 GB, free: 1.07 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.729e-06/1.072, allocations: 2.734 kB / 1.022 GB, free: 1.07 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.845e-05/1.072, allocations: 11 kB / 1.022 GB, free: 1.062 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004627/1.073, allocations: 276.9 kB / 1.023 GB, free: 0.75 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 5.609e-05/1.073, allocations: 25.89 kB / 1.023 GB, free: 0.7188 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.782e-05/1.073, allocations: 12.23 kB / 1.023 GB, free: 0.707 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00013/1.073, allocations: 89.08 kB / 1.023 GB, free: 0.6016 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.705e-05/1.073, allocations: 35.25 kB / 1.023 GB, free: 0.5586 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=2): time 1.172e-06/1.073, allocations: 0 / 1.023 GB, free: 0.5586 MB / 0.6355 GB Notification: Performance of matching and sorting (n=2): time 0.00017/1.073, allocations: 41.52 kB / 1.023 GB, free: 0.5156 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.856e-05/1.073, allocations: 55.41 kB / 1.023 GB, free: 460 kB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.813e-05/1.073, allocations: 101 kB / 1.023 GB, free: 360 kB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.189e-05/1.073, allocations: 25.7 kB / 1.023 GB, free: 328 kB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 4.468e-05/1.073, allocations: 82.83 kB / 1.023 GB, free: 244 kB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 1.824e-05/1.073, allocations: 7.906 kB / 1.023 GB, free: 236 kB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.866e-06/1.073, allocations: 4.031 kB / 1.023 GB, free: 232 kB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001376/1.074, allocations: 317 kB / 1.023 GB, free: 15.91 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.781e-05/1.074, allocations: 6.812 kB / 1.023 GB, free: 15.91 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.328e-05/1.074, allocations: 4 kB / 1.023 GB, free: 15.9 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.25e-05/1.074, allocations: 6.672 kB / 1.023 GB, free: 15.9 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.423e-06/1.074, allocations: 4 kB / 1.023 GB, free: 15.89 MB / 0.6511 GB Notification: Performance of matching and sorting (n=2) (initialization): time 8.553e-05/1.074, allocations: 36.77 kB / 1.024 GB, free: 15.86 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.66e-05/1.074, allocations: 8 kB / 1.024 GB, free: 15.85 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.809e-06/1.074, allocations: 4.094 kB / 1.024 GB, free: 15.84 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.414e-05/1.074, allocations: 0 / 1.024 GB, free: 15.84 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001022/1.074, allocations: 19.86 kB / 1.024 GB, free: 15.82 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.092e-05/1.074, allocations: 3.984 kB / 1.024 GB, free: 15.82 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.594e-05/1.074, allocations: 15.92 kB / 1.024 GB, free: 15.8 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.344e-06/1.074, allocations: 6.75 kB / 1.024 GB, free: 15.8 MB / 0.6511 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 7.823e-05/1.074, allocations: 104.9 kB / 1.024 GB, free: 15.69 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.102e-05/1.074, allocations: 4 kB / 1.024 GB, free: 15.69 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001302/1.074, allocations: 59.17 kB / 1.024 GB, free: 15.63 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.884e-06/1.074, allocations: 0 / 1.024 GB, free: 15.63 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.518e-06/1.074, allocations: 0 / 1.024 GB, free: 15.63 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.046e-06/1.074, allocations: 0 / 1.024 GB, free: 15.63 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000174/1.074, allocations: 157.1 kB / 1.024 GB, free: 15.43 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/1.074, allocations: 4.25 kB / 1.024 GB, free: 15.43 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.718e-05/1.075, allocations: 15.98 kB / 1.024 GB, free: 15.41 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.743e-06/1.075, allocations: 7.969 kB / 1.024 GB, free: 15.4 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.254e-06/1.075, allocations: 0 / 1.024 GB, free: 15.4 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.041e-06/1.075, allocations: 0 / 1.024 GB, free: 15.4 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/1.075, allocations: 0 / 1.024 GB, free: 15.4 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001308/1.075, allocations: 141.2 kB / 1.024 GB, free: 15.25 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 3.484e-05/1.075, allocations: 77.11 kB / 1.024 GB, free: 15.16 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.68e-05/1.075, allocations: 6.938 kB / 1.024 GB, free: 15.16 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.309e-05/1.075, allocations: 12.02 kB / 1.024 GB, free: 15.14 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.922e-05/1.075, allocations: 3.984 kB / 1.024 GB, free: 15.14 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.28e-06/1.075, allocations: 4 kB / 1.024 GB, free: 15.14 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 4.166e-05/1.075, allocations: 86.64 kB / 1.024 GB, free: 15.05 MB / 0.6511 GB Notification: Performance of sort global known variables: time 1.3e-07/1.075, allocations: 0 / 1.024 GB, free: 15.05 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0002264/1.075, allocations: 8 kB / 1.024 GB, free: 15.05 MB / 0.6511 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.0001811/1.075, allocations: 99.25 kB / 1.024 GB, free: 14.94 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 8.655e-05/1.076, allocations: 19.62 kB / 1.024 GB, free: 14.92 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/1.076, allocations: 0 / 1.024 GB, free: 14.92 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 3.446e-05/1.076, allocations: 11.19 kB / 1.024 GB, free: 14.91 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001786/1.076, allocations: 3.953 kB / 1.024 GB, free: 14.91 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002207/1.076, allocations: 68.05 kB / 1.024 GB, free: 14.82 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002755/1.076, allocations: 0.677 MB / 1.025 GB, free: 14.12 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 2.998e-05/1.076, allocations: 7.984 kB / 1.025 GB, free: 14.11 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.787e-05/1.076, allocations: 11.56 kB / 1.025 GB, free: 14.1 MB / 0.6511 GB Notification: Performance of SimCode: time 3.11e-07/1.076, allocations: 0 / 1.025 GB, free: 14.1 MB / 0.6511 GB Notification: Performance of Templates: time 0.002525/1.079, allocations: 494 kB / 1.026 GB, free: 13.64 MB / 0.6511 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