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.001303/0.001303, 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.00141/0.00141, allocations: 218.8 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.512/1.512, allocations: 230.6 MB / 256.8 MB, free: 7.805 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.8/2.8, allocations: 476.8 MB / 0.7715 GB, free: 3.906 MB / 0.6231 GB " [Timeout remaining time 177] 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives,fileNamePrefix="Buildings_11_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.002049/0.002049, allocations: 68.17 kB / 1.118 GB, free: 39.78 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3803/0.3824, allocations: 170 MB / 1.284 GB, free: 10.66 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives): time 0.002157/0.3845, allocations: 0.5817 MB / 1.285 GB, free: 10.07 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001716/0.3862, allocations: 1.132 MB / 1.286 GB, free: 8.926 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.101e-05/0.3863, allocations: 3.938 kB / 1.286 GB, free: 8.922 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 1.302e-05/0.3863, allocations: 0 / 1.286 GB, free: 8.922 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.000268/0.3866, allocations: 19.92 kB / 1.286 GB, free: 8.902 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 4.057e-06/0.3866, allocations: 0 / 1.286 GB, free: 8.902 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 5.239e-05/0.3866, allocations: 3.938 kB / 1.286 GB, free: 8.898 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 4.945e-05/0.3867, allocations: 8 kB / 1.286 GB, free: 8.891 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 2.065e-05/0.3867, allocations: 7.984 kB / 1.286 GB, free: 8.883 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 2.588e-05/0.3867, allocations: 3.938 kB / 1.286 GB, free: 8.879 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 8.045e-06/0.3867, allocations: 0 / 1.286 GB, free: 8.879 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001104/0.3868, allocations: 15.98 kB / 1.286 GB, free: 8.863 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 1.05e-05/0.3868, allocations: 0 / 1.286 GB, free: 8.863 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 1.802e-05/0.3869, allocations: 11.94 kB / 1.286 GB, free: 8.852 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 8.006e-05/0.3869, allocations: 13.38 kB / 1.286 GB, free: 8.84 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.3869, allocations: 0 / 1.286 GB, free: 8.84 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.243e-06/0.3869, allocations: 0 / 1.286 GB, free: 8.84 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 9.328e-06/0.387, allocations: 0 / 1.286 GB, free: 8.84 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.0003294/0.3873, allocations: 249.9 kB / 1.286 GB, free: 8.57 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.541e-05/0.3873, allocations: 12.03 kB / 1.286 GB, free: 8.559 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.399e-05/0.3873, allocations: 192 / 1.286 GB, free: 8.559 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.324e-05/0.3874, allocations: 34.73 kB / 1.286 GB, free: 8.516 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.895e-05/0.3874, allocations: 12.88 kB / 1.286 GB, free: 8.504 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.724e-05/0.3875, allocations: 102.5 kB / 1.286 GB, free: 8.379 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.307e-05/0.3875, allocations: 4.375 kB / 1.286 GB, free: 8.375 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.855e-05/0.3875, allocations: 4.375 kB / 1.286 GB, free: 8.371 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001068/0.3877, allocations: 37.62 kB / 1.286 GB, free: 8.328 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.185e-05/0.3877, allocations: 0 / 1.286 GB, free: 8.328 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.604e-06/0.3877, allocations: 3.938 kB / 1.286 GB, free: 8.324 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.018e-06/0.3877, allocations: 0 / 1.286 GB, free: 8.324 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.199e-05/0.3877, allocations: 15.98 kB / 1.286 GB, free: 8.309 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001594/0.3879, allocations: 116.8 kB / 1.286 GB, free: 8.152 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002359/0.3881, allocations: 36.39 kB / 1.286 GB, free: 8.109 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.05e-05/0.3881, allocations: 4.859 kB / 1.286 GB, free: 8.102 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001411/0.3883, allocations: 11.94 kB / 1.287 GB, free: 8.09 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.781e-05/0.3883, allocations: 42.58 kB / 1.287 GB, free: 8.039 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=3): time 1.062e-06/0.3883, allocations: 0 / 1.287 GB, free: 8.039 MB / 0.9825 GB Notification: Performance of matching and sorting (n=5): time 0.004806/0.3931, allocations: 0.5637 MB / 1.287 GB, free: 7.469 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.632e-05/0.3932, allocations: 59.39 kB / 1.287 GB, free: 7.398 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.32e-05/0.3932, allocations: 89.86 kB / 1.287 GB, free: 7.301 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.378e-05/0.3932, allocations: 29.7 kB / 1.287 GB, free: 7.266 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 3.582e-05/0.3933, allocations: 80.14 kB / 1.287 GB, free: 7.184 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 5.548e-05/0.3933, allocations: 15.84 kB / 1.287 GB, free: 7.168 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.434e-05/0.3934, allocations: 21.64 kB / 1.287 GB, free: 7.141 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001524/0.3936, allocations: 318.8 kB / 1.288 GB, free: 6.82 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006409/0.3942, allocations: 83.95 kB / 1.288 GB, free: 6.738 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006531/0.3948, allocations: 102.5 kB / 1.288 GB, free: 6.629 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001205/0.3961, allocations: 186.4 kB / 1.288 GB, free: 6.438 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.172e-06/0.3961, allocations: 0 / 1.288 GB, free: 6.438 MB / 0.9825 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.00133/0.3974, allocations: 229.5 kB / 1.288 GB, free: 6.207 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 2.038e-05/0.3974, allocations: 4 kB / 1.288 GB, free: 6.203 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.212e-06/0.3974, allocations: 0 / 1.288 GB, free: 6.203 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.052e-05/0.3974, allocations: 0 / 1.288 GB, free: 6.203 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004126/0.3978, allocations: 52 kB / 1.288 GB, free: 6.152 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.061e-06/0.3978, allocations: 0 / 1.288 GB, free: 6.152 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003424/0.3982, allocations: 39.98 kB / 1.288 GB, free: 6.113 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.031e-05/0.3982, allocations: 7.984 kB / 1.288 GB, free: 6.105 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 0.0001077/0.3983, allocations: 111.2 kB / 1.288 GB, free: 5.988 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.64e-05/0.3983, allocations: 7.875 kB / 1.288 GB, free: 5.98 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001393/0.3997, allocations: 237.1 kB / 1.289 GB, free: 5.746 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.418e-06/0.3997, allocations: 4.422 kB / 1.289 GB, free: 5.742 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/0.3997, allocations: 0 / 1.289 GB, free: 5.742 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.867e-06/0.3998, allocations: 0 / 1.289 GB, free: 5.742 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001589/0.4013, allocations: 429.7 kB / 1.289 GB, free: 5.273 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.498e-06/0.4013, allocations: 4 kB / 1.289 GB, free: 5.27 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003844/0.4017, allocations: 47.97 kB / 1.289 GB, free: 5.223 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.873e-06/0.4017, allocations: 3.984 kB / 1.289 GB, free: 5.219 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.308e-05/0.4018, allocations: 4 kB / 1.289 GB, free: 5.215 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.224e-06/0.4018, allocations: 0 / 1.289 GB, free: 5.215 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.4018, allocations: 0 / 1.289 GB, free: 5.215 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001276/0.403, allocations: 307.4 kB / 1.289 GB, free: 4.898 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 1.124e-05/0.403, allocations: 7.953 kB / 1.289 GB, free: 4.891 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.599e-05/0.4031, allocations: 0 / 1.289 GB, free: 4.891 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000368/0.4034, allocations: 43.97 kB / 1.29 GB, free: 4.848 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.798e-05/0.4035, allocations: 3.938 kB / 1.29 GB, free: 4.844 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.443e-05/0.4035, allocations: 3.984 kB / 1.29 GB, free: 4.84 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 4.574e-05/0.4035, allocations: 83.28 kB / 1.29 GB, free: 4.758 MB / 0.9825 GB Notification: Performance of sort global known variables: time 7e-08/0.4035, allocations: 0 / 1.29 GB, free: 4.758 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002712/0.4038, allocations: 11.94 kB / 1.29 GB, free: 4.746 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.001691/0.4055, allocations: 0.8374 MB / 1.29 GB, free: 3.879 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.001246/0.4067, allocations: 175.9 kB / 1.291 GB, free: 3.707 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.896e-06/0.4067, allocations: 0 / 1.291 GB, free: 3.707 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0006007/0.4073, allocations: 92.06 kB / 1.291 GB, free: 3.617 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002335/0.4076, allocations: 9.188 kB / 1.291 GB, free: 3.613 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001342/0.4089, allocations: 250.4 kB / 1.291 GB, free: 3.328 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.103e-05/0.409, allocations: 63.34 kB / 1.291 GB, free: 3.246 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.0001784/0.4091, allocations: 28 kB / 1.291 GB, free: 3.219 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.339e-05/0.4092, allocations: 11.44 kB / 1.291 GB, free: 3.207 MB / 0.9825 GB Notification: Performance of SimCode: time 5.31e-07/0.4092, allocations: 0 / 1.291 GB, free: 3.207 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02282/0.4321, allocations: 1.816 MB / 1.293 GB, free: 1.531 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.27/11.7, allocations: 11.34 kB / 1.293 GB, free: 1.523 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.726264596916735]