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.00122/0.001219, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001656/0.001656, allocations: 194.6 kB / 16.53 MB, free: 6.664 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.31/1.31, allocations: 222.9 MB / 240.2 MB, free: 4.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.668/2.668, allocations: 469.4 MB / 0.742 GB, free: 7.727 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001355/0.001355, allocations: 66.67 kB / 0.9083 GB, free: 34.45 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2987/0.3001, allocations: 159.1 MB / 1.064 GB, free: 14.53 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives): time 0.00176/0.3019, allocations: 0.6011 MB / 1.064 GB, free: 13.92 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001274/0.3032, allocations: 1.11 MB / 1.065 GB, free: 12.79 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.316e-05/0.3032, allocations: 0 / 1.065 GB, free: 12.79 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 1.404e-05/0.3033, allocations: 0 / 1.065 GB, free: 12.79 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0002178/0.3035, allocations: 15.92 kB / 1.065 GB, free: 12.78 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 3.717e-06/0.3035, allocations: 0 / 1.065 GB, free: 12.78 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 3.897e-05/0.3035, allocations: 7.922 kB / 1.065 GB, free: 12.77 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 4.476e-05/0.3036, allocations: 4 kB / 1.065 GB, free: 12.77 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 1.37e-05/0.3036, allocations: 4 kB / 1.065 GB, free: 12.76 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 2.252e-05/0.3036, allocations: 4 kB / 1.065 GB, free: 12.76 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 7.053e-06/0.3036, allocations: 3.938 kB / 1.065 GB, free: 12.75 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001019/0.3038, allocations: 15.98 kB / 1.065 GB, free: 12.74 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 7.244e-06/0.3038, allocations: 7.922 kB / 1.065 GB, free: 12.73 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 1.566e-05/0.3038, allocations: 7.984 kB / 1.065 GB, free: 12.72 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 6.925e-05/0.3039, allocations: 8 kB / 1.065 GB, free: 12.71 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.558e-06/0.3039, allocations: 4 kB / 1.065 GB, free: 12.71 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.705e-06/0.3039, allocations: 3.984 kB / 1.065 GB, free: 12.71 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.248e-06/0.3039, allocations: 0 / 1.065 GB, free: 12.71 MB / 0.8262 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.0002358/0.3041, allocations: 315.6 kB / 1.066 GB, free: 12.35 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.837e-05/0.3042, allocations: 12.03 kB / 1.066 GB, free: 12.34 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.924e-05/0.3042, allocations: 34.69 kB / 1.066 GB, free: 12.3 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.218e-05/0.3042, allocations: 0.9375 kB / 1.066 GB, free: 12.3 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.689e-05/0.3043, allocations: 164.4 kB / 1.066 GB, free: 12.1 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.048e-05/0.3043, allocations: 4.375 kB / 1.066 GB, free: 12.09 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.186e-05/0.3044, allocations: 4.375 kB / 1.066 GB, free: 12.09 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.013e-05/0.3045, allocations: 41.75 kB / 1.066 GB, free: 12.04 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.027e-06/0.3045, allocations: 0 / 1.066 GB, free: 12.04 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.672e-06/0.3045, allocations: 0 / 1.066 GB, free: 12.04 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.048e-06/0.3045, allocations: 7.938 kB / 1.066 GB, free: 12.04 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.524e-05/0.3045, allocations: 8 kB / 1.066 GB, free: 12.03 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001282/0.3047, allocations: 149.7 kB / 1.066 GB, free: 11.83 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001721/0.3048, allocations: 34.56 kB / 1.066 GB, free: 11.79 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.39e-05/0.3049, allocations: 16.94 kB / 1.066 GB, free: 11.77 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001372/0.305, allocations: 77.11 kB / 1.066 GB, free: 11.68 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.182e-05/0.3051, allocations: 46.44 kB / 1.066 GB, free: 11.62 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=3): time 1.272e-06/0.3051, allocations: 0 / 1.066 GB, free: 11.62 MB / 0.8262 GB Notification: Performance of matching and sorting (n=5): time 0.004399/0.3095, allocations: 0.5717 MB / 1.067 GB, free: 11.04 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.993e-05/0.3095, allocations: 51.41 kB / 1.067 GB, free: 10.98 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.818e-05/0.3095, allocations: 89.86 kB / 1.067 GB, free: 10.88 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.879e-05/0.3096, allocations: 25.7 kB / 1.067 GB, free: 10.85 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 2.178e-05/0.3096, allocations: 80.14 kB / 1.067 GB, free: 10.77 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 4.036e-05/0.3096, allocations: 19.8 kB / 1.067 GB, free: 10.75 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.317e-05/0.3097, allocations: 17.72 kB / 1.067 GB, free: 10.73 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 8.581e-05/0.3098, allocations: 318.8 kB / 1.067 GB, free: 10.41 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006266/0.3104, allocations: 79.95 kB / 1.068 GB, free: 10.33 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006264/0.3111, allocations: 106.6 kB / 1.068 GB, free: 10.21 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001228/0.3123, allocations: 190.4 kB / 1.068 GB, free: 10.02 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.3123, allocations: 0 / 1.068 GB, free: 10.02 MB / 0.8262 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.001321/0.3136, allocations: 217.5 kB / 1.068 GB, free: 9.801 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.348e-05/0.3137, allocations: 8 kB / 1.068 GB, free: 9.793 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.3e-06/0.3137, allocations: 0 / 1.068 GB, free: 9.793 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.169e-05/0.3137, allocations: 0 / 1.068 GB, free: 9.793 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004126/0.3141, allocations: 52 kB / 1.068 GB, free: 9.742 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.135e-06/0.3141, allocations: 3.984 kB / 1.068 GB, free: 9.738 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003639/0.3145, allocations: 39.98 kB / 1.068 GB, free: 9.699 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.429e-05/0.3145, allocations: 0 / 1.068 GB, free: 9.699 MB / 0.8262 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 8.749e-05/0.3146, allocations: 130.2 kB / 1.068 GB, free: 9.562 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.142e-05/0.3146, allocations: 3.938 kB / 1.068 GB, free: 9.559 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001425/0.3161, allocations: 233.1 kB / 1.068 GB, free: 9.328 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.655e-06/0.3161, allocations: 0 / 1.068 GB, free: 9.328 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.017e-06/0.3161, allocations: 0 / 1.068 GB, free: 9.328 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.745e-06/0.3161, allocations: 0 / 1.068 GB, free: 9.328 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00152/0.3176, allocations: 466.3 kB / 1.069 GB, free: 8.816 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.3176, allocations: 0 / 1.069 GB, free: 8.816 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003969/0.318, allocations: 47.97 kB / 1.069 GB, free: 8.77 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.578e-06/0.318, allocations: 4 kB / 1.069 GB, free: 8.766 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.305e-05/0.3181, allocations: 0 / 1.069 GB, free: 8.766 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.302e-06/0.3181, allocations: 0 / 1.069 GB, free: 8.766 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.3181, allocations: 0 / 1.069 GB, free: 8.766 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001336/0.3194, allocations: 315.6 kB / 1.069 GB, free: 8.441 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 2.646e-05/0.3194, allocations: 81.05 kB / 1.069 GB, free: 8.344 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.738e-05/0.3195, allocations: 8.047 kB / 1.069 GB, free: 8.336 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003869/0.3199, allocations: 39.98 kB / 1.069 GB, free: 8.297 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.153e-05/0.3199, allocations: 0 / 1.069 GB, free: 8.297 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.245e-05/0.3199, allocations: 4 kB / 1.069 GB, free: 8.293 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 2.522e-05/0.3199, allocations: 75.28 kB / 1.069 GB, free: 8.219 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3199, allocations: 0 / 1.069 GB, free: 8.219 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002535/0.3202, allocations: 19.98 kB / 1.069 GB, free: 8.199 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.001632/0.3218, allocations: 0.838 MB / 1.07 GB, free: 7.332 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.001321/0.3232, allocations: 183.9 kB / 1.07 GB, free: 7.152 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.3232, allocations: 0 / 1.07 GB, free: 7.152 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0006493/0.3238, allocations: 96 kB / 1.071 GB, free: 7.059 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002159/0.3241, allocations: 5.125 kB / 1.071 GB, free: 7.055 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001349/0.3254, allocations: 246.4 kB / 1.071 GB, free: 6.773 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001971/0.3256, allocations: 0.6768 MB / 1.071 GB, free: 6.07 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.00022/0.3259, allocations: 24 kB / 1.071 GB, free: 6.047 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.349e-05/0.3259, allocations: 19.44 kB / 1.071 GB, free: 6.027 MB / 0.8262 GB Notification: Performance of SimCode: time 3.31e-07/0.3259, allocations: 0 / 1.071 GB, free: 6.027 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0186/0.3445, allocations: 1.616 MB / 1.073 GB, free: 4.531 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.099/7.443, allocations: 1.625 kB / 1.073 GB, free: 4.531 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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives_res.csv --start-time -1 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 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.csv","/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:time,der(der_y),der(y),der2_y,der_y,y