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.322/1.322, allocations: 251.9 MB / 266.9 MB, free: 11.02 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.001068/0.001068, allocations: 183.8 kB / 326.5 MB, free: 2.223 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.795/1.795, allocations: 205.4 MB / 0.5775 GB, free: 20.28 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.0008275/0.0008275, allocations: 94.31 kB / 0.6821 GB, free: 12.88 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003457/0.0003458, allocations: 9.312 kB / 0.7962 GB, free: 135.3 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1962/0.1966, allocations: 106.3 MB / 0.9001 GB, free: 63.93 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1603/0.3569, allocations: 132.1 MB / 1.029 GB, free: 11.61 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002434/0.3572, allocations: 79.95 kB / 1.029 GB, free: 11.53 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.002976/0.3602, allocations: 1.09 MB / 1.03 GB, free: 10.43 MB / 0.6823 GB Notification: Performance of FrontEnd: time 1.613e-06/0.3602, allocations: 0 / 1.03 GB, free: 10.43 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 6.021e-06/0.3602, allocations: 0 / 1.03 GB, free: 10.43 MB / 0.6823 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.0003453/0.3606, allocations: 355.2 kB / 1.031 GB, free: 10.04 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 3.311e-05/0.3606, allocations: 8.031 kB / 1.031 GB, free: 10.03 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.569e-05/0.3606, allocations: 0 / 1.031 GB, free: 10.03 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.957e-05/0.3607, allocations: 170.9 kB / 1.031 GB, free: 9.824 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.698e-06/0.3608, allocations: 0 / 1.031 GB, free: 9.824 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.306e-06/0.3608, allocations: 0 / 1.031 GB, free: 9.824 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001708/0.361, allocations: 57.67 kB / 1.031 GB, free: 9.762 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.242e-06/0.361, allocations: 0 / 1.031 GB, free: 9.762 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.045e-06/0.361, allocations: 0 / 1.031 GB, free: 9.762 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.139e-06/0.361, allocations: 4 kB / 1.031 GB, free: 9.758 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001861/0.3612, allocations: 43.95 kB / 1.031 GB, free: 9.715 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003663/0.3616, allocations: 272.8 kB / 1.031 GB, free: 9.398 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001207/0.3617, allocations: 42.59 kB / 1.031 GB, free: 9.348 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001104/0.3618, allocations: 85.17 kB / 1.031 GB, free: 9.246 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.722e-05/0.3618, allocations: 30.56 kB / 1.031 GB, free: 9.207 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=2): time 1.032e-06/0.3618, allocations: 0 / 1.031 GB, free: 9.207 MB / 0.6823 GB Notification: Performance of matching and sorting (n=2): time 0.0003421/0.3622, allocations: 105.7 kB / 1.031 GB, free: 9.098 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.037e-05/0.3622, allocations: 51.41 kB / 1.031 GB, free: 9.035 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.032e-05/0.3623, allocations: 92.98 kB / 1.032 GB, free: 8.938 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 1.477e-05/0.3623, allocations: 33.64 kB / 1.032 GB, free: 8.898 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 4.504e-05/0.3624, allocations: 84.14 kB / 1.032 GB, free: 8.812 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 1.672e-05/0.3624, allocations: 7.844 kB / 1.032 GB, free: 8.805 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.328e-06/0.3624, allocations: 0 / 1.032 GB, free: 8.805 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001023/0.3625, allocations: 330.8 kB / 1.032 GB, free: 8.473 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.029e-05/0.3626, allocations: 19.98 kB / 1.032 GB, free: 8.453 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.964e-05/0.3627, allocations: 19.98 kB / 1.032 GB, free: 8.434 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.535e-05/0.3628, allocations: 24.05 kB / 1.032 GB, free: 8.41 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.3628, allocations: 0 / 1.032 GB, free: 8.41 MB / 0.6823 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001941/0.363, allocations: 81.84 kB / 1.032 GB, free: 8.324 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.205e-05/0.363, allocations: 8 kB / 1.032 GB, free: 8.316 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.416e-06/0.363, allocations: 4.031 kB / 1.032 GB, free: 8.312 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.269e-05/0.363, allocations: 3.984 kB / 1.032 GB, free: 8.309 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.508e-05/0.3631, allocations: 15.98 kB / 1.032 GB, free: 8.293 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.559e-06/0.3631, allocations: 0 / 1.032 GB, free: 8.293 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.114e-05/0.3632, allocations: 11.98 kB / 1.032 GB, free: 8.281 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.289e-06/0.3632, allocations: 0 / 1.032 GB, free: 8.281 MB / 0.6823 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 () * Number of clocked 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.665e-05/0.3633, allocations: 116 kB / 1.032 GB, free: 8.16 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.547e-05/0.3633, allocations: 7.906 kB / 1.032 GB, free: 8.152 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002224/0.3635, allocations: 80.78 kB / 1.032 GB, free: 8.066 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.703e-06/0.3635, allocations: 0 / 1.032 GB, free: 8.066 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.55e-06/0.3635, allocations: 0 / 1.032 GB, free: 8.066 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.154e-06/0.3636, allocations: 7.969 kB / 1.032 GB, free: 8.059 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001495/0.3637, allocations: 161.6 kB / 1.033 GB, free: 7.852 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/0.3637, allocations: 0 / 1.033 GB, free: 7.852 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.187e-05/0.3638, allocations: 11.98 kB / 1.033 GB, free: 7.84 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.613e-06/0.3638, allocations: 0 / 1.033 GB, free: 7.84 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.893e-06/0.3638, allocations: 4 kB / 1.033 GB, free: 7.836 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.052e-06/0.3638, allocations: 0 / 1.033 GB, free: 7.836 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.81e-07/0.3638, allocations: 0 / 1.033 GB, free: 7.836 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002266/0.364, allocations: 175.5 kB / 1.033 GB, free: 7.648 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 3.126e-05/0.3641, allocations: 81.11 kB / 1.033 GB, free: 7.551 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.11e-05/0.3641, allocations: 0 / 1.033 GB, free: 7.551 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.713e-05/0.3642, allocations: 12.02 kB / 1.033 GB, free: 7.539 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.284e-05/0.3642, allocations: 4 kB / 1.033 GB, free: 7.535 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.026e-06/0.3642, allocations: 0 / 1.033 GB, free: 7.535 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 4.05e-05/0.3643, allocations: 83.28 kB / 1.033 GB, free: 7.453 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1e-07/0.3643, allocations: 0 / 1.033 GB, free: 7.453 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0002015/0.3645, allocations: 4 kB / 1.033 GB, free: 7.449 MB / 0.6823 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 () * Number of clocked 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.0001248/0.3646, allocations: 111.1 kB / 1.033 GB, free: 7.332 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0001987/0.3648, allocations: 48.64 kB / 1.033 GB, free: 7.285 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 1.352e-06/0.3648, allocations: 0 / 1.033 GB, free: 7.285 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 8.557e-05/0.3649, allocations: 31.91 kB / 1.033 GB, free: 7.254 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001803/0.3651, allocations: 12.08 kB / 1.033 GB, free: 7.242 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002282/0.3654, allocations: 116.5 kB / 1.033 GB, free: 7.098 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002261/0.3656, allocations: 0.677 MB / 1.034 GB, free: 6.395 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 2.464e-05/0.3656, allocations: 0 / 1.034 GB, free: 6.395 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.903e-05/0.3657, allocations: 15.38 kB / 1.034 GB, free: 6.379 MB / 0.6823 GB Notification: Performance of SimCode: time 2.51e-07/0.3657, allocations: 0 / 1.034 GB, free: 6.379 MB / 0.6823 GB Notification: Performance of Templates: time 0.001999/0.3677, allocations: 472 kB / 1.034 GB, free: 5.922 MB / 0.6823 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