Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.00178/0.00178, allocations: 103.6 kB / 18.95 MB, free: 2.66 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.001626/0.001626, allocations: 220.3 kB / 22.25 MB, free: 5.254 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.51/1.51, allocations: 230.6 MB / 256 MB, free: 7.801 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.293/3.293, allocations: 0.49 GB / 0.7951 GB, free: 35.5 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/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_12_Buildings_Utilities_Math_Functions_Examples_SmoothHeavisideDerivatives",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives,fileNamePrefix="Buildings_12_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.002005/0.002005, allocations: 61.72 kB / 1.154 GB, free: 25.5 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3926/0.3946, allocations: 176.1 MB / 1.326 GB, free: 1.48 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives): time 0.001949/0.3966, allocations: 0.6006 MB / 1.326 GB, free: 0.8867 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001953/0.3985, allocations: 1.14 MB / 1.328 GB, free: 15.73 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.253e-05/0.3986, allocations: 0 / 1.328 GB, free: 15.73 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 2.104e-05/0.3986, allocations: 0 / 1.328 GB, free: 15.73 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.000299/0.3989, allocations: 19.86 kB / 1.328 GB, free: 15.71 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 6.702e-06/0.3989, allocations: 4 kB / 1.328 GB, free: 15.71 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 4.973e-05/0.3989, allocations: 4 kB / 1.328 GB, free: 15.7 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 5.973e-05/0.399, allocations: 3.984 kB / 1.328 GB, free: 15.7 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 2.298e-05/0.399, allocations: 4 kB / 1.328 GB, free: 15.7 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 3.41e-05/0.399, allocations: 3.938 kB / 1.328 GB, free: 15.69 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 9.899e-06/0.3991, allocations: 0 / 1.328 GB, free: 15.69 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001238/0.3992, allocations: 15.98 kB / 1.328 GB, free: 15.68 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 1.307e-05/0.3992, allocations: 7.938 kB / 1.328 GB, free: 15.67 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 1.827e-05/0.3992, allocations: 3.938 kB / 1.328 GB, free: 15.66 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0001251/0.3993, allocations: 20.19 kB / 1.328 GB, free: 15.64 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.3993, allocations: 0 / 1.328 GB, free: 15.64 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.753e-06/0.3993, allocations: 0 / 1.328 GB, free: 15.64 MB / 1.029 GB Notification: Performance of Transformations before backend: time 7.364e-06/0.3994, allocations: 0 / 1.328 GB, free: 15.64 MB / 1.029 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.000353/0.3997, allocations: 246.3 kB / 1.328 GB, free: 15.38 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.947e-05/0.3998, allocations: 12.03 kB / 1.328 GB, free: 15.36 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.611e-05/0.3998, allocations: 30.75 kB / 1.328 GB, free: 15.32 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.864e-05/0.3998, allocations: 0.9375 kB / 1.328 GB, free: 15.32 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.845e-05/0.3999, allocations: 106.5 kB / 1.328 GB, free: 15.2 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.216e-05/0.3999, allocations: 4.375 kB / 1.328 GB, free: 15.19 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.145e-05/0.4, allocations: 4.359 kB / 1.328 GB, free: 15.19 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000133/0.4001, allocations: 41.81 kB / 1.328 GB, free: 15.14 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.591e-05/0.4001, allocations: 0 / 1.328 GB, free: 15.14 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.157e-06/0.4001, allocations: 0 / 1.328 GB, free: 15.14 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.722e-06/0.4001, allocations: 0 / 1.328 GB, free: 15.14 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.525e-05/0.4002, allocations: 7.984 kB / 1.328 GB, free: 15.13 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001948/0.4004, allocations: 128.7 kB / 1.328 GB, free: 14.96 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002451/0.4006, allocations: 34.61 kB / 1.328 GB, free: 14.92 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.665e-05/0.4006, allocations: 12.8 kB / 1.328 GB, free: 14.91 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000126/0.4008, allocations: 12.08 kB / 1.328 GB, free: 14.89 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.524e-05/0.4008, allocations: 34.5 kB / 1.328 GB, free: 14.85 MB / 1.029 GB Notification: Performance of pre-optimization done (n=3): time 1.112e-06/0.4008, allocations: 0 / 1.328 GB, free: 14.85 MB / 1.029 GB Notification: Performance of matching and sorting (n=5): time 0.004587/0.4054, allocations: 0.5677 MB / 1.329 GB, free: 14.28 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.854e-05/0.4054, allocations: 51.41 kB / 1.329 GB, free: 14.21 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.309e-05/0.4055, allocations: 93.86 kB / 1.329 GB, free: 14.11 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.5e-05/0.4055, allocations: 25.7 kB / 1.329 GB, free: 14.08 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 3.307e-05/0.4055, allocations: 80.14 kB / 1.329 GB, free: 14 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 4.195e-05/0.4056, allocations: 19.84 kB / 1.329 GB, free: 13.98 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.999e-05/0.4056, allocations: 21.7 kB / 1.329 GB, free: 13.95 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001253/0.4058, allocations: 314.8 kB / 1.329 GB, free: 13.64 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006366/0.4064, allocations: 83.95 kB / 1.33 GB, free: 13.55 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000626/0.407, allocations: 98.53 kB / 1.33 GB, free: 13.45 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001225/0.4083, allocations: 194.5 kB / 1.33 GB, free: 13.25 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.82e-07/0.4083, allocations: 0 / 1.33 GB, free: 13.25 MB / 1.029 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.001308/0.4096, allocations: 217.5 kB / 1.33 GB, free: 13.03 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.848e-05/0.4096, allocations: 4 kB / 1.33 GB, free: 13.03 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.054e-06/0.4096, allocations: 8.125 kB / 1.33 GB, free: 13.02 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.369e-05/0.4096, allocations: 0 / 1.33 GB, free: 13.02 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004109/0.41, allocations: 56 kB / 1.33 GB, free: 12.96 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.043e-06/0.41, allocations: 7.938 kB / 1.33 GB, free: 12.96 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003559/0.4104, allocations: 39.97 kB / 1.33 GB, free: 12.92 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.481e-05/0.4104, allocations: 4 kB / 1.33 GB, free: 12.91 MB / 1.029 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.0001078/0.4105, allocations: 113.8 kB / 1.33 GB, free: 12.79 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.028e-05/0.4105, allocations: 3.938 kB / 1.33 GB, free: 12.79 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001393/0.4119, allocations: 237.1 kB / 1.33 GB, free: 12.54 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.64e-06/0.4119, allocations: 4 kB / 1.33 GB, free: 12.54 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.777e-06/0.4119, allocations: 0 / 1.33 GB, free: 12.54 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.194e-06/0.4119, allocations: 0 / 1.33 GB, free: 12.54 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001541/0.4135, allocations: 421.5 kB / 1.331 GB, free: 12.08 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/0.4135, allocations: 0 / 1.331 GB, free: 12.08 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003839/0.4139, allocations: 51.91 kB / 1.331 GB, free: 12.03 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.324e-06/0.4139, allocations: 0 / 1.331 GB, free: 12.03 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.71e-05/0.4139, allocations: 7.984 kB / 1.331 GB, free: 12.02 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.4139, allocations: 0 / 1.331 GB, free: 12.02 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.4139, allocations: 3.938 kB / 1.331 GB, free: 12.02 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001265/0.4151, allocations: 303.4 kB / 1.331 GB, free: 11.7 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.231e-05/0.4152, allocations: 8.406 kB / 1.331 GB, free: 11.7 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.375e-05/0.4152, allocations: 0 / 1.331 GB, free: 11.7 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003524/0.4155, allocations: 39.98 kB / 1.331 GB, free: 11.66 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.509e-05/0.4155, allocations: 3.984 kB / 1.331 GB, free: 11.65 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.177e-05/0.4156, allocations: 4.188 kB / 1.331 GB, free: 11.65 MB / 1.029 GB Notification: Performance of sorting global known variables: time 3.362e-05/0.4156, allocations: 79.28 kB / 1.331 GB, free: 11.57 MB / 1.029 GB Notification: Performance of sort global known variables: time 7.1e-08/0.4156, allocations: 0 / 1.331 GB, free: 11.57 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002462/0.4158, allocations: 8 kB / 1.331 GB, free: 11.56 MB / 1.029 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.001652/0.4175, allocations: 0.8528 MB / 1.332 GB, free: 10.68 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.00126/0.4188, allocations: 183.9 kB / 1.332 GB, free: 10.5 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.4188, allocations: 0 / 1.332 GB, free: 10.5 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0005937/0.4193, allocations: 88.08 kB / 1.332 GB, free: 10.41 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002234/0.4196, allocations: 4 kB / 1.332 GB, free: 10.41 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001322/0.4209, allocations: 254.3 kB / 1.333 GB, free: 10.12 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.17e-05/0.421, allocations: 63.34 kB / 1.333 GB, free: 10.04 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 0.0001791/0.4211, allocations: 28 kB / 1.333 GB, free: 10.01 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.138e-05/0.4212, allocations: 11.42 kB / 1.333 GB, free: 10 MB / 1.029 GB Notification: Performance of SimCode: time 5.31e-07/0.4212, allocations: 0 / 1.333 GB, free: 10 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02823/0.4494, allocations: 2.178 MB / 1.335 GB, free: 7.953 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.93/11.38, allocations: 10.53 kB / 1.335 GB, free: 7.949 MB / 1.029 GB " [Timeout remaining time 288] (rm -f Buildings_12_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe ; mkfifo Buildings_12_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe >> ../files/Buildings_12_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives_res.mat --tempDir=temp_Buildings_12_Buildings_Utilities_Math_Functions_Examples_SmoothHeavisideDerivatives_fmu --startTime=-1 --stopTime=1 --stepSize=0.0008 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Utilities_Math_Functions_Examples_SmoothHeavisideDerivatives.fmu > Buildings_12_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_Math_Functions_Examples_SmoothHeavisideDerivatives.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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: 18.50166679098038]