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.001289/0.001289, allocations: 113.5 kB / 19.73 MB, free: 2.242 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.001556/0.001556, allocations: 223.2 kB / 23.05 MB, free: 5.074 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.524/1.524, allocations: 230.6 MB / 256.8 MB, free: 7.992 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.351/3.351, allocations: 0.5003 GB / 0.8061 GB, free: 26.79 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.002728/0.002728, allocations: 72.7 kB / 1.171 GB, free: 19.72 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4108/0.4136, allocations: 179 MB / 1.345 GB, free: 440 kB / 1.029 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives): time 0.001756/0.4153, allocations: 0.598 MB / 1.346 GB, free: 15.83 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.001603/0.4169, allocations: 1.171 MB / 1.347 GB, free: 14.64 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.471e-05/0.4169, allocations: 0 / 1.347 GB, free: 14.64 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 1.769e-05/0.417, allocations: 7.938 kB / 1.347 GB, free: 14.64 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 0.0002701/0.4172, allocations: 15.92 kB / 1.347 GB, free: 14.62 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 4.91e-06/0.4172, allocations: 0 / 1.347 GB, free: 14.62 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 4.664e-05/0.4173, allocations: 7.984 kB / 1.347 GB, free: 14.61 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 3.806e-05/0.4173, allocations: 0 / 1.347 GB, free: 14.61 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 1.698e-05/0.4173, allocations: 4 kB / 1.347 GB, free: 14.61 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 2.639e-05/0.4174, allocations: 7.938 kB / 1.347 GB, free: 14.6 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 6.693e-06/0.4174, allocations: 0 / 1.347 GB, free: 14.6 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00012/0.4175, allocations: 27.91 kB / 1.347 GB, free: 14.57 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 6.442e-06/0.4175, allocations: 0 / 1.347 GB, free: 14.57 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 1.166e-05/0.4175, allocations: 0 / 1.347 GB, free: 14.57 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 9.755e-05/0.4176, allocations: 24.14 kB / 1.347 GB, free: 14.55 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 5.07e-06/0.4176, allocations: 0 / 1.347 GB, free: 14.55 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.503e-06/0.4176, allocations: 0 / 1.347 GB, free: 14.55 MB / 1.045 GB Notification: Performance of Transformations before backend: time 5.27e-06/0.4176, allocations: 3.938 kB / 1.347 GB, free: 14.55 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.0003008/0.4179, allocations: 238.4 kB / 1.347 GB, free: 14.29 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.499e-05/0.418, allocations: 12.03 kB / 1.347 GB, free: 14.27 MB / 1.045 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.468e-05/0.418, allocations: 4.188 kB / 1.347 GB, free: 14.27 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.897e-05/0.418, allocations: 42.69 kB / 1.347 GB, free: 14.22 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002532/0.4183, allocations: 20.86 kB / 1.347 GB, free: 14.2 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.031e-05/0.4184, allocations: 106.5 kB / 1.348 GB, free: 14.07 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.969e-06/0.4184, allocations: 384 / 1.348 GB, free: 14.07 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.79e-05/0.4184, allocations: 4.375 kB / 1.348 GB, free: 14.07 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001262/0.4185, allocations: 41.62 kB / 1.348 GB, free: 14.02 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.094e-05/0.4185, allocations: 0 / 1.348 GB, free: 14.02 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.435e-06/0.4185, allocations: 0 / 1.348 GB, free: 14.02 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.018e-06/0.4185, allocations: 0 / 1.348 GB, free: 14.02 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.155e-05/0.4186, allocations: 11.98 kB / 1.348 GB, free: 14.01 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001625/0.4188, allocations: 124.8 kB / 1.348 GB, free: 13.84 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001825/0.4189, allocations: 38.55 kB / 1.348 GB, free: 13.8 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.75e-05/0.419, allocations: 8.859 kB / 1.348 GB, free: 13.79 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 1.778e-05/0.419, allocations: 3.938 kB / 1.348 GB, free: 13.78 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.906e-05/0.419, allocations: 34.64 kB / 1.348 GB, free: 13.74 MB / 1.045 GB Notification: Performance of pre-optimization done (n=3): time 9.62e-07/0.419, allocations: 4 kB / 1.348 GB, free: 13.73 MB / 1.045 GB Notification: Performance of matching and sorting (n=5): time 0.004104/0.4231, allocations: 0.5364 MB / 1.348 GB, free: 13.19 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.175e-05/0.4232, allocations: 55.41 kB / 1.348 GB, free: 13.12 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.617e-05/0.4232, allocations: 89.86 kB / 1.349 GB, free: 13.03 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 3.33e-05/0.4232, allocations: 25.7 kB / 1.349 GB, free: 13 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 3.482e-05/0.4233, allocations: 80.14 kB / 1.349 GB, free: 12.91 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 4.938e-05/0.4233, allocations: 23.8 kB / 1.349 GB, free: 12.89 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.308e-05/0.4234, allocations: 21.7 kB / 1.349 GB, free: 12.86 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001431/0.4235, allocations: 310.8 kB / 1.349 GB, free: 12.55 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006215/0.4241, allocations: 83.95 kB / 1.349 GB, free: 12.47 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00064/0.4248, allocations: 106.5 kB / 1.349 GB, free: 12.36 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001209/0.426, allocations: 194.4 kB / 1.349 GB, free: 12.16 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.192e-06/0.426, allocations: 4 kB / 1.349 GB, free: 12.15 MB / 1.045 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.001307/0.4273, allocations: 213.5 kB / 1.35 GB, free: 11.94 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 2.087e-05/0.4273, allocations: 4 kB / 1.35 GB, free: 11.93 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.586e-06/0.4273, allocations: 4 kB / 1.35 GB, free: 11.93 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.673e-05/0.4273, allocations: 0 / 1.35 GB, free: 11.93 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004254/0.4278, allocations: 55.94 kB / 1.35 GB, free: 11.88 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.442e-06/0.4278, allocations: 0 / 1.35 GB, free: 11.88 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003827/0.4282, allocations: 43.97 kB / 1.35 GB, free: 11.83 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.451e-05/0.4282, allocations: 0 / 1.35 GB, free: 11.83 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.0001132/0.4283, allocations: 113.8 kB / 1.35 GB, free: 11.71 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.128e-05/0.4283, allocations: 7.938 kB / 1.35 GB, free: 11.7 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.506e-05/0.4284, allocations: 15.53 kB / 1.35 GB, free: 11.68 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.923e-06/0.4284, allocations: 4 kB / 1.35 GB, free: 11.68 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.332e-06/0.4284, allocations: 3.984 kB / 1.35 GB, free: 11.68 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.387e-06/0.4284, allocations: 0 / 1.35 GB, free: 11.68 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001605/0.43, allocations: 433.6 kB / 1.35 GB, free: 11.2 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.43, allocations: 0 / 1.35 GB, free: 11.2 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004029/0.4304, allocations: 51.97 kB / 1.35 GB, free: 11.15 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.685e-06/0.4304, allocations: 0 / 1.35 GB, free: 11.15 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.499e-05/0.4304, allocations: 0 / 1.35 GB, free: 11.15 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.004e-06/0.4304, allocations: 0 / 1.35 GB, free: 11.15 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.4304, allocations: 4 kB / 1.35 GB, free: 11.15 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001327/0.4318, allocations: 307.3 kB / 1.351 GB, free: 10.83 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 1.026e-05/0.4318, allocations: 4 kB / 1.351 GB, free: 10.83 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.647e-05/0.4318, allocations: 0 / 1.351 GB, free: 10.83 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003997/0.4322, allocations: 47.97 kB / 1.351 GB, free: 10.78 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.838e-05/0.4322, allocations: 0 / 1.351 GB, free: 10.78 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.216e-05/0.4322, allocations: 0 / 1.351 GB, free: 10.78 MB / 1.045 GB Notification: Performance of sorting global known variables: time 4.254e-05/0.4323, allocations: 79.28 kB / 1.351 GB, free: 10.7 MB / 1.045 GB Notification: Performance of sort global known variables: time 6e-08/0.4323, allocations: 0 / 1.351 GB, free: 10.7 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0002594/0.4325, allocations: 11.94 kB / 1.351 GB, free: 10.69 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.001697/0.4342, allocations: 0.8296 MB / 1.351 GB, free: 9.832 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.001283/0.4355, allocations: 179.9 kB / 1.352 GB, free: 9.656 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 3.607e-06/0.4355, allocations: 4 kB / 1.352 GB, free: 9.652 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0006215/0.4361, allocations: 92.06 kB / 1.352 GB, free: 9.562 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002233/0.4364, allocations: 11.88 kB / 1.352 GB, free: 9.551 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001391/0.4377, allocations: 250.4 kB / 1.352 GB, free: 9.266 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002988/0.438, allocations: 0.6768 MB / 1.353 GB, free: 8.562 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 0.0001939/0.4382, allocations: 32 kB / 1.353 GB, free: 8.531 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.822e-05/0.4383, allocations: 11.44 kB / 1.353 GB, free: 8.52 MB / 1.045 GB Notification: Performance of SimCode: time 3.71e-07/0.4383, allocations: 0 / 1.353 GB, free: 8.52 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0227/0.461, allocations: 1.747 MB / 1.354 GB, free: 6.922 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.15/11.61, allocations: 3.938 kB / 1.354 GB, free: 6.918 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.791997874970548]