Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/Buildings 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Functions_Examples_SmoothHeavisideDerivatives",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Functions_Examples_SmoothHeavisideDerivatives",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001336/0.001336, allocations: 111.3 kB / 15.23 MB, free: 0.6406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00143/0.00143, allocations: 198.1 kB / 16.14 MB, free: 6.719 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.304/1.304, allocations: 222.9 MB / 239.8 MB, free: 4.625 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.563/2.563, allocations: 461.9 MB / 0.7342 GB, free: 14.16 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00127/0.00127, allocations: 65.02 kB / 0.8985 GB, free: 37 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2668/0.268, allocations: 157.4 MB / 1.052 GB, free: 8.176 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives): time 0.002021/0.2701, allocations: 0.6697 MB / 1.053 GB, free: 7.5 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001441/0.2716, allocations: 1.1 MB / 1.054 GB, free: 6.383 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.48e-05/0.2716, allocations: 0 / 1.054 GB, free: 6.383 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.805e-05/0.2717, allocations: 0 / 1.054 GB, free: 6.383 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0002022/0.2719, allocations: 23.92 kB / 1.054 GB, free: 6.359 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 2.625e-06/0.2719, allocations: 0 / 1.054 GB, free: 6.359 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 3.583e-05/0.2719, allocations: 4 kB / 1.054 GB, free: 6.355 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 4.474e-05/0.272, allocations: 3.984 kB / 1.054 GB, free: 6.352 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 1.491e-05/0.272, allocations: 4 kB / 1.054 GB, free: 6.348 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 2.286e-05/0.272, allocations: 3.938 kB / 1.054 GB, free: 6.344 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 7.314e-06/0.272, allocations: 0 / 1.054 GB, free: 6.344 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001144/0.2721, allocations: 27.91 kB / 1.054 GB, free: 6.316 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 7.144e-06/0.2722, allocations: 0 / 1.054 GB, free: 6.316 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 1.423e-05/0.2722, allocations: 0 / 1.054 GB, free: 6.316 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 7.33e-05/0.2723, allocations: 19.92 kB / 1.054 GB, free: 6.297 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.2723, allocations: 0 / 1.054 GB, free: 6.297 MB / 0.8106 GB Notification: Performance of FrontEnd: time 9.01e-07/0.2723, allocations: 0 / 1.054 GB, free: 6.297 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.366e-06/0.2723, allocations: 0 / 1.054 GB, free: 6.297 MB / 0.8106 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.00031/0.2726, allocations: 323.5 kB / 1.054 GB, free: 5.934 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.022e-05/0.2726, allocations: 11.97 kB / 1.054 GB, free: 5.922 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.208e-05/0.2727, allocations: 34.75 kB / 1.054 GB, free: 5.879 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.16e-05/0.2727, allocations: 0.9375 kB / 1.054 GB, free: 5.879 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.03e-05/0.2728, allocations: 164.3 kB / 1.055 GB, free: 5.68 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.814e-06/0.2728, allocations: 384 / 1.055 GB, free: 5.68 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.826e-05/0.2728, allocations: 8.375 kB / 1.055 GB, free: 5.672 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.6e-05/0.2729, allocations: 41.8 kB / 1.055 GB, free: 5.625 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.121e-05/0.273, allocations: 4 kB / 1.055 GB, free: 5.621 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.773e-06/0.273, allocations: 0 / 1.055 GB, free: 5.621 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.398e-06/0.273, allocations: 0 / 1.055 GB, free: 5.621 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.377e-05/0.273, allocations: 7.984 kB / 1.055 GB, free: 5.613 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001337/0.2731, allocations: 149.7 kB / 1.055 GB, free: 5.418 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001646/0.2733, allocations: 42.55 kB / 1.055 GB, free: 5.367 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.94e-05/0.2733, allocations: 8.859 kB / 1.055 GB, free: 5.355 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001451/0.2735, allocations: 85.19 kB / 1.055 GB, free: 5.254 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.467e-05/0.2735, allocations: 38.5 kB / 1.055 GB, free: 5.207 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=3): time 1.092e-06/0.2735, allocations: 0 / 1.055 GB, free: 5.207 MB / 0.8106 GB Notification: Performance of matching and sorting (n=5): time 0.004223/0.2778, allocations: 0.5717 MB / 1.055 GB, free: 4.629 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.813e-05/0.2778, allocations: 59.41 kB / 1.056 GB, free: 4.559 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.378e-05/0.2779, allocations: 89.86 kB / 1.056 GB, free: 4.461 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.315e-05/0.2779, allocations: 29.7 kB / 1.056 GB, free: 4.426 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 3.114e-05/0.2779, allocations: 80.14 kB / 1.056 GB, free: 4.344 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 4.361e-05/0.278, allocations: 7.812 kB / 1.056 GB, free: 4.336 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.685e-05/0.278, allocations: 25.7 kB / 1.056 GB, free: 4.305 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001096/0.2781, allocations: 310.8 kB / 1.056 GB, free: 3.992 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005838/0.2787, allocations: 87.95 kB / 1.056 GB, free: 3.906 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005764/0.2793, allocations: 106.5 kB / 1.056 GB, free: 3.793 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001082/0.2804, allocations: 182.5 kB / 1.056 GB, free: 3.605 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.092e-06/0.2804, allocations: 3.938 kB / 1.056 GB, free: 3.602 MB / 0.8106 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.001181/0.2816, allocations: 221.5 kB / 1.057 GB, free: 3.379 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.948e-05/0.2816, allocations: 5.094 kB / 1.057 GB, free: 3.375 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.862e-06/0.2816, allocations: 4 kB / 1.057 GB, free: 3.371 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.293e-05/0.2817, allocations: 0 / 1.057 GB, free: 3.371 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003628/0.282, allocations: 51.94 kB / 1.057 GB, free: 3.32 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.346e-06/0.2821, allocations: 4 kB / 1.057 GB, free: 3.316 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003078/0.2824, allocations: 39.97 kB / 1.057 GB, free: 3.277 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.854e-05/0.2824, allocations: 4 kB / 1.057 GB, free: 3.273 MB / 0.8106 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 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.753e-05/0.2825, allocations: 113.8 kB / 1.057 GB, free: 3.152 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.002e-05/0.2825, allocations: 3.938 kB / 1.057 GB, free: 3.148 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0013/0.2838, allocations: 233.1 kB / 1.057 GB, free: 2.918 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.727e-06/0.2838, allocations: 0 / 1.057 GB, free: 2.918 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.589e-06/0.2839, allocations: 3.938 kB / 1.057 GB, free: 2.914 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.012e-06/0.2839, allocations: 7.984 kB / 1.057 GB, free: 2.906 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001416/0.2853, allocations: 458.3 kB / 1.058 GB, free: 2.402 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.2853, allocations: 0 / 1.058 GB, free: 2.402 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003699/0.2857, allocations: 47.97 kB / 1.058 GB, free: 2.355 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.514e-06/0.2857, allocations: 0 / 1.058 GB, free: 2.355 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.483e-05/0.2857, allocations: 0 / 1.058 GB, free: 2.355 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.657e-06/0.2857, allocations: 4 kB / 1.058 GB, free: 2.352 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.806e-06/0.2857, allocations: 8.25 kB / 1.058 GB, free: 2.344 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001189/0.2869, allocations: 307.8 kB / 1.058 GB, free: 2.027 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.87e-05/0.287, allocations: 77.11 kB / 1.058 GB, free: 1.934 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.365e-05/0.287, allocations: 4 kB / 1.058 GB, free: 1.93 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003469/0.2874, allocations: 35.98 kB / 1.058 GB, free: 1.895 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.648e-05/0.2874, allocations: 7.984 kB / 1.058 GB, free: 1.887 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.225e-05/0.2874, allocations: 3.984 kB / 1.058 GB, free: 1.883 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 2.604e-05/0.2874, allocations: 79.31 kB / 1.058 GB, free: 1.805 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.41e-07/0.2874, allocations: 4 kB / 1.058 GB, free: 1.801 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002483/0.2877, allocations: 16 kB / 1.058 GB, free: 1.785 MB / 0.8106 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 (5): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001507/0.2892, allocations: 0.8372 MB / 1.059 GB, free: 0.918 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.001175/0.2904, allocations: 180 kB / 1.059 GB, free: 0.7422 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.2904, allocations: 0 / 1.059 GB, free: 0.7422 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0005635/0.291, allocations: 92.02 kB / 1.059 GB, free: 0.6523 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002172/0.2912, allocations: 13.66 kB / 1.059 GB, free: 0.6406 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001235/0.2924, allocations: 252.2 kB / 1.059 GB, free: 360 kB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002547/0.2927, allocations: 0.6731 MB / 1.06 GB, free: 15.65 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0002219/0.2929, allocations: 28 kB / 1.06 GB, free: 15.62 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.86e-05/0.293, allocations: 18.17 kB / 1.06 GB, free: 15.61 MB / 0.8262 GB Notification: Performance of SimCode: time 5.11e-07/0.293, allocations: 0 / 1.06 GB, free: 15.61 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01134/0.3044, allocations: 1.493 MB / 1.062 GB, free: 14.26 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000195/0.3046, allocations: 231.5 kB / 1.062 GB, free: 14 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.616/1.92, allocations: 0.875 kB / 1.062 GB, free: 14 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Math_Functions_Examples_SmoothHeavisideDerivatives_fmu --startTime=-1 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_Math_Functions_Examples_SmoothHeavisideDerivatives.fmu > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Functions_Examples_SmoothHeavisideDerivatives.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,y,der(y),der2_y Variables in the result:der(der_y),der(y),der2_y,der_y,time,y