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.00194/0.00194, allocations: 109.2 kB / 18.94 MB, free: 2.949 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.002883/0.002883, allocations: 215.9 kB / 22.25 MB, free: 5.129 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.565/1.565, allocations: 230.6 MB / 256 MB, free: 7.996 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.449/3.449, allocations: 0.505 GB / 0.8101 GB, free: 22.04 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.002842/0.002842, allocations: 69 kB / 1.177 GB, free: 17.02 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4271/0.4299, allocations: 180.2 MB / 1.353 GB, free: 8.418 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives): time 0.002097/0.432, allocations: 0.603 MB / 1.353 GB, free: 7.816 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.001705/0.4337, allocations: 1.179 MB / 1.355 GB, free: 6.621 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.731e-05/0.4338, allocations: 0 / 1.355 GB, free: 6.621 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 1.226e-05/0.4338, allocations: 0 / 1.355 GB, free: 6.621 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 0.0002397/0.434, allocations: 15.94 kB / 1.355 GB, free: 6.605 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 3.567e-06/0.434, allocations: 0 / 1.355 GB, free: 6.605 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 4.486e-05/0.4341, allocations: 7.922 kB / 1.355 GB, free: 6.598 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 4.726e-05/0.4341, allocations: 8 kB / 1.355 GB, free: 6.59 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 1.679e-05/0.4341, allocations: 4 kB / 1.355 GB, free: 6.586 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 2.661e-05/0.4342, allocations: 7.922 kB / 1.355 GB, free: 6.578 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 7.454e-06/0.4342, allocations: 0 / 1.355 GB, free: 6.578 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001137/0.4343, allocations: 19.92 kB / 1.355 GB, free: 6.559 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 6.903e-06/0.4343, allocations: 4 kB / 1.355 GB, free: 6.555 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 1.406e-05/0.4343, allocations: 0 / 1.355 GB, free: 6.555 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 8.884e-05/0.4344, allocations: 20.19 kB / 1.355 GB, free: 6.535 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 4.449e-06/0.4344, allocations: 0 / 1.355 GB, free: 6.535 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.503e-06/0.4344, allocations: 0 / 1.355 GB, free: 6.535 MB / 1.045 GB Notification: Performance of Transformations before backend: time 4.969e-06/0.4344, allocations: 0 / 1.355 GB, free: 6.535 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.0002972/0.4347, allocations: 251.9 kB / 1.355 GB, free: 6.262 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 3.871e-05/0.4347, allocations: 8.031 kB / 1.355 GB, free: 6.254 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.857e-05/0.4348, allocations: 34.75 kB / 1.355 GB, free: 6.211 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002457/0.435, allocations: 20.86 kB / 1.355 GB, free: 6.191 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.781e-05/0.4351, allocations: 102.5 kB / 1.355 GB, free: 6.066 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.149e-05/0.4351, allocations: 4.375 kB / 1.355 GB, free: 6.062 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.368e-05/0.4351, allocations: 384 / 1.355 GB, free: 6.062 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000113/0.4352, allocations: 45.75 kB / 1.355 GB, free: 6.012 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.051e-05/0.4353, allocations: 0 / 1.355 GB, free: 6.012 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.085e-06/0.4353, allocations: 4 kB / 1.355 GB, free: 6.008 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.599e-06/0.4353, allocations: 4 kB / 1.355 GB, free: 6.004 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.447e-05/0.4353, allocations: 7.984 kB / 1.355 GB, free: 5.996 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001744/0.4355, allocations: 120.8 kB / 1.355 GB, free: 5.836 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001926/0.4357, allocations: 30.59 kB / 1.355 GB, free: 5.797 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.169e-05/0.4357, allocations: 20.73 kB / 1.355 GB, free: 5.773 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 2.169e-05/0.4357, allocations: 0 / 1.355 GB, free: 5.773 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.008e-05/0.4358, allocations: 42.59 kB / 1.355 GB, free: 5.723 MB / 1.045 GB Notification: Performance of pre-optimization done (n=3): time 9.12e-07/0.4358, allocations: 0 / 1.355 GB, free: 5.723 MB / 1.045 GB Notification: Performance of matching and sorting (n=5): time 0.004164/0.4399, allocations: 0.5403 MB / 1.356 GB, free: 5.176 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.108e-05/0.44, allocations: 51.41 kB / 1.356 GB, free: 5.113 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.549e-05/0.44, allocations: 89.86 kB / 1.356 GB, free: 5.016 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 2.442e-05/0.44, allocations: 25.7 kB / 1.356 GB, free: 4.984 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 3.45e-05/0.4401, allocations: 80.14 kB / 1.356 GB, free: 4.902 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 4.973e-05/0.4401, allocations: 23.8 kB / 1.356 GB, free: 4.879 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.857e-05/0.4402, allocations: 21.7 kB / 1.356 GB, free: 4.852 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001348/0.4403, allocations: 314.8 kB / 1.356 GB, free: 4.535 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006095/0.4409, allocations: 79.95 kB / 1.357 GB, free: 4.457 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006271/0.4416, allocations: 102.5 kB / 1.357 GB, free: 4.348 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001233/0.4428, allocations: 194.4 kB / 1.357 GB, free: 4.148 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.192e-06/0.4428, allocations: 0 / 1.357 GB, free: 4.148 MB / 1.045 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.001306/0.4441, allocations: 217.5 kB / 1.357 GB, free: 3.93 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 2.055e-05/0.4441, allocations: 9.25 kB / 1.357 GB, free: 3.922 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.31e-06/0.4441, allocations: 0 / 1.357 GB, free: 3.922 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.498e-05/0.4441, allocations: 0 / 1.357 GB, free: 3.922 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004383/0.4446, allocations: 52 kB / 1.357 GB, free: 3.871 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.042e-06/0.4446, allocations: 3.938 kB / 1.357 GB, free: 3.867 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003691/0.445, allocations: 43.97 kB / 1.357 GB, free: 3.824 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.544e-05/0.445, allocations: 4 kB / 1.357 GB, free: 3.82 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.0001047/0.4451, allocations: 122.4 kB / 1.357 GB, free: 3.691 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.888e-05/0.4451, allocations: 3.938 kB / 1.357 GB, free: 3.688 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.479e-05/0.4452, allocations: 15.59 kB / 1.357 GB, free: 3.672 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.865e-06/0.4452, allocations: 0 / 1.357 GB, free: 3.672 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.088e-06/0.4452, allocations: 192 / 1.357 GB, free: 3.672 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.857e-06/0.4452, allocations: 7.984 kB / 1.357 GB, free: 3.664 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001635/0.4468, allocations: 425.5 kB / 1.358 GB, free: 3.199 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.003e-06/0.4468, allocations: 8 kB / 1.358 GB, free: 3.191 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004178/0.4472, allocations: 47.91 kB / 1.358 GB, free: 3.145 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.525e-06/0.4472, allocations: 4 kB / 1.358 GB, free: 3.141 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.41e-05/0.4472, allocations: 0 / 1.358 GB, free: 3.141 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-06/0.4472, allocations: 4 kB / 1.358 GB, free: 3.137 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.4472, allocations: 0 / 1.358 GB, free: 3.137 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001354/0.4486, allocations: 303.4 kB / 1.358 GB, free: 2.824 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 5.761e-06/0.4486, allocations: 0 / 1.358 GB, free: 2.824 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.29e-05/0.4486, allocations: 0 / 1.358 GB, free: 2.824 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003989/0.449, allocations: 47.97 kB / 1.358 GB, free: 2.777 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.189e-05/0.449, allocations: 0 / 1.358 GB, free: 2.777 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.298e-05/0.4491, allocations: 11.94 kB / 1.358 GB, free: 2.766 MB / 1.045 GB Notification: Performance of sorting global known variables: time 3.379e-05/0.4491, allocations: 75.28 kB / 1.358 GB, free: 2.691 MB / 1.045 GB Notification: Performance of sort global known variables: time 7e-08/0.4491, allocations: 0 / 1.358 GB, free: 2.691 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0002477/0.4493, allocations: 8 kB / 1.358 GB, free: 2.684 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.001686/0.451, allocations: 0.8373 MB / 1.359 GB, free: 1.816 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.001319/0.4523, allocations: 179.9 kB / 1.359 GB, free: 1.641 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 2.325e-06/0.4523, allocations: 0 / 1.359 GB, free: 1.641 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0006048/0.4529, allocations: 92.06 kB / 1.359 GB, free: 1.551 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002204/0.4532, allocations: 5.875 kB / 1.359 GB, free: 1.547 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001426/0.4546, allocations: 254.4 kB / 1.36 GB, free: 1.258 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003025/0.4549, allocations: 0.6768 MB / 1.36 GB, free: 0.5547 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 0.0001913/0.4551, allocations: 28 kB / 1.36 GB, free: 0.5273 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.676e-05/0.4552, allocations: 11.44 kB / 1.36 GB, free: 0.5156 MB / 1.045 GB Notification: Performance of SimCode: time 4.01e-07/0.4552, allocations: 0 / 1.36 GB, free: 0.5156 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02854/0.4837, allocations: 1.71 MB / 1.362 GB, free: 14.93 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.87/11.35, allocations: 13.03 kB / 1.362 GB, free: 14.93 MB / 1.061 GB " [Timeout remaining time 289] (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.782220287946984]