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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001748/0.001748, allocations: 107.6 kB / 18.95 MB, free: 2.809 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002123/0.002123, allocations: 214.4 kB / 22.25 MB, free: 5.117 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.66/1.66, allocations: 230.6 MB / 256 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.452/3.452, allocations: 0.5107 GB / 0.8158 GB, free: 17.82 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00209/0.00209, allocations: 71.27 kB / 1.186 GB, free: 13.75 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.409/0.4111, allocations: 181.9 MB / 1.363 GB, free: 14.04 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives): time 0.001775/0.4129, allocations: 0.5992 MB / 1.364 GB, free: 13.44 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001566/0.4144, allocations: 1.132 MB / 1.365 GB, free: 12.29 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.064e-05/0.4145, allocations: 4 kB / 1.365 GB, free: 12.29 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 1.367e-05/0.4145, allocations: 0 / 1.365 GB, free: 12.29 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.0002573/0.4147, allocations: 19.88 kB / 1.365 GB, free: 12.27 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 4.519e-06/0.4147, allocations: 0 / 1.365 GB, free: 12.27 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 4.26e-05/0.4148, allocations: 8 kB / 1.365 GB, free: 12.26 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 4.507e-05/0.4148, allocations: 3.984 kB / 1.365 GB, free: 12.25 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 2.224e-05/0.4148, allocations: 7.984 kB / 1.365 GB, free: 12.25 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 2.942e-05/0.4149, allocations: 3.938 kB / 1.365 GB, free: 12.24 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 8.797e-06/0.4149, allocations: 0 / 1.365 GB, free: 12.24 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001139/0.415, allocations: 15.94 kB / 1.365 GB, free: 12.23 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 9.798e-06/0.415, allocations: 0 / 1.365 GB, free: 12.23 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 1.863e-05/0.415, allocations: 3.984 kB / 1.365 GB, free: 12.22 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 8.618e-05/0.4151, allocations: 16.2 kB / 1.365 GB, free: 12.21 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/0.4151, allocations: 0 / 1.365 GB, free: 12.21 MB / 1.061 GB Notification: Performance of FrontEnd: time 2.094e-06/0.4151, allocations: 0 / 1.365 GB, free: 12.21 MB / 1.061 GB Notification: Performance of Transformations before backend: time 6.893e-06/0.4151, allocations: 4 kB / 1.365 GB, free: 12.2 MB / 1.061 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.000318/0.4154, allocations: 242.4 kB / 1.365 GB, free: 11.94 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.433e-05/0.4155, allocations: 12.03 kB / 1.365 GB, free: 11.93 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.731e-05/0.4155, allocations: 30.75 kB / 1.365 GB, free: 11.89 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002549/0.4158, allocations: 16.91 kB / 1.365 GB, free: 11.87 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.773e-05/0.4159, allocations: 110.5 kB / 1.366 GB, free: 11.74 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.047e-05/0.4159, allocations: 384 / 1.366 GB, free: 11.74 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.481e-05/0.4159, allocations: 4.375 kB / 1.366 GB, free: 11.73 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001114/0.416, allocations: 41.75 kB / 1.366 GB, free: 11.69 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.167e-05/0.416, allocations: 0 / 1.366 GB, free: 11.69 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.355e-06/0.416, allocations: 4 kB / 1.366 GB, free: 11.68 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.829e-06/0.416, allocations: 0 / 1.366 GB, free: 11.68 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.827e-05/0.4161, allocations: 11.98 kB / 1.366 GB, free: 11.67 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001547/0.4162, allocations: 120.8 kB / 1.366 GB, free: 11.51 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001857/0.4164, allocations: 34.55 kB / 1.366 GB, free: 11.47 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.897e-05/0.4164, allocations: 12.86 kB / 1.366 GB, free: 11.45 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 2.135e-05/0.4165, allocations: 0 / 1.366 GB, free: 11.45 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.108e-05/0.4165, allocations: 38.5 kB / 1.366 GB, free: 11.41 MB / 1.061 GB Notification: Performance of pre-optimization done (n=3): time 8.52e-07/0.4165, allocations: 0 / 1.366 GB, free: 11.41 MB / 1.061 GB Notification: Performance of matching and sorting (n=5): time 0.003941/0.4204, allocations: 0.5408 MB / 1.366 GB, free: 10.86 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.276e-05/0.4205, allocations: 51.41 kB / 1.366 GB, free: 10.8 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.953e-05/0.4205, allocations: 93.84 kB / 1.367 GB, free: 10.7 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 2.379e-05/0.4206, allocations: 25.7 kB / 1.367 GB, free: 10.66 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 3.1e-05/0.4206, allocations: 84.14 kB / 1.367 GB, free: 10.58 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 4.402e-05/0.4206, allocations: 23.78 kB / 1.367 GB, free: 10.55 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.71e-05/0.4207, allocations: 17.7 kB / 1.367 GB, free: 10.53 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001362/0.4209, allocations: 314.8 kB / 1.367 GB, free: 10.21 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005864/0.4215, allocations: 83.95 kB / 1.367 GB, free: 10.13 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005993/0.4221, allocations: 102.5 kB / 1.367 GB, free: 10.02 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001186/0.4232, allocations: 190.4 kB / 1.367 GB, free: 9.828 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.062e-06/0.4232, allocations: 0 / 1.367 GB, free: 9.828 MB / 1.061 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.00124/0.4245, allocations: 221.5 kB / 1.368 GB, free: 9.605 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.736e-05/0.4245, allocations: 4 kB / 1.368 GB, free: 9.602 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.74e-06/0.4245, allocations: 0 / 1.368 GB, free: 9.602 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.708e-05/0.4245, allocations: 4 kB / 1.368 GB, free: 9.598 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004209/0.4249, allocations: 48 kB / 1.368 GB, free: 9.551 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.288e-06/0.425, allocations: 4 kB / 1.368 GB, free: 9.547 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003458/0.4253, allocations: 43.95 kB / 1.368 GB, free: 9.504 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.382e-05/0.4253, allocations: 4 kB / 1.368 GB, free: 9.5 MB / 1.061 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.0001045/0.4254, allocations: 121.8 kB / 1.368 GB, free: 9.371 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.886e-05/0.4254, allocations: 3.938 kB / 1.368 GB, free: 9.367 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.637e-05/0.4255, allocations: 11.53 kB / 1.368 GB, free: 9.348 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.424e-06/0.4255, allocations: 0 / 1.368 GB, free: 9.348 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.332e-06/0.4255, allocations: 4 kB / 1.368 GB, free: 9.344 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.745e-06/0.4255, allocations: 0 / 1.368 GB, free: 9.344 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001551/0.4271, allocations: 425.7 kB / 1.368 GB, free: 8.879 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.884e-06/0.4271, allocations: 3.938 kB / 1.368 GB, free: 8.875 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000387/0.4275, allocations: 51.97 kB / 1.368 GB, free: 8.824 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.06e-06/0.4275, allocations: 3.984 kB / 1.368 GB, free: 8.82 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.677e-05/0.4275, allocations: 4 kB / 1.368 GB, free: 8.816 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.983e-06/0.4275, allocations: 4 kB / 1.368 GB, free: 8.812 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.313e-06/0.4275, allocations: 0 / 1.368 GB, free: 8.812 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001317/0.4288, allocations: 303.4 kB / 1.369 GB, free: 8.5 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 8.176e-06/0.4288, allocations: 4 kB / 1.369 GB, free: 8.496 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.244e-05/0.4288, allocations: 0 / 1.369 GB, free: 8.496 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003827/0.4292, allocations: 39.98 kB / 1.369 GB, free: 8.457 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.553e-05/0.4292, allocations: 3.984 kB / 1.369 GB, free: 8.453 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.417e-05/0.4292, allocations: 8 kB / 1.369 GB, free: 8.445 MB / 1.061 GB Notification: Performance of sorting global known variables: time 3.612e-05/0.4293, allocations: 75.28 kB / 1.369 GB, free: 8.371 MB / 1.061 GB Notification: Performance of sort global known variables: time 7e-08/0.4293, allocations: 0 / 1.369 GB, free: 8.371 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002371/0.4295, allocations: 11.94 kB / 1.369 GB, free: 8.359 MB / 1.061 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.001625/0.4311, allocations: 0.8335 MB / 1.369 GB, free: 7.496 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.001249/0.4324, allocations: 179.9 kB / 1.37 GB, free: 7.32 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.4324, allocations: 0 / 1.37 GB, free: 7.32 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0005978/0.433, allocations: 92.02 kB / 1.37 GB, free: 7.23 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002218/0.4332, allocations: 8 kB / 1.37 GB, free: 7.223 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001345/0.4346, allocations: 251.5 kB / 1.37 GB, free: 6.938 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.448e-05/0.4346, allocations: 59.34 kB / 1.37 GB, free: 6.859 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 0.0001951/0.4348, allocations: 35.98 kB / 1.37 GB, free: 6.824 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.152e-05/0.4349, allocations: 15.44 kB / 1.37 GB, free: 6.812 MB / 1.061 GB Notification: Performance of SimCode: time 3.2e-07/0.4349, allocations: 0 / 1.37 GB, free: 6.812 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02852/0.4634, allocations: 2.119 MB / 1.372 GB, free: 4.836 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.11/11.57, allocations: 9.75 kB / 1.372 GB, free: 4.828 MB / 1.061 GB " [Timeout remaining time 288] (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 --stepSize=0.0008 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_Math_Functions_Examples_SmoothHeavisideDerivatives.fmu > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe 2>&1) [Timeout 840.0] 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) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 19.078225657343864]