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.001323/0.001323, allocations: 97.92 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.001536/0.001536, allocations: 219.8 kB / 23.03 MB, free: 4.945 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.558/1.558, allocations: 230.6 MB / 256.8 MB, free: 7.793 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.458/3.458, allocations: 0.49 GB / 0.7959 GB, free: 35.41 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives,fileNamePrefix="Buildings_12_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.002057/0.002057, allocations: 70.55 kB / 1.155 GB, free: 25.4 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4122/0.4142, allocations: 176.1 MB / 1.327 GB, free: 1.418 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives): time 0.002127/0.4164, allocations: 0.5945 MB / 1.327 GB, free: 0.8281 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001634/0.418, allocations: 1.136 MB / 1.328 GB, free: 15.68 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.698e-05/0.418, allocations: 0 / 1.328 GB, free: 15.68 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 1.721e-05/0.4181, allocations: 0 / 1.328 GB, free: 15.68 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0002684/0.4183, allocations: 19.91 kB / 1.328 GB, free: 15.66 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 3.377e-06/0.4183, allocations: 4 kB / 1.328 GB, free: 15.65 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 4.421e-05/0.4184, allocations: 7.938 kB / 1.328 GB, free: 15.64 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 4.823e-05/0.4184, allocations: 0 / 1.328 GB, free: 15.64 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 2.162e-05/0.4184, allocations: 4 kB / 1.328 GB, free: 15.64 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 2.921e-05/0.4185, allocations: 11.92 kB / 1.328 GB, free: 15.63 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 7.515e-06/0.4185, allocations: 0 / 1.328 GB, free: 15.63 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001104/0.4186, allocations: 11.98 kB / 1.328 GB, free: 15.62 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 1.26e-05/0.4186, allocations: 3.938 kB / 1.328 GB, free: 15.61 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 1.293e-05/0.4186, allocations: 0 / 1.328 GB, free: 15.61 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 9.743e-05/0.4187, allocations: 20.2 kB / 1.328 GB, free: 15.59 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.4187, allocations: 0 / 1.328 GB, free: 15.59 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.372e-06/0.4187, allocations: 4 kB / 1.328 GB, free: 15.59 MB / 1.029 GB Notification: Performance of Transformations before backend: time 5.5e-06/0.4187, allocations: 0 / 1.328 GB, free: 15.59 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.000303/0.419, allocations: 238.4 kB / 1.329 GB, free: 15.33 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.887e-05/0.4191, allocations: 12.03 kB / 1.329 GB, free: 15.32 MB / 1.029 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.288e-05/0.4191, allocations: 8.125 kB / 1.329 GB, free: 15.31 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.364e-05/0.4191, allocations: 30.75 kB / 1.329 GB, free: 15.27 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.657e-05/0.4192, allocations: 0.9375 kB / 1.329 GB, free: 15.27 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001094/0.4193, allocations: 106.5 kB / 1.329 GB, free: 15.14 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.13e-05/0.4193, allocations: 384 / 1.329 GB, free: 15.14 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.348e-05/0.4193, allocations: 4.359 kB / 1.329 GB, free: 15.14 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001145/0.4194, allocations: 45.56 kB / 1.329 GB, free: 15.09 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.173e-05/0.4194, allocations: 4 kB / 1.329 GB, free: 15.08 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.765e-06/0.4194, allocations: 4 kB / 1.329 GB, free: 15.08 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.789e-06/0.4194, allocations: 0 / 1.329 GB, free: 15.08 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.905e-05/0.4195, allocations: 7.984 kB / 1.329 GB, free: 15.07 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001714/0.4197, allocations: 124.7 kB / 1.329 GB, free: 14.91 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002038/0.4199, allocations: 30.61 kB / 1.329 GB, free: 14.87 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.292e-05/0.4199, allocations: 12.86 kB / 1.329 GB, free: 14.85 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001352/0.42, allocations: 12.02 kB / 1.329 GB, free: 14.84 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.241e-05/0.4201, allocations: 38.5 kB / 1.329 GB, free: 14.79 MB / 1.029 GB Notification: Performance of pre-optimization done (n=3): time 1.904e-06/0.4201, allocations: 0 / 1.329 GB, free: 14.79 MB / 1.029 GB Notification: Performance of matching and sorting (n=5): time 0.004654/0.4247, allocations: 0.5715 MB / 1.33 GB, free: 14.21 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.417e-05/0.4248, allocations: 51.41 kB / 1.33 GB, free: 14.15 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.781e-05/0.4248, allocations: 89.86 kB / 1.33 GB, free: 14.05 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.538e-05/0.4248, allocations: 29.7 kB / 1.33 GB, free: 14.02 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 3.166e-05/0.4249, allocations: 84.08 kB / 1.33 GB, free: 13.93 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 4.379e-05/0.4249, allocations: 15.84 kB / 1.33 GB, free: 13.92 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.998e-05/0.425, allocations: 21.7 kB / 1.33 GB, free: 13.89 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001476/0.4251, allocations: 314.8 kB / 1.33 GB, free: 13.57 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006372/0.4258, allocations: 83.95 kB / 1.33 GB, free: 13.49 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006271/0.4264, allocations: 102.5 kB / 1.33 GB, free: 13.38 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001245/0.4276, allocations: 190.4 kB / 1.331 GB, free: 13.19 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.172e-06/0.4276, allocations: 0 / 1.331 GB, free: 13.19 MB / 1.029 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.001346/0.429, allocations: 221.5 kB / 1.331 GB, free: 12.96 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.929e-05/0.429, allocations: 8 kB / 1.331 GB, free: 12.96 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.222e-06/0.429, allocations: 0 / 1.331 GB, free: 12.96 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.603e-05/0.429, allocations: 0 / 1.331 GB, free: 12.96 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004227/0.4295, allocations: 52 kB / 1.331 GB, free: 12.91 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.921e-06/0.4295, allocations: 0 / 1.331 GB, free: 12.91 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003686/0.4298, allocations: 47.97 kB / 1.331 GB, free: 12.86 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.521e-05/0.4298, allocations: 3.938 kB / 1.331 GB, free: 12.86 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.000102/0.4299, allocations: 113.8 kB / 1.331 GB, free: 12.73 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.22e-05/0.43, allocations: 3.938 kB / 1.331 GB, free: 12.73 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001452/0.4314, allocations: 241.1 kB / 1.331 GB, free: 12.48 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.917e-06/0.4314, allocations: 0 / 1.331 GB, free: 12.48 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/0.4314, allocations: 0 / 1.331 GB, free: 12.48 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.847e-06/0.4314, allocations: 0 / 1.331 GB, free: 12.48 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001571/0.433, allocations: 421.5 kB / 1.332 GB, free: 12.02 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.433, allocations: 0 / 1.332 GB, free: 12.02 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000392/0.4334, allocations: 51.97 kB / 1.332 GB, free: 11.97 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.061e-06/0.4334, allocations: 0.7344 kB / 1.332 GB, free: 11.97 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.468e-05/0.4334, allocations: 0 / 1.332 GB, free: 11.97 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.867e-06/0.4334, allocations: 8 kB / 1.332 GB, free: 11.96 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.128e-06/0.4334, allocations: 3.984 kB / 1.332 GB, free: 11.96 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001296/0.4347, allocations: 307.3 kB / 1.332 GB, free: 11.64 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 9.557e-06/0.4347, allocations: 3.984 kB / 1.332 GB, free: 11.64 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.8e-05/0.4348, allocations: 11.98 kB / 1.332 GB, free: 11.62 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003788/0.4351, allocations: 35.98 kB / 1.332 GB, free: 11.59 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.374e-05/0.4351, allocations: 4 kB / 1.332 GB, free: 11.59 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.383e-05/0.4352, allocations: 3.984 kB / 1.332 GB, free: 11.58 MB / 1.029 GB Notification: Performance of sorting global known variables: time 3.704e-05/0.4352, allocations: 75.28 kB / 1.332 GB, free: 11.51 MB / 1.029 GB Notification: Performance of sort global known variables: time 6e-08/0.4352, allocations: 0 / 1.332 GB, free: 11.51 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002613/0.4355, allocations: 15.94 kB / 1.332 GB, free: 11.49 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.001718/0.4372, allocations: 0.8374 MB / 1.333 GB, free: 10.62 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.00129/0.4385, allocations: 183.9 kB / 1.333 GB, free: 10.45 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.985e-06/0.4385, allocations: 3.938 kB / 1.333 GB, free: 10.44 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0006063/0.4391, allocations: 92.08 kB / 1.333 GB, free: 10.35 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002257/0.4393, allocations: 2.344 kB / 1.333 GB, free: 10.35 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001386/0.4407, allocations: 264.5 kB / 1.333 GB, free: 10.05 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.077e-05/0.4407, allocations: 59.34 kB / 1.334 GB, free: 9.977 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 0.0001847/0.4409, allocations: 24 kB / 1.334 GB, free: 9.953 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.577e-05/0.441, allocations: 19.42 kB / 1.334 GB, free: 9.934 MB / 1.029 GB Notification: Performance of SimCode: time 3.71e-07/0.441, allocations: 0 / 1.334 GB, free: 9.934 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02344/0.4645, allocations: 1.805 MB / 1.335 GB, free: 8.277 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.14/11.61, allocations: 6.625 kB / 1.335 GB, free: 8.273 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.999621400027536]