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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.008152/0.008152, allocations: 100.3 kB / 15.73 MB, free: 6.484 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.001957/0.001957, allocations: 189.1 kB / 16.68 MB, free: 6.367 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.468/1.468, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.933/2.933, allocations: 472.7 MB / 0.7453 GB, free: 4.523 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001552/0.001552, allocations: 63.89 kB / 1.069 GB, free: 9.648 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3288/0.3304, allocations: 159.9 MB / 1.225 GB, free: 9.617 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives): time 0.001723/0.3321, allocations: 0.5963 MB / 1.226 GB, free: 9.027 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001367/0.3335, allocations: 1.108 MB / 1.227 GB, free: 7.902 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.493e-05/0.3336, allocations: 0 / 1.227 GB, free: 7.902 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 1.221e-05/0.3336, allocations: 0 / 1.227 GB, free: 7.902 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0002438/0.3339, allocations: 19.91 kB / 1.227 GB, free: 7.883 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 3.777e-06/0.3339, allocations: 4 kB / 1.227 GB, free: 7.879 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 3.83e-05/0.3339, allocations: 4 kB / 1.227 GB, free: 7.875 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 4.514e-05/0.334, allocations: 3.938 kB / 1.227 GB, free: 7.871 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 1.353e-05/0.334, allocations: 4 kB / 1.227 GB, free: 7.867 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 2.12e-05/0.334, allocations: 3.938 kB / 1.227 GB, free: 7.863 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 6.983e-06/0.334, allocations: 3.938 kB / 1.227 GB, free: 7.859 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001066/0.3341, allocations: 19.97 kB / 1.227 GB, free: 7.84 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 5.48e-06/0.3342, allocations: 0 / 1.227 GB, free: 7.84 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 1.575e-05/0.3342, allocations: 7.938 kB / 1.227 GB, free: 7.832 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 7.951e-05/0.3343, allocations: 15.97 kB / 1.227 GB, free: 7.816 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.396e-06/0.3343, allocations: 0 / 1.227 GB, free: 7.816 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.603e-06/0.3343, allocations: 4 kB / 1.227 GB, free: 7.812 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 8.175e-06/0.3343, allocations: 0 / 1.227 GB, free: 7.812 MB / 0.9825 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.0002603/0.3346, allocations: 323.4 kB / 1.227 GB, free: 7.449 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.808e-05/0.3346, allocations: 12.03 kB / 1.227 GB, free: 7.438 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.455e-05/0.3346, allocations: 34.75 kB / 1.227 GB, free: 7.395 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.285e-05/0.3347, allocations: 0.9375 kB / 1.227 GB, free: 7.395 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.201e-05/0.3348, allocations: 164.4 kB / 1.228 GB, free: 7.195 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.109e-05/0.3348, allocations: 384 / 1.228 GB, free: 7.195 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.392e-05/0.3348, allocations: 4.375 kB / 1.228 GB, free: 7.191 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.362e-05/0.3349, allocations: 41.83 kB / 1.228 GB, free: 7.145 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.056e-05/0.3349, allocations: 0 / 1.228 GB, free: 7.145 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.434e-06/0.3349, allocations: 3.938 kB / 1.228 GB, free: 7.141 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.883e-06/0.3349, allocations: 0 / 1.228 GB, free: 7.141 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.5e-05/0.335, allocations: 7.984 kB / 1.228 GB, free: 7.133 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001357/0.3351, allocations: 157.7 kB / 1.228 GB, free: 6.93 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001735/0.3353, allocations: 26.58 kB / 1.228 GB, free: 6.895 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.381e-05/0.3353, allocations: 20.94 kB / 1.228 GB, free: 6.871 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001323/0.3355, allocations: 77.11 kB / 1.228 GB, free: 6.777 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.506e-05/0.3355, allocations: 42.44 kB / 1.228 GB, free: 6.727 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=3): time 1.202e-06/0.3355, allocations: 0 / 1.228 GB, free: 6.727 MB / 0.9825 GB Notification: Performance of matching and sorting (n=5): time 0.004265/0.3398, allocations: 0.5756 MB / 1.228 GB, free: 6.145 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.199e-05/0.3398, allocations: 51.41 kB / 1.228 GB, free: 6.082 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.826e-05/0.3399, allocations: 89.86 kB / 1.229 GB, free: 5.984 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.867e-05/0.3399, allocations: 29.7 kB / 1.229 GB, free: 5.949 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 2.436e-05/0.3399, allocations: 80.14 kB / 1.229 GB, free: 5.867 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 3.641e-05/0.34, allocations: 19.89 kB / 1.229 GB, free: 5.848 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.282e-05/0.34, allocations: 17.72 kB / 1.229 GB, free: 5.824 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 9.213e-05/0.3401, allocations: 310.8 kB / 1.229 GB, free: 5.512 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006181/0.3408, allocations: 87.94 kB / 1.229 GB, free: 5.426 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006265/0.3414, allocations: 102.5 kB / 1.229 GB, free: 5.316 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001209/0.3426, allocations: 194.4 kB / 1.229 GB, free: 5.117 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.423e-06/0.3426, allocations: 0 / 1.229 GB, free: 5.117 MB / 0.9825 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.001284/0.3439, allocations: 213.5 kB / 1.23 GB, free: 4.902 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.621e-05/0.3439, allocations: 7.984 kB / 1.23 GB, free: 4.895 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.489e-06/0.344, allocations: 0 / 1.23 GB, free: 4.895 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.436e-05/0.344, allocations: 7.938 kB / 1.23 GB, free: 4.887 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004029/0.3444, allocations: 48 kB / 1.23 GB, free: 4.84 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.767e-06/0.3444, allocations: 4 kB / 1.23 GB, free: 4.836 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003547/0.3448, allocations: 39.92 kB / 1.23 GB, free: 4.797 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.603e-05/0.3448, allocations: 4 kB / 1.23 GB, free: 4.793 MB / 0.9825 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.857e-05/0.3449, allocations: 109.8 kB / 1.23 GB, free: 4.676 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.135e-05/0.3449, allocations: 11.92 kB / 1.23 GB, free: 4.664 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001424/0.3463, allocations: 237 kB / 1.23 GB, free: 4.426 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.696e-06/0.3463, allocations: 0 / 1.23 GB, free: 4.426 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.927e-06/0.3464, allocations: 0 / 1.23 GB, free: 4.426 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.036e-06/0.3464, allocations: 0 / 1.23 GB, free: 4.426 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001538/0.3479, allocations: 462.3 kB / 1.23 GB, free: 3.918 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.324e-06/0.3479, allocations: 4 kB / 1.23 GB, free: 3.914 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003996/0.3483, allocations: 52.28 kB / 1.231 GB, free: 3.863 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.166e-06/0.3483, allocations: 0 / 1.231 GB, free: 3.863 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.729e-05/0.3484, allocations: 4 kB / 1.231 GB, free: 3.859 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.764e-06/0.3484, allocations: 0 / 1.231 GB, free: 3.859 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.3484, allocations: 4 kB / 1.231 GB, free: 3.855 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001327/0.3497, allocations: 299.4 kB / 1.231 GB, free: 3.547 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 3.252e-05/0.3497, allocations: 77.11 kB / 1.231 GB, free: 3.453 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.265e-05/0.3498, allocations: 8 kB / 1.231 GB, free: 3.445 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003798/0.3502, allocations: 35.97 kB / 1.231 GB, free: 3.41 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.602e-05/0.3502, allocations: 15.94 kB / 1.231 GB, free: 3.395 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.194e-05/0.3502, allocations: 0 / 1.231 GB, free: 3.395 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 2.632e-05/0.3502, allocations: 75.28 kB / 1.231 GB, free: 3.32 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1e-07/0.3502, allocations: 0 / 1.231 GB, free: 3.32 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002602/0.3505, allocations: 15.94 kB / 1.231 GB, free: 3.305 MB / 0.9825 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.001621/0.3521, allocations: 0.8452 MB / 1.232 GB, free: 2.43 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.001285/0.3534, allocations: 175.9 kB / 1.232 GB, free: 2.258 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.3534, allocations: 0 / 1.232 GB, free: 2.258 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0006129/0.3541, allocations: 92.06 kB / 1.232 GB, free: 2.168 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002249/0.3543, allocations: 9.719 kB / 1.232 GB, free: 2.16 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0013/0.3556, allocations: 242.6 kB / 1.232 GB, free: 1.883 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002176/0.3558, allocations: 0.6768 MB / 1.233 GB, free: 1.18 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.0001808/0.356, allocations: 28.25 kB / 1.233 GB, free: 1.152 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.295e-05/0.3561, allocations: 11.44 kB / 1.233 GB, free: 1.141 MB / 0.9825 GB Notification: Performance of SimCode: time 1.513e-06/0.3561, allocations: 0 / 1.233 GB, free: 1.141 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01793/0.3741, allocations: 1.652 MB / 1.235 GB, free: 15.63 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.496/7.87, allocations: 16.28 kB / 1.235 GB, free: 15.62 MB / 0.9981 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) Reference file matches