Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: translateModel(Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y|der.y.|der2_y",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives") translateModel(Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y|der.y.|der2_y",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.095/2.095, allocations: 387.4 MB / 394.9 MB, free: 13.4 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001013/0.001013, allocations: 172.8 kB / 487.4 MB, free: 5.043 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.376/1.376, allocations: 221.5 MB / 0.7824 GB, free: 1.043 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008978/0.0008978, allocations: 94.78 kB / 0.9219 GB, free: 2.285 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 2.164e-05/2.163e-05, allocations: 8 kB / 1.067 GB, free: 185.7 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2274/0.2275, allocations: 142.4 MB / 1.206 GB, free: 43.97 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7697/0.9972, allocations: 148.4 MB / 1.351 GB, free: 18.26 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002194/0.9975, allocations: 81.3 kB / 1.351 GB, free: 18.25 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.002693/1, allocations: 0.8692 MB / 1.352 GB, free: 33.91 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.783e-06/1, allocations: 0 / 1.352 GB, free: 33.91 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 5.63e-06/1, allocations: 1.844 kB / 1.352 GB, free: 33.91 MB / 0.8386 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.0001898/1, allocations: 318.6 kB / 1.352 GB, free: 33.57 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.284e-05/1, allocations: 9.062 kB / 1.352 GB, free: 33.57 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.856e-05/1.001, allocations: 5.344 kB / 1.352 GB, free: 33.56 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.731e-05/1.001, allocations: 168.3 kB / 1.352 GB, free: 33.36 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.207e-05/1.001, allocations: 1.125 kB / 1.352 GB, free: 33.36 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.224e-05/1.001, allocations: 2.625 kB / 1.352 GB, free: 33.36 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.143e-05/1.001, allocations: 3.984 kB / 1.352 GB, free: 33.36 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 5.643e-05/1.001, allocations: 31.44 kB / 1.352 GB, free: 33.33 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.025e-05/1.001, allocations: 1.312 kB / 1.352 GB, free: 33.33 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.434e-06/1.001, allocations: 0 / 1.352 GB, free: 33.33 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.079e-06/1.001, allocations: 1.641 kB / 1.352 GB, free: 33.33 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001036/1.001, allocations: 137.4 kB / 1.352 GB, free: 33.16 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001387/1.001, allocations: 34.77 kB / 1.353 GB, free: 33.14 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.792e-05/1.001, allocations: 9.328 kB / 1.353 GB, free: 33.13 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001154/1.001, allocations: 81.89 kB / 1.353 GB, free: 33.04 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.477e-05/1.001, allocations: 32.56 kB / 1.353 GB, free: 33 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=3): time 1.062e-06/1.001, allocations: 0 / 1.353 GB, free: 33 MB / 0.8386 GB Notification: Performance of matching and sorting (n=5): time 0.002533/1.004, allocations: 366.2 kB / 1.353 GB, free: 32.93 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.772e-05/1.004, allocations: 51.41 kB / 1.353 GB, free: 32.87 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.195e-05/1.004, allocations: 85.75 kB / 1.353 GB, free: 32.78 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.487e-05/1.004, allocations: 29.64 kB / 1.353 GB, free: 32.75 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 2.14e-05/1.004, allocations: 85.55 kB / 1.353 GB, free: 32.66 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 3.685e-05/1.004, allocations: 13.05 kB / 1.353 GB, free: 32.66 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.074e-05/1.004, allocations: 0 / 1.353 GB, free: 32.66 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 9.652e-05/1.004, allocations: 315.6 kB / 1.354 GB, free: 32.34 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.914e-05/1.004, allocations: 7.812 kB / 1.354 GB, free: 32.34 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.757e-05/1.004, allocations: 27.16 kB / 1.354 GB, free: 32.32 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.907e-05/1.004, allocations: 16.3 kB / 1.354 GB, free: 32.32 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.21e-07/1.004, allocations: 0 / 1.354 GB, free: 32.32 MB / 0.8386 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001648/1.004, allocations: 72.64 kB / 1.354 GB, free: 32.27 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.338e-05/1.004, allocations: 7.844 kB / 1.354 GB, free: 32.27 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.43e-06/1.004, allocations: 288 / 1.354 GB, free: 32.27 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.285e-05/1.004, allocations: 0.7031 kB / 1.354 GB, free: 32.27 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003766/1.005, allocations: 54.47 kB / 1.354 GB, free: 32.27 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.78e-06/1.005, allocations: 0 / 1.354 GB, free: 32.27 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003237/1.005, allocations: 42.59 kB / 1.354 GB, free: 32.26 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.396e-05/1.005, allocations: 4.484 kB / 1.354 GB, free: 32.26 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 5 * 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 8.985e-05/1.005, allocations: 109.9 kB / 1.354 GB, free: 32.15 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.858e-05/1.005, allocations: 8.641 kB / 1.354 GB, free: 32.14 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003256/1.006, allocations: 90.52 kB / 1.354 GB, free: 32.09 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.595e-06/1.006, allocations: 4 kB / 1.354 GB, free: 32.09 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.122e-06/1.006, allocations: 0 / 1.354 GB, free: 32.09 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.471e-06/1.006, allocations: 0.7969 kB / 1.354 GB, free: 32.09 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004378/1.006, allocations: 287.8 kB / 1.354 GB, free: 31.82 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.457e-06/1.006, allocations: 4.672 kB / 1.354 GB, free: 31.82 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003667/1.007, allocations: 46.06 kB / 1.354 GB, free: 31.82 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.186e-06/1.007, allocations: 0.5625 kB / 1.354 GB, free: 31.82 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.809e-05/1.007, allocations: 4.438 kB / 1.354 GB, free: 31.82 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.675e-06/1.007, allocations: 6.25 kB / 1.354 GB, free: 31.81 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.388e-06/1.007, allocations: 0.6094 kB / 1.354 GB, free: 31.81 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002188/1.007, allocations: 162.3 kB / 1.354 GB, free: 31.68 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 2.887e-05/1.007, allocations: 81.72 kB / 1.355 GB, free: 31.58 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.576e-05/1.007, allocations: 0.7969 kB / 1.355 GB, free: 31.58 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003507/1.007, allocations: 40.56 kB / 1.355 GB, free: 31.57 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.66e-05/1.007, allocations: 1.359 kB / 1.355 GB, free: 31.57 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.25e-05/1.007, allocations: 7.375 kB / 1.355 GB, free: 31.57 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 3.223e-05/1.007, allocations: 75.28 kB / 1.355 GB, free: 31.5 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.41e-07/1.007, allocations: 0 / 1.355 GB, free: 31.5 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002412/1.008, allocations: 8.391 kB / 1.355 GB, free: 31.5 MB / 0.8386 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 (5): * Single equations (assignments): 5 * 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.0002231/1.008, allocations: 115.5 kB / 1.355 GB, free: 31.41 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.000131/1.008, allocations: 24.31 kB / 1.355 GB, free: 31.4 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/1.008, allocations: 0 / 1.355 GB, free: 31.4 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 4.003e-05/1.008, allocations: 20.23 kB / 1.355 GB, free: 31.4 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000141/1.008, allocations: 1.359 kB / 1.355 GB, free: 31.4 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005446/1.009, allocations: 99.66 kB / 1.355 GB, free: 31.33 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002515/1.009, allocations: 0.6798 MB / 1.356 GB, free: 30.64 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.000212/1.009, allocations: 29.44 kB / 1.356 GB, free: 30.61 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.916e-05/1.009, allocations: 8.891 kB / 1.356 GB, free: 30.61 MB / 0.8386 GB Notification: Performance of SimCode: time 2.31e-07/1.009, allocations: 0 / 1.356 GB, free: 30.61 MB / 0.8386 GB Notification: Performance of Templates: time 0.002685/1.012, allocations: 0.7829 MB / 1.356 GB, free: 30.53 MB / 0.8386 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.makefile (rm -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.sim & ./Buildings_9_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Functions_Examples_SmoothHeavisideDerivatives.csv","../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches