Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Examples.SmoothBlocks.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.001498/0.001498, allocations: 114.5 kB / 18.94 MB, free: 2.957 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.001478/0.001478, allocations: 220.5 kB / 22.26 MB, free: 5.117 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.476/1.476, allocations: 230.6 MB / 256 MB, free: 8.02 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.284/3.284, allocations: 0.505 GB / 0.8101 GB, free: 22.06 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.Examples.SmoothBlocks,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Examples_SmoothBlocks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.SmoothBlocks,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Examples_SmoothBlocks",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.002058/0.002058, allocations: 71.59 kB / 1.177 GB, free: 17.05 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3802/0.3822, allocations: 180.2 MB / 1.353 GB, free: 8.469 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothBlocks): time 0.003615/0.3859, allocations: 1.815 MB / 1.355 GB, free: 6.641 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.001304/0.3872, allocations: 0.7484 MB / 1.355 GB, free: 5.887 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.762e-05/0.3872, allocations: 0 / 1.355 GB, free: 5.887 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 4.402e-05/0.3873, allocations: 7.875 kB / 1.355 GB, free: 5.879 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 7.433e-05/0.3873, allocations: 23.8 kB / 1.355 GB, free: 5.855 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006095/0.388, allocations: 189.4 kB / 1.356 GB, free: 5.676 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0002012/0.3882, allocations: 127.6 kB / 1.356 GB, free: 5.551 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001438/0.3883, allocations: 45.81 kB / 1.356 GB, free: 5.504 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001671/0.3885, allocations: 67.77 kB / 1.356 GB, free: 5.438 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001046/0.3886, allocations: 51.7 kB / 1.356 GB, free: 5.387 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 2.474e-05/0.3886, allocations: 8 kB / 1.356 GB, free: 5.379 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001203/0.3887, allocations: 51.97 kB / 1.356 GB, free: 5.328 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 3.736e-05/0.3888, allocations: 27.91 kB / 1.356 GB, free: 5.301 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 6.376e-05/0.3888, allocations: 55.72 kB / 1.356 GB, free: 5.246 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0002471/0.3891, allocations: 159.4 kB / 1.356 GB, free: 5.09 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.3891, allocations: 0 / 1.356 GB, free: 5.09 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.442e-06/0.3891, allocations: 0 / 1.356 GB, free: 5.09 MB / 1.045 GB Notification: Performance of Transformations before backend: time 1.088e-05/0.3891, allocations: 4 kB / 1.356 GB, free: 5.086 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: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.0006408/0.3897, allocations: 373.6 kB / 1.357 GB, free: 4.691 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.164e-05/0.3898, allocations: 8.031 kB / 1.357 GB, free: 4.684 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.265e-05/0.3898, allocations: 42.75 kB / 1.357 GB, free: 4.633 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001008/0.3908, allocations: 124.7 kB / 1.357 GB, free: 4.512 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003026/0.3911, allocations: 158.8 kB / 1.357 GB, free: 4.332 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001433/0.3913, allocations: 119.1 kB / 1.357 GB, free: 4.191 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.5e-05/0.3913, allocations: 11.98 kB / 1.357 GB, free: 4.18 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000539/0.3918, allocations: 171.3 kB / 1.357 GB, free: 4.008 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.819e-06/0.3918, allocations: 0 / 1.357 GB, free: 4.008 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.262e-05/0.3919, allocations: 8 kB / 1.357 GB, free: 4 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.276e-06/0.3919, allocations: 0 / 1.357 GB, free: 4 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006161/0.3925, allocations: 163.8 kB / 1.357 GB, free: 3.84 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001125/0.3936, allocations: 460.7 kB / 1.358 GB, free: 3.348 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001042/0.3947, allocations: 214.3 kB / 1.358 GB, free: 3.129 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002993/0.395, allocations: 76.91 kB / 1.358 GB, free: 3.051 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 2.444e-05/0.395, allocations: 0 / 1.358 GB, free: 3.051 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.822e-05/0.395, allocations: 46.48 kB / 1.358 GB, free: 2.996 MB / 1.045 GB Notification: Performance of pre-optimization done (n=6): time 9.81e-07/0.395, allocations: 0 / 1.358 GB, free: 2.996 MB / 1.045 GB Notification: Performance of matching and sorting (n=6): time 0.001021/0.396, allocations: 265.3 kB / 1.358 GB, free: 2.73 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.086e-05/0.3961, allocations: 55.41 kB / 1.358 GB, free: 2.664 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001392/0.3962, allocations: 139.9 kB / 1.358 GB, free: 2.516 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 2.991e-05/0.3962, allocations: 29.7 kB / 1.359 GB, free: 2.48 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 8.161e-05/0.3963, allocations: 116.2 kB / 1.359 GB, free: 2.363 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 3.122e-05/0.3964, allocations: 23.84 kB / 1.359 GB, free: 2.34 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.613e-05/0.3964, allocations: 21.7 kB / 1.359 GB, free: 2.312 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001534/0.3966, allocations: 322.8 kB / 1.359 GB, free: 1.988 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003117/0.3969, allocations: 71.92 kB / 1.359 GB, free: 1.918 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003193/0.3972, allocations: 102.4 kB / 1.359 GB, free: 1.809 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006041/0.3978, allocations: 162.4 kB / 1.359 GB, free: 1.641 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.3978, allocations: 4 kB / 1.359 GB, free: 1.637 MB / 1.045 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0006763/0.3985, allocations: 201.4 kB / 1.359 GB, free: 1.434 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.521e-05/0.3985, allocations: 4 kB / 1.359 GB, free: 1.43 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.569e-06/0.3985, allocations: 4.062 kB / 1.359 GB, free: 1.426 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.64e-05/0.3985, allocations: 4 kB / 1.359 GB, free: 1.422 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002663/0.3988, allocations: 31.95 kB / 1.36 GB, free: 1.391 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.815e-06/0.3988, allocations: 4 kB / 1.36 GB, free: 1.387 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002024/0.399, allocations: 35.84 kB / 1.36 GB, free: 1.352 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.238e-05/0.399, allocations: 0 / 1.36 GB, free: 1.352 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 (8): * Single equations (assignments): 8 * 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.0001174/0.3991, allocations: 129.7 kB / 1.36 GB, free: 1.215 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.332e-05/0.3992, allocations: 11.95 kB / 1.36 GB, free: 1.203 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007221/0.3999, allocations: 198.2 kB / 1.36 GB, free: 1.004 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.286e-06/0.3999, allocations: 4 kB / 1.36 GB, free: 1 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.998e-06/0.3999, allocations: 0 / 1.36 GB, free: 1 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.11e-06/0.3999, allocations: 7.984 kB / 1.36 GB, free: 0.9922 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002772/0.4002, allocations: 209.4 kB / 1.36 GB, free: 0.7422 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.342e-06/0.4002, allocations: 384 / 1.36 GB, free: 0.7422 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000232/0.4004, allocations: 35.89 kB / 1.36 GB, free: 0.707 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.703e-06/0.4004, allocations: 0 / 1.36 GB, free: 0.707 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.601e-05/0.4004, allocations: 7.984 kB / 1.36 GB, free: 0.6992 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.403e-06/0.4004, allocations: 0 / 1.36 GB, free: 0.6992 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.4004, allocations: 0 / 1.36 GB, free: 0.6992 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007021/0.4011, allocations: 291.3 kB / 1.36 GB, free: 408 kB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 1.706e-05/0.4012, allocations: 7.953 kB / 1.36 GB, free: 400 kB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.304e-05/0.4012, allocations: 0 / 1.36 GB, free: 400 kB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003192/0.4015, allocations: 35.95 kB / 1.36 GB, free: 364 kB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.163e-05/0.4015, allocations: 7.984 kB / 1.36 GB, free: 356 kB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.991e-05/0.4016, allocations: 7.984 kB / 1.36 GB, free: 348 kB / 1.045 GB Notification: Performance of sorting global known variables: time 9.488e-05/0.4017, allocations: 105.9 kB / 1.361 GB, free: 244 kB / 1.045 GB Notification: Performance of sort global known variables: time 7e-08/0.4017, allocations: 0 / 1.361 GB, free: 244 kB / 1.045 GB Notification: Performance of remove unused functions: time 0.0002803/0.4019, allocations: 23.94 kB / 1.361 GB, free: 220 kB / 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 (6): * Single equations (assignments): 6 * 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.001155/0.4031, allocations: 0.8254 MB / 1.361 GB, free: 15.36 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0006692/0.4038, allocations: 167.7 kB / 1.362 GB, free: 15.2 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.4038, allocations: 3.938 kB / 1.362 GB, free: 15.2 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0003197/0.4041, allocations: 80.03 kB / 1.362 GB, free: 15.12 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003059/0.4044, allocations: 8 kB / 1.362 GB, free: 15.11 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003247/0.4076, allocations: 1.854 MB / 1.363 GB, free: 13.17 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003616/0.408, allocations: 0.7041 MB / 1.364 GB, free: 12.44 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 9.099e-05/0.4081, allocations: 12 kB / 1.364 GB, free: 12.43 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.31e-05/0.4082, allocations: 39.41 kB / 1.364 GB, free: 12.39 MB / 1.061 GB Notification: Performance of SimCode: time 4.5e-07/0.4082, allocations: 0 / 1.364 GB, free: 12.39 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03159/0.4398, allocations: 2.958 MB / 1.367 GB, free: 9.559 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.26/11.7, allocations: 9.594 kB / 1.367 GB, free: 9.555 MB / 1.061 GB " [Timeout remaining time 288] (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.SmoothBlocks.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Math.Examples.SmoothBlocks_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Math_Examples_SmoothBlocks_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_Math_Examples_SmoothBlocks.fmu > Buildings_latest_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.SmoothBlocks_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_SmoothBlocks.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.SmoothBlocks.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.6891773911193]