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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001584/0.001584, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001914/0.001914, allocations: 191.9 kB / 16.25 MB, free: 6.629 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.622/1.622, allocations: 222.9 MB / 239.9 MB, free: 4.52 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.788/2.788, allocations: 461.9 MB / 0.7344 GB, free: 15 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001328/0.001328, allocations: 67.86 kB / 0.8987 GB, free: 37.14 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3008/0.3021, allocations: 157.4 MB / 1.052 GB, free: 8.66 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives): time 0.002156/0.3043, allocations: 0.6604 MB / 1.053 GB, free: 7.996 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001575/0.3059, allocations: 1.116 MB / 1.054 GB, free: 6.863 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.493e-05/0.306, allocations: 4 kB / 1.054 GB, free: 6.859 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.757e-05/0.306, allocations: 0 / 1.054 GB, free: 6.859 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0002613/0.3063, allocations: 19.92 kB / 1.054 GB, free: 6.84 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 3.577e-06/0.3063, allocations: 0 / 1.054 GB, free: 6.84 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 3.969e-05/0.3063, allocations: 8 kB / 1.054 GB, free: 6.832 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 4.434e-05/0.3064, allocations: 0 / 1.054 GB, free: 6.832 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 1.586e-05/0.3064, allocations: 0 / 1.054 GB, free: 6.832 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 2.626e-05/0.3064, allocations: 3.984 kB / 1.054 GB, free: 6.828 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 8.706e-06/0.3065, allocations: 4 kB / 1.054 GB, free: 6.824 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001075/0.3066, allocations: 23.86 kB / 1.054 GB, free: 6.801 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 8.175e-06/0.3066, allocations: 3.984 kB / 1.054 GB, free: 6.797 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 1.374e-05/0.3066, allocations: 4 kB / 1.054 GB, free: 6.793 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 8.411e-05/0.3067, allocations: 11.98 kB / 1.054 GB, free: 6.781 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.891e-06/0.3067, allocations: 3.984 kB / 1.054 GB, free: 6.777 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.463e-06/0.3067, allocations: 0 / 1.054 GB, free: 6.777 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.451e-06/0.3067, allocations: 0 / 1.054 GB, free: 6.777 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.0003066/0.3071, allocations: 315.6 kB / 1.055 GB, free: 6.422 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.208e-05/0.3071, allocations: 12.56 kB / 1.055 GB, free: 6.41 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.072e-05/0.3072, allocations: 34.75 kB / 1.055 GB, free: 6.367 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.869e-05/0.3072, allocations: 12.86 kB / 1.055 GB, free: 6.355 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001048/0.3073, allocations: 172.3 kB / 1.055 GB, free: 6.148 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.22e-05/0.3073, allocations: 384 / 1.055 GB, free: 6.148 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.225e-05/0.3074, allocations: 384 / 1.055 GB, free: 6.148 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001093/0.3075, allocations: 37.81 kB / 1.055 GB, free: 6.105 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.059e-05/0.3075, allocations: 0 / 1.055 GB, free: 6.105 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.011e-05/0.3075, allocations: 4 kB / 1.055 GB, free: 6.102 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.941e-06/0.3075, allocations: 4 kB / 1.055 GB, free: 6.098 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.674e-05/0.3076, allocations: 0 / 1.055 GB, free: 6.098 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001563/0.3077, allocations: 153.7 kB / 1.055 GB, free: 5.898 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002056/0.3079, allocations: 38.5 kB / 1.055 GB, free: 5.852 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.442e-05/0.308, allocations: 16.94 kB / 1.055 GB, free: 5.832 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001614/0.3081, allocations: 81.11 kB / 1.055 GB, free: 5.734 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.461e-05/0.3082, allocations: 34.5 kB / 1.055 GB, free: 5.691 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=3): time 1.213e-06/0.3082, allocations: 0 / 1.055 GB, free: 5.691 MB / 0.8106 GB Notification: Performance of matching and sorting (n=5): time 0.004675/0.3129, allocations: 0.5717 MB / 1.056 GB, free: 5.113 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.979e-05/0.3129, allocations: 51.41 kB / 1.056 GB, free: 5.051 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.63e-05/0.313, allocations: 93.86 kB / 1.056 GB, free: 4.949 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.411e-05/0.313, allocations: 29.7 kB / 1.056 GB, free: 4.914 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 3.381e-05/0.313, allocations: 80.14 kB / 1.056 GB, free: 4.832 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 4.172e-05/0.3131, allocations: 15.8 kB / 1.056 GB, free: 4.816 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.997e-05/0.3132, allocations: 17.72 kB / 1.056 GB, free: 4.793 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001115/0.3133, allocations: 318.8 kB / 1.056 GB, free: 4.473 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006343/0.3139, allocations: 79.95 kB / 1.056 GB, free: 4.395 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006392/0.3146, allocations: 106.5 kB / 1.056 GB, free: 4.281 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00119/0.3158, allocations: 186.5 kB / 1.057 GB, free: 4.09 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.3158, allocations: 0 / 1.057 GB, free: 4.09 MB / 0.8106 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.001257/0.317, allocations: 221.5 kB / 1.057 GB, free: 3.867 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.683e-05/0.3171, allocations: 4 kB / 1.057 GB, free: 3.863 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.032e-06/0.3171, allocations: 0 / 1.057 GB, free: 3.863 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.405e-05/0.3171, allocations: 4 kB / 1.057 GB, free: 3.859 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003977/0.3175, allocations: 51.94 kB / 1.057 GB, free: 3.809 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.871e-06/0.3175, allocations: 0 / 1.057 GB, free: 3.809 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003386/0.3179, allocations: 39.98 kB / 1.057 GB, free: 3.77 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.725e-05/0.3179, allocations: 4 kB / 1.057 GB, free: 3.766 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 0.000101/0.318, allocations: 115.4 kB / 1.057 GB, free: 3.645 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.29e-05/0.318, allocations: 11.88 kB / 1.057 GB, free: 3.633 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001423/0.3195, allocations: 233.1 kB / 1.057 GB, free: 3.402 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.687e-06/0.3195, allocations: 0 / 1.057 GB, free: 3.402 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.988e-06/0.3195, allocations: 0 / 1.057 GB, free: 3.402 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.326e-06/0.3195, allocations: 3.938 kB / 1.057 GB, free: 3.398 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001878/0.3214, allocations: 466.5 kB / 1.058 GB, free: 2.887 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.297e-06/0.3214, allocations: 0 / 1.058 GB, free: 2.887 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004266/0.3218, allocations: 51.97 kB / 1.058 GB, free: 2.836 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.968e-06/0.3218, allocations: 0 / 1.058 GB, free: 2.836 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.977e-05/0.3219, allocations: 8 kB / 1.058 GB, free: 2.828 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.884e-06/0.3219, allocations: 0 / 1.058 GB, free: 2.828 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.833e-06/0.3219, allocations: 0 / 1.058 GB, free: 2.828 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001475/0.3234, allocations: 307.3 kB / 1.058 GB, free: 2.512 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.058e-05/0.3234, allocations: 77.11 kB / 1.058 GB, free: 2.418 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.734e-05/0.3235, allocations: 3.984 kB / 1.058 GB, free: 2.414 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004363/0.3239, allocations: 39.98 kB / 1.058 GB, free: 2.375 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.329e-05/0.3239, allocations: 0 / 1.058 GB, free: 2.375 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.397e-05/0.3239, allocations: 8 kB / 1.058 GB, free: 2.367 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 3.842e-05/0.324, allocations: 79.28 kB / 1.058 GB, free: 2.289 MB / 0.8106 GB Notification: Performance of sort global known variables: time 3.91e-07/0.324, allocations: 0 / 1.058 GB, free: 2.289 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.00028/0.3243, allocations: 11.98 kB / 1.058 GB, free: 2.277 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.001774/0.3261, allocations: 0.8451 MB / 1.059 GB, free: 1.402 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.001427/0.3275, allocations: 180 kB / 1.059 GB, free: 1.227 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.3275, allocations: 3.938 kB / 1.059 GB, free: 1.223 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.000662/0.3282, allocations: 92.06 kB / 1.059 GB, free: 1.133 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002312/0.3284, allocations: 4 kB / 1.059 GB, free: 1.129 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001429/0.3299, allocations: 250.4 kB / 1.06 GB, free: 0.8438 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002561/0.3301, allocations: 0.6768 MB / 1.06 GB, free: 144 kB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.0002547/0.3304, allocations: 31.98 kB / 1.06 GB, free: 112 kB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.98e-05/0.3305, allocations: 11.44 kB / 1.06 GB, free: 100 kB / 0.8106 GB Notification: Performance of SimCode: time 3.71e-07/0.3305, allocations: 0 / 1.06 GB, free: 100 kB / 0.8106 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.013/0.3435, allocations: 1.537 MB / 1.062 GB, free: 14.73 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002894/0.3438, allocations: 227.8 kB / 1.062 GB, free: 14.47 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.884/2.228, allocations: 1.719 kB / 1.062 GB, free: 14.47 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