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.0008389/0.0008389, allocations: 90.52 kB / 15.36 MB, free: 0.7383 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.005376/0.005376, allocations: 171.1 kB / 16.26 MB, free: 6.613 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.345/1.345, allocations: 223.3 MB / 240.3 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.67/2.67, allocations: 462.6 MB / 0.7364 GB, free: 15.57 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003222/0.0003221, allocations: 12.97 kB / 0.9029 GB, free: 36.48 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2766/0.277, allocations: 159.6 MB / 1.059 GB, free: 4.824 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives): time 0.0006691/0.2777, allocations: 330.8 kB / 1.059 GB, free: 4.5 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001406/0.2791, allocations: 1.108 MB / 1.06 GB, free: 3.375 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.15e-05/0.2791, allocations: 0 / 1.06 GB, free: 3.375 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.243e-05/0.2792, allocations: 0 / 1.06 GB, free: 3.375 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001949/0.2794, allocations: 15.94 kB / 1.06 GB, free: 3.359 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 2.284e-06/0.2794, allocations: 0 / 1.06 GB, free: 3.359 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 3.017e-05/0.2794, allocations: 3.984 kB / 1.06 GB, free: 3.355 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 3.969e-05/0.2795, allocations: 0 / 1.06 GB, free: 3.355 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 1.394e-05/0.2795, allocations: 7.984 kB / 1.06 GB, free: 3.348 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 2.179e-05/0.2795, allocations: 8 kB / 1.06 GB, free: 3.34 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 6.983e-06/0.2795, allocations: 0 / 1.06 GB, free: 3.34 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 9.905e-05/0.2796, allocations: 19.92 kB / 1.06 GB, free: 3.32 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 8.756e-06/0.2796, allocations: 3.938 kB / 1.06 GB, free: 3.316 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 2.249e-05/0.2797, allocations: 29.69 kB / 1.06 GB, free: 3.281 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 6.451e-05/0.2797, allocations: 11.98 kB / 1.06 GB, free: 3.27 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.2798, allocations: 0 / 1.06 GB, free: 3.27 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.323e-06/0.2798, allocations: 0 / 1.06 GB, free: 3.27 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.296e-06/0.2798, allocations: 0 / 1.06 GB, free: 3.27 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.000246/0.28, allocations: 319.6 kB / 1.061 GB, free: 2.91 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.79e-05/0.2801, allocations: 15.97 kB / 1.061 GB, free: 2.895 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.079e-05/0.2801, allocations: 30.75 kB / 1.061 GB, free: 2.855 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.827e-05/0.2801, allocations: 0.9375 kB / 1.061 GB, free: 2.855 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.335e-05/0.2802, allocations: 164.4 kB / 1.061 GB, free: 2.656 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.858e-06/0.2802, allocations: 8.25 kB / 1.061 GB, free: 2.648 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.76e-05/0.2803, allocations: 384 / 1.061 GB, free: 2.648 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.892e-05/0.2804, allocations: 41.81 kB / 1.061 GB, free: 2.602 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.608e-06/0.2804, allocations: 0 / 1.061 GB, free: 2.602 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.941e-06/0.2804, allocations: 0 / 1.061 GB, free: 2.602 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.057e-06/0.2804, allocations: 0 / 1.061 GB, free: 2.602 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.171e-05/0.2804, allocations: 8 kB / 1.061 GB, free: 2.594 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001367/0.2806, allocations: 153.7 kB / 1.061 GB, free: 2.395 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001576/0.2807, allocations: 38.55 kB / 1.061 GB, free: 2.348 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.076e-05/0.2808, allocations: 8.859 kB / 1.061 GB, free: 2.336 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001354/0.2809, allocations: 81.11 kB / 1.061 GB, free: 2.238 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.464e-05/0.2809, allocations: 42.58 kB / 1.061 GB, free: 2.188 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=3): time 1.082e-06/0.2809, allocations: 4 kB / 1.061 GB, free: 2.184 MB / 0.8106 GB Notification: Performance of matching and sorting (n=5): time 0.004341/0.2853, allocations: 0.5678 MB / 1.062 GB, free: 1.609 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.049e-05/0.2853, allocations: 55.34 kB / 1.062 GB, free: 1.543 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.421e-05/0.2854, allocations: 93.86 kB / 1.062 GB, free: 1.441 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.067e-05/0.2854, allocations: 29.7 kB / 1.062 GB, free: 1.406 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 2.932e-05/0.2854, allocations: 80.14 kB / 1.062 GB, free: 1.324 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 3.55e-05/0.2855, allocations: 7.812 kB / 1.062 GB, free: 1.316 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.334e-05/0.2855, allocations: 13.72 kB / 1.062 GB, free: 1.297 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.944e-05/0.2856, allocations: 318.8 kB / 1.062 GB, free: 0.9766 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006129/0.2862, allocations: 79.94 kB / 1.062 GB, free: 0.8984 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000605/0.2869, allocations: 106.5 kB / 1.062 GB, free: 0.7852 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00121/0.2881, allocations: 194.4 kB / 1.063 GB, free: 0.5859 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.413e-06/0.2881, allocations: 0 / 1.063 GB, free: 0.5859 MB / 0.8106 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.001272/0.2894, allocations: 209.5 kB / 1.063 GB, free: 384 kB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.547e-05/0.2894, allocations: 7.984 kB / 1.063 GB, free: 376 kB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.133e-06/0.2894, allocations: 4 kB / 1.063 GB, free: 372 kB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.938e-06/0.2894, allocations: 0 / 1.063 GB, free: 372 kB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003947/0.2898, allocations: 48.42 kB / 1.063 GB, free: 324 kB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.458e-06/0.2898, allocations: 7.938 kB / 1.063 GB, free: 316 kB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003513/0.2902, allocations: 35.98 kB / 1.063 GB, free: 280 kB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.482e-05/0.2902, allocations: 4 kB / 1.063 GB, free: 276 kB / 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 7.846e-05/0.2903, allocations: 109.8 kB / 1.063 GB, free: 156 kB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.028e-05/0.2903, allocations: 15.92 kB / 1.063 GB, free: 140 kB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001401/0.2917, allocations: 229.3 kB / 1.063 GB, free: 15.91 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.088e-06/0.2917, allocations: 7.922 kB / 1.063 GB, free: 15.9 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.8e-06/0.2918, allocations: 4.062 kB / 1.063 GB, free: 15.9 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.614e-06/0.2918, allocations: 0 / 1.063 GB, free: 15.9 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001542/0.2933, allocations: 470.3 kB / 1.064 GB, free: 15.38 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.605e-06/0.2933, allocations: 0 / 1.064 GB, free: 15.38 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003918/0.2937, allocations: 51.97 kB / 1.064 GB, free: 15.33 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.216e-06/0.2937, allocations: 0 / 1.064 GB, free: 15.33 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.366e-05/0.2938, allocations: 0 / 1.064 GB, free: 15.33 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.014e-06/0.2938, allocations: 0 / 1.064 GB, free: 15.33 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.2938, allocations: 4 kB / 1.064 GB, free: 15.33 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001335/0.2951, allocations: 303.3 kB / 1.064 GB, free: 15.02 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.356e-05/0.2952, allocations: 81.11 kB / 1.064 GB, free: 14.92 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.267e-05/0.2952, allocations: 4 kB / 1.064 GB, free: 14.91 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003856/0.2956, allocations: 39.97 kB / 1.064 GB, free: 14.88 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.16e-05/0.2956, allocations: 8 kB / 1.064 GB, free: 14.87 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.019e-05/0.2956, allocations: 0 / 1.064 GB, free: 14.87 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 3.743e-05/0.2957, allocations: 79.31 kB / 1.064 GB, free: 14.79 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2957, allocations: 0 / 1.064 GB, free: 14.79 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002517/0.2959, allocations: 12 kB / 1.064 GB, free: 14.78 MB / 0.8262 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.001627/0.2976, allocations: 0.8528 MB / 1.065 GB, free: 13.89 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.001249/0.2988, allocations: 172 kB / 1.065 GB, free: 13.73 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.2988, allocations: 0 / 1.065 GB, free: 13.73 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0006282/0.2995, allocations: 92.02 kB / 1.065 GB, free: 13.64 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002225/0.2997, allocations: 11.12 kB / 1.065 GB, free: 13.63 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00129/0.301, allocations: 256.2 kB / 1.066 GB, free: 13.34 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002354/0.3012, allocations: 0.677 MB / 1.066 GB, free: 12.63 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0002214/0.3015, allocations: 24 kB / 1.066 GB, free: 12.61 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.003e-05/0.3016, allocations: 11.44 kB / 1.066 GB, free: 12.6 MB / 0.8262 GB Notification: Performance of SimCode: time 4.11e-07/0.3016, allocations: 4 kB / 1.066 GB, free: 12.59 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01053/0.3121, allocations: 1.442 MB / 1.068 GB, free: 11.33 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001779/0.3123, allocations: 226.2 kB / 1.068 GB, free: 11.07 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.749/2.061, allocations: 11.22 kB / 1.068 GB, free: 11.07 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