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.00134/0.00134, allocations: 101.3 kB / 19.73 MB, free: 2.133 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.001511/0.001511, allocations: 215.3 kB / 23.03 MB, free: 4.949 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.557/1.557, allocations: 230.6 MB / 256.8 MB, free: 7.801 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.318/3.318, allocations: 0.5003 GB / 0.8062 GB, free: 28.32 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Functions_Examples_SmoothHeavisideDerivatives",fmuType="cs",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.002026/0.002026, allocations: 66.17 kB / 1.171 GB, free: 19.55 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3972/0.3992, allocations: 179 MB / 1.345 GB, free: 15.89 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives): time 0.002213/0.4014, allocations: 0.5875 MB / 1.346 GB, free: 15.3 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.00186/0.4033, allocations: 1.136 MB / 1.347 GB, free: 14.15 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.135e-05/0.4033, allocations: 0 / 1.347 GB, free: 14.15 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 2.153e-05/0.4033, allocations: 0 / 1.347 GB, free: 14.15 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 0.0003252/0.4036, allocations: 23.86 kB / 1.347 GB, free: 14.13 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 4.438e-06/0.4036, allocations: 0 / 1.347 GB, free: 14.13 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 5.338e-05/0.4037, allocations: 4 kB / 1.347 GB, free: 14.12 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 5.176e-05/0.4037, allocations: 0 / 1.347 GB, free: 14.12 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 2.002e-05/0.4038, allocations: 7.984 kB / 1.347 GB, free: 14.12 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 2.797e-05/0.4038, allocations: 0 / 1.347 GB, free: 14.12 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 8.706e-06/0.4038, allocations: 0 / 1.347 GB, free: 14.12 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001294/0.4039, allocations: 27.86 kB / 1.347 GB, free: 14.09 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 1.097e-05/0.4039, allocations: 0 / 1.347 GB, free: 14.09 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 1.424e-05/0.404, allocations: 0 / 1.347 GB, free: 14.09 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 9.5e-05/0.4041, allocations: 20.19 kB / 1.347 GB, free: 14.07 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.4041, allocations: 0 / 1.347 GB, free: 14.07 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.522e-06/0.4041, allocations: 0 / 1.347 GB, free: 14.07 MB / 1.045 GB Notification: Performance of Transformations before backend: time 5.44e-06/0.4041, allocations: 0 / 1.347 GB, free: 14.07 MB / 1.045 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.0002963/0.4044, allocations: 246.3 kB / 1.347 GB, free: 13.8 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.754e-05/0.4044, allocations: 12.03 kB / 1.347 GB, free: 13.79 MB / 1.045 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.753e-05/0.4044, allocations: 192 / 1.347 GB, free: 13.79 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.094e-05/0.4045, allocations: 30.75 kB / 1.347 GB, free: 13.75 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002782/0.4047, allocations: 20.88 kB / 1.347 GB, free: 13.73 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.365e-05/0.4048, allocations: 106.5 kB / 1.347 GB, free: 13.6 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.169e-05/0.4048, allocations: 4.312 kB / 1.347 GB, free: 13.6 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.231e-05/0.4049, allocations: 8.359 kB / 1.347 GB, free: 13.59 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001239/0.405, allocations: 41.56 kB / 1.348 GB, free: 13.54 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.244e-05/0.405, allocations: 0 / 1.348 GB, free: 13.54 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.847e-06/0.405, allocations: 4 kB / 1.348 GB, free: 13.54 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.772e-06/0.405, allocations: 3.984 kB / 1.348 GB, free: 13.54 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.387e-05/0.4051, allocations: 4 kB / 1.348 GB, free: 13.53 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001695/0.4052, allocations: 124.8 kB / 1.348 GB, free: 13.37 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001991/0.4054, allocations: 42.55 kB / 1.348 GB, free: 13.32 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.406e-05/0.4055, allocations: 4.859 kB / 1.348 GB, free: 13.31 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 2.428e-05/0.4055, allocations: 7.938 kB / 1.348 GB, free: 13.3 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.691e-05/0.4055, allocations: 34.56 kB / 1.348 GB, free: 13.26 MB / 1.045 GB Notification: Performance of pre-optimization done (n=3): time 1.052e-06/0.4055, allocations: 0 / 1.348 GB, free: 13.26 MB / 1.045 GB Notification: Performance of matching and sorting (n=5): time 0.004316/0.4098, allocations: 0.5326 MB / 1.348 GB, free: 12.72 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.527e-05/0.4099, allocations: 59.41 kB / 1.348 GB, free: 12.65 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.559e-05/0.4099, allocations: 89.86 kB / 1.348 GB, free: 12.55 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 2.329e-05/0.4099, allocations: 25.7 kB / 1.348 GB, free: 12.52 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 4.358e-05/0.41, allocations: 80.14 kB / 1.349 GB, free: 12.44 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 5.239e-05/0.41, allocations: 19.78 kB / 1.349 GB, free: 12.42 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.236e-05/0.4101, allocations: 21.72 kB / 1.349 GB, free: 12.39 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001404/0.4103, allocations: 310.8 kB / 1.349 GB, free: 12.08 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006498/0.4109, allocations: 91.94 kB / 1.349 GB, free: 11.99 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006601/0.4116, allocations: 102.5 kB / 1.349 GB, free: 11.88 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001241/0.4128, allocations: 190.4 kB / 1.349 GB, free: 11.68 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.203e-06/0.4128, allocations: 0 / 1.349 GB, free: 11.68 MB / 1.045 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.00132/0.4141, allocations: 221.7 kB / 1.349 GB, free: 11.46 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 2.322e-05/0.4141, allocations: 10.03 kB / 1.349 GB, free: 11.45 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.067e-06/0.4142, allocations: 4 kB / 1.349 GB, free: 11.45 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.809e-05/0.4142, allocations: 0 / 1.349 GB, free: 11.45 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004427/0.4146, allocations: 52 kB / 1.349 GB, free: 11.4 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.822e-06/0.4146, allocations: 0 / 1.349 GB, free: 11.4 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003812/0.415, allocations: 39.98 kB / 1.35 GB, free: 11.36 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.308e-05/0.415, allocations: 7.984 kB / 1.35 GB, free: 11.35 MB / 1.045 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.0001182/0.4151, allocations: 113.8 kB / 1.35 GB, free: 11.23 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.489e-05/0.4152, allocations: 3.938 kB / 1.35 GB, free: 11.23 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.358e-05/0.4152, allocations: 11.59 kB / 1.35 GB, free: 11.21 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.138e-06/0.4152, allocations: 7.875 kB / 1.35 GB, free: 11.2 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.112e-06/0.4153, allocations: 4 kB / 1.35 GB, free: 11.2 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.078e-06/0.4153, allocations: 0 / 1.35 GB, free: 11.2 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001702/0.417, allocations: 429.5 kB / 1.35 GB, free: 10.73 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.306e-06/0.417, allocations: 3.938 kB / 1.35 GB, free: 10.72 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004185/0.4174, allocations: 47.97 kB / 1.35 GB, free: 10.68 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.14e-06/0.4174, allocations: 0 / 1.35 GB, free: 10.68 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.015e-05/0.4174, allocations: 4 kB / 1.35 GB, free: 10.67 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.265e-06/0.4174, allocations: 0 / 1.35 GB, free: 10.67 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.4174, allocations: 0 / 1.35 GB, free: 10.67 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001385/0.4188, allocations: 311.4 kB / 1.35 GB, free: 10.35 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 1.553e-05/0.4188, allocations: 3.984 kB / 1.35 GB, free: 10.35 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.116e-05/0.4188, allocations: 4 kB / 1.35 GB, free: 10.34 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004199/0.4193, allocations: 35.98 kB / 1.35 GB, free: 10.31 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.365e-05/0.4193, allocations: 7.984 kB / 1.35 GB, free: 10.3 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.387e-05/0.4193, allocations: 0 / 1.35 GB, free: 10.3 MB / 1.045 GB Notification: Performance of sorting global known variables: time 3.678e-05/0.4193, allocations: 75.28 kB / 1.351 GB, free: 10.23 MB / 1.045 GB Notification: Performance of sort global known variables: time 6e-08/0.4193, allocations: 0 / 1.351 GB, free: 10.23 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0002598/0.4196, allocations: 19.88 kB / 1.351 GB, free: 10.21 MB / 1.045 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.001726/0.4213, allocations: 0.8302 MB / 1.351 GB, free: 9.348 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.001353/0.4227, allocations: 187.9 kB / 1.352 GB, free: 9.164 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/0.4227, allocations: 0 / 1.352 GB, free: 9.164 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0006329/0.4233, allocations: 88.08 kB / 1.352 GB, free: 9.078 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002409/0.4236, allocations: 0.9375 kB / 1.352 GB, free: 9.078 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001426/0.425, allocations: 250.4 kB / 1.352 GB, free: 8.793 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.526e-05/0.425, allocations: 59.34 kB / 1.352 GB, free: 8.715 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 0.0001936/0.4252, allocations: 36 kB / 1.352 GB, free: 8.68 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.868e-05/0.4253, allocations: 11.42 kB / 1.352 GB, free: 8.672 MB / 1.045 GB Notification: Performance of SimCode: time 8.22e-07/0.4253, allocations: 0 / 1.352 GB, free: 8.672 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02188/0.4472, allocations: 1.779 MB / 1.354 GB, free: 7.047 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.15/11.6, allocations: 11.98 kB / 1.354 GB, free: 7.035 MB / 1.045 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: 18.928580327075906]