Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.001602/0.001602, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.001807/0.001807, allocations: 216.5 kB / 22.25 MB, free: 4.855 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.52/1.52, allocations: 230.6 MB / 256 MB, free: 7.785 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.881/2.881, allocations: 476 MB / 0.7699 GB, free: 4.707 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.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_11_Buildings_Utilities_Math_Functions_Examples_SmoothHeavisideDerivatives",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives,fileNamePrefix="Buildings_11_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.002142/0.002142, allocations: 65.02 kB / 1.117 GB, free: 41.12 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3077/0.3098, allocations: 169.9 MB / 1.283 GB, free: 12.35 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives): time 0.001733/0.3116, allocations: 0.607 MB / 1.283 GB, free: 11.75 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001597/0.3131, allocations: 1.12 MB / 1.284 GB, free: 10.61 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.023e-05/0.3132, allocations: 0 / 1.284 GB, free: 10.61 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 2.282e-05/0.3132, allocations: 7.875 kB / 1.284 GB, free: 10.61 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0002714/0.3135, allocations: 19.91 kB / 1.284 GB, free: 10.59 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 3.727e-06/0.3135, allocations: 0 / 1.284 GB, free: 10.59 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 4.977e-05/0.3135, allocations: 4 kB / 1.284 GB, free: 10.58 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 5.398e-05/0.3136, allocations: 4 kB / 1.284 GB, free: 10.58 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 1.969e-05/0.3136, allocations: 0 / 1.284 GB, free: 10.58 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 3.689e-05/0.3136, allocations: 7.984 kB / 1.284 GB, free: 10.57 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 9.378e-06/0.3136, allocations: 4 kB / 1.284 GB, free: 10.57 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001189/0.3138, allocations: 15.92 kB / 1.284 GB, free: 10.55 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 1.008e-05/0.3138, allocations: 0 / 1.284 GB, free: 10.55 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 1.614e-05/0.3138, allocations: 7.938 kB / 1.284 GB, free: 10.54 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 9.287e-05/0.3139, allocations: 17.66 kB / 1.284 GB, free: 10.53 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.3139, allocations: 0 / 1.284 GB, free: 10.53 MB / 0.9825 GB Notification: Performance of FrontEnd: time 2.154e-06/0.3139, allocations: 0 / 1.284 GB, free: 10.53 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 7.174e-06/0.3139, allocations: 4 kB / 1.284 GB, free: 10.52 MB / 0.9825 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.0003109/0.3142, allocations: 242 kB / 1.285 GB, free: 10.26 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.335e-05/0.3143, allocations: 8.031 kB / 1.285 GB, free: 10.25 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.852e-05/0.3143, allocations: 38.75 kB / 1.285 GB, free: 10.21 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.389e-05/0.3143, allocations: 4.938 kB / 1.285 GB, free: 10.2 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000108/0.3144, allocations: 110.4 kB / 1.285 GB, free: 10.07 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.261e-05/0.3144, allocations: 384 / 1.285 GB, free: 10.07 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.575e-05/0.3145, allocations: 4.375 kB / 1.285 GB, free: 10.07 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001188/0.3146, allocations: 45.75 kB / 1.285 GB, free: 10.02 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.183e-05/0.3146, allocations: 0 / 1.285 GB, free: 10.02 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.055e-06/0.3146, allocations: 0 / 1.285 GB, free: 10.02 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.579e-06/0.3146, allocations: 0 / 1.285 GB, free: 10.02 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.125e-05/0.3147, allocations: 4 kB / 1.285 GB, free: 10.01 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001771/0.3148, allocations: 124.8 kB / 1.285 GB, free: 9.848 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002016/0.315, allocations: 42.45 kB / 1.285 GB, free: 9.797 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.823e-05/0.3151, allocations: 14.73 kB / 1.285 GB, free: 9.781 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001193/0.3152, allocations: 8 kB / 1.285 GB, free: 9.773 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.423e-05/0.3152, allocations: 34.5 kB / 1.285 GB, free: 9.73 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=3): time 1.212e-06/0.3152, allocations: 0 / 1.285 GB, free: 9.73 MB / 0.9825 GB Notification: Performance of matching and sorting (n=5): time 0.00428/0.3195, allocations: 0.5715 MB / 1.286 GB, free: 9.152 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.783e-05/0.3195, allocations: 55.41 kB / 1.286 GB, free: 9.086 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.841e-05/0.3196, allocations: 89.86 kB / 1.286 GB, free: 8.988 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.964e-05/0.3196, allocations: 29.7 kB / 1.286 GB, free: 8.953 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 3.731e-05/0.3197, allocations: 80.14 kB / 1.286 GB, free: 8.871 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 5.283e-05/0.3197, allocations: 19.83 kB / 1.286 GB, free: 8.852 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.134e-05/0.3198, allocations: 21.72 kB / 1.286 GB, free: 8.824 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001679/0.3199, allocations: 314.8 kB / 1.286 GB, free: 8.508 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006131/0.3206, allocations: 83.95 kB / 1.286 GB, free: 8.426 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006264/0.3212, allocations: 98.53 kB / 1.286 GB, free: 8.32 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00119/0.3224, allocations: 194.4 kB / 1.287 GB, free: 8.121 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.857e-06/0.3224, allocations: 4 kB / 1.287 GB, free: 8.117 MB / 0.9825 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.001298/0.3237, allocations: 217.5 kB / 1.287 GB, free: 7.898 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.708e-05/0.3237, allocations: 4 kB / 1.287 GB, free: 7.895 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.152e-06/0.3237, allocations: 0 / 1.287 GB, free: 7.895 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.816e-05/0.3237, allocations: 8.031 kB / 1.287 GB, free: 7.887 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004123/0.3241, allocations: 43.97 kB / 1.287 GB, free: 7.844 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.065e-05/0.3241, allocations: 7.938 kB / 1.287 GB, free: 7.836 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003642/0.3245, allocations: 39.98 kB / 1.287 GB, free: 7.797 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.569e-05/0.3245, allocations: 8 kB / 1.287 GB, free: 7.789 MB / 0.9825 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 9.919e-05/0.3246, allocations: 109.8 kB / 1.287 GB, free: 7.672 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.279e-05/0.3246, allocations: 7.938 kB / 1.287 GB, free: 7.664 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001433/0.3261, allocations: 233.1 kB / 1.287 GB, free: 7.434 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.426e-06/0.3261, allocations: 0 / 1.287 GB, free: 7.434 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.047e-06/0.3261, allocations: 0 / 1.287 GB, free: 7.434 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.896e-06/0.3261, allocations: 0 / 1.287 GB, free: 7.434 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001593/0.3277, allocations: 429.5 kB / 1.288 GB, free: 6.965 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.3277, allocations: 0 / 1.288 GB, free: 6.965 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000404/0.3281, allocations: 47.97 kB / 1.288 GB, free: 6.918 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.545e-06/0.3281, allocations: 0 / 1.288 GB, free: 6.918 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.413e-05/0.3281, allocations: 0 / 1.288 GB, free: 6.918 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.944e-06/0.3281, allocations: 8.188 kB / 1.288 GB, free: 6.91 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.3281, allocations: 4 kB / 1.288 GB, free: 6.906 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001391/0.3295, allocations: 311.3 kB / 1.288 GB, free: 6.586 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 7.995e-06/0.3295, allocations: 3.953 kB / 1.288 GB, free: 6.582 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.134e-05/0.3295, allocations: 4 kB / 1.288 GB, free: 6.578 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003904/0.3299, allocations: 43.97 kB / 1.288 GB, free: 6.535 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.107e-05/0.3299, allocations: 4 kB / 1.288 GB, free: 6.531 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.266e-05/0.3299, allocations: 4 kB / 1.288 GB, free: 6.527 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 3.636e-05/0.33, allocations: 75.28 kB / 1.288 GB, free: 6.453 MB / 0.9825 GB Notification: Performance of sort global known variables: time 6e-08/0.33, allocations: 0 / 1.288 GB, free: 6.453 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.000252/0.3302, allocations: 8 kB / 1.288 GB, free: 6.445 MB / 0.9825 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.001729/0.332, allocations: 0.8412 MB / 1.289 GB, free: 5.574 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.001344/0.3333, allocations: 176 kB / 1.289 GB, free: 5.402 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.375e-06/0.3333, allocations: 0 / 1.289 GB, free: 5.402 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0006497/0.334, allocations: 92.02 kB / 1.289 GB, free: 5.312 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002233/0.3342, allocations: 7.984 kB / 1.289 GB, free: 5.305 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001397/0.3356, allocations: 250.4 kB / 1.289 GB, free: 5.02 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.179e-05/0.3356, allocations: 59.34 kB / 1.289 GB, free: 4.941 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.0001917/0.3358, allocations: 28 kB / 1.289 GB, free: 4.914 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.576e-05/0.3359, allocations: 11.44 kB / 1.289 GB, free: 4.902 MB / 0.9825 GB Notification: Performance of SimCode: time 3.3e-07/0.3359, allocations: 0 / 1.289 GB, free: 4.902 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02739/0.3633, allocations: 2.158 MB / 1.292 GB, free: 2.883 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.44/11.8, allocations: 6.875 kB / 1.292 GB, free: 2.879 MB / 0.9825 GB " [Timeout remaining time 288] (rm -f Buildings_11_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe ; mkfifo Buildings_11_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe >> ../files/Buildings_11_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives_res.mat --tempDir=temp_Buildings_11_Buildings_Utilities_Math_Functions_Examples_SmoothHeavisideDerivatives_fmu --startTime=-1 --stopTime=1 --stepSize=0.0008 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Utilities_Math_Functions_Examples_SmoothHeavisideDerivatives.fmu > Buildings_11_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Math_Functions_Examples_SmoothHeavisideDerivatives.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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.655206222087145]