Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.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.001438/0.001438, allocations: 110.4 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.001568/0.001568, allocations: 219.2 kB / 22.26 MB, free: 5.125 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.544/1.544, allocations: 230.6 MB / 256 MB, free: 7.992 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.539/3.539, 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.Factorial,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Functions_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Functions_Examples_Factorial",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.002045/0.002045, allocations: 63.67 kB / 1.177 GB, free: 17.08 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3864/0.3885, allocations: 180.2 MB / 1.353 GB, free: 8.438 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.002169/0.3906, allocations: 0.5991 MB / 1.353 GB, free: 7.84 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.0003218/0.391, allocations: 52.2 kB / 1.354 GB, free: 7.789 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.765e-05/0.391, allocations: 4 kB / 1.354 GB, free: 7.785 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 1.515e-05/0.391, allocations: 0 / 1.354 GB, free: 7.785 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 6.231e-06/0.391, allocations: 0 / 1.354 GB, free: 7.785 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002585/0.3913, allocations: 15.92 kB / 1.354 GB, free: 7.77 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 4.943e-05/0.3913, allocations: 0 / 1.354 GB, free: 7.77 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 4.971e-05/0.3914, allocations: 4 kB / 1.354 GB, free: 7.766 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 1.588e-05/0.3914, allocations: 3.984 kB / 1.354 GB, free: 7.762 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 2.144e-05/0.3914, allocations: 0 / 1.354 GB, free: 7.762 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 9.057e-06/0.3914, allocations: 0 / 1.354 GB, free: 7.762 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 8.481e-05/0.3915, allocations: 15.98 kB / 1.354 GB, free: 7.746 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 1.382e-05/0.3915, allocations: 8 kB / 1.354 GB, free: 7.738 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 1.991e-05/0.3915, allocations: 0 / 1.354 GB, free: 7.738 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 9.392e-05/0.3916, allocations: 15.91 kB / 1.354 GB, free: 7.723 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.3916, allocations: 0 / 1.354 GB, free: 7.723 MB / 1.045 GB Notification: Performance of FrontEnd: time 2.134e-06/0.3916, allocations: 0 / 1.354 GB, free: 7.723 MB / 1.045 GB Notification: Performance of Transformations before backend: time 6.803e-06/0.3916, allocations: 0 / 1.354 GB, free: 7.723 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.000319/0.3919, allocations: 244.8 kB / 1.354 GB, free: 7.453 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.319e-05/0.392, allocations: 12.03 kB / 1.354 GB, free: 7.441 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.772e-05/0.392, allocations: 30.75 kB / 1.354 GB, free: 7.402 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.492e-05/0.3921, allocations: 4.938 kB / 1.354 GB, free: 7.398 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.042e-05/0.3921, allocations: 106.5 kB / 1.354 GB, free: 7.27 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.178e-05/0.3922, allocations: 384 / 1.354 GB, free: 7.27 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.085e-05/0.3922, allocations: 8.312 kB / 1.354 GB, free: 7.262 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001004/0.3923, allocations: 30.27 kB / 1.354 GB, free: 7.227 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.082e-05/0.3923, allocations: 7.938 kB / 1.354 GB, free: 7.219 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.484e-06/0.3923, allocations: 0 / 1.354 GB, free: 7.219 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.969e-06/0.3923, allocations: 0 / 1.354 GB, free: 7.219 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.788e-05/0.3923, allocations: 7.984 kB / 1.354 GB, free: 7.211 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001606/0.3925, allocations: 124.7 kB / 1.354 GB, free: 7.047 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 5.224e-05/0.3925, allocations: 18.61 kB / 1.354 GB, free: 7.02 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.361e-05/0.3926, allocations: 16.8 kB / 1.354 GB, free: 7 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001364/0.3927, allocations: 7.984 kB / 1.354 GB, free: 6.992 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.267e-05/0.3927, allocations: 34.56 kB / 1.354 GB, free: 6.949 MB / 1.045 GB Notification: Performance of pre-optimization done (n=2): time 1.462e-06/0.3927, allocations: 0 / 1.354 GB, free: 6.949 MB / 1.045 GB Notification: Performance of matching and sorting (n=2): time 0.0001539/0.3929, allocations: 45.73 kB / 1.354 GB, free: 6.898 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.921e-05/0.3929, allocations: 55.41 kB / 1.354 GB, free: 6.832 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.958e-05/0.393, allocations: 89.86 kB / 1.354 GB, free: 6.734 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 1.6e-05/0.393, allocations: 33.7 kB / 1.354 GB, free: 6.695 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 3.565e-05/0.393, allocations: 84.08 kB / 1.355 GB, free: 6.609 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 1.895e-05/0.3931, allocations: 0 / 1.355 GB, free: 6.609 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.974e-05/0.3931, allocations: 13.72 kB / 1.355 GB, free: 6.59 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001285/0.3932, allocations: 310.8 kB / 1.355 GB, free: 6.277 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.658e-05/0.3932, allocations: 7.938 kB / 1.355 GB, free: 6.27 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.174e-05/0.3933, allocations: 11.98 kB / 1.355 GB, free: 6.258 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.334e-05/0.3933, allocations: 8.859 kB / 1.355 GB, free: 6.246 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.3933, allocations: 0 / 1.355 GB, free: 6.246 MB / 1.045 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.769e-05/0.3934, allocations: 37.7 kB / 1.355 GB, free: 6.203 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.483e-05/0.3934, allocations: 6.031 kB / 1.355 GB, free: 6.199 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.242e-06/0.3934, allocations: 3.938 kB / 1.355 GB, free: 6.195 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.279e-05/0.3934, allocations: 4 kB / 1.355 GB, free: 6.191 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.873e-05/0.3934, allocations: 3.984 kB / 1.355 GB, free: 6.188 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.67e-06/0.3935, allocations: 4.094 kB / 1.355 GB, free: 6.184 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.347e-05/0.3935, allocations: 4 kB / 1.355 GB, free: 6.18 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.091e-06/0.3935, allocations: 4 kB / 1.355 GB, free: 6.176 MB / 1.045 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 (n,fac) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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 7.938e-05/0.3936, allocations: 113.7 kB / 1.355 GB, free: 6.055 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.354e-06/0.3936, allocations: 0 / 1.355 GB, free: 6.055 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.833e-05/0.3937, allocations: 52.73 kB / 1.355 GB, free: 5.996 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.443e-06/0.3937, allocations: 0 / 1.355 GB, free: 5.996 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.008e-06/0.3937, allocations: 0 / 1.355 GB, free: 5.996 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.584e-06/0.3937, allocations: 8.031 kB / 1.355 GB, free: 5.988 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.55e-05/0.3938, allocations: 116.8 kB / 1.355 GB, free: 5.832 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.065e-06/0.3938, allocations: 3.984 kB / 1.355 GB, free: 5.828 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.379e-05/0.3938, allocations: 4 kB / 1.355 GB, free: 5.824 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.923e-06/0.3938, allocations: 0 / 1.355 GB, free: 5.824 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.956e-06/0.3938, allocations: 3.938 kB / 1.355 GB, free: 5.82 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.3938, allocations: 0 / 1.355 GB, free: 5.82 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.825e-06/0.3938, allocations: 4 kB / 1.355 GB, free: 5.816 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.807e-05/0.3939, allocations: 69.06 kB / 1.355 GB, free: 5.73 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 4.218e-06/0.3939, allocations: 0 / 1.355 GB, free: 5.73 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.207e-05/0.3939, allocations: 3.938 kB / 1.355 GB, free: 5.727 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.107e-05/0.3939, allocations: 0 / 1.355 GB, free: 5.727 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.89e-05/0.394, allocations: 4 kB / 1.355 GB, free: 5.723 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.204e-06/0.394, allocations: 3.938 kB / 1.355 GB, free: 5.719 MB / 1.045 GB Notification: Performance of sorting global known variables: time 3.704e-05/0.394, allocations: 75.28 kB / 1.355 GB, free: 5.645 MB / 1.045 GB Notification: Performance of sort global known variables: time 1e-07/0.394, allocations: 3.938 kB / 1.355 GB, free: 5.641 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0002037/0.3942, allocations: 7.938 kB / 1.355 GB, free: 5.633 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: 2 (fac,n) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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.0004556/0.3947, allocations: 0.6124 MB / 1.356 GB, free: 4.988 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 8.133e-05/0.3947, allocations: 4 kB / 1.356 GB, free: 4.984 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.3947, allocations: 0 / 1.356 GB, free: 4.984 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 1.501e-05/0.3948, allocations: 4 kB / 1.356 GB, free: 4.98 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001342/0.3949, allocations: 12.16 kB / 1.356 GB, free: 4.969 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003318/0.3952, allocations: 110.6 kB / 1.356 GB, free: 4.82 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00029/0.3955, allocations: 0.6729 MB / 1.357 GB, free: 4.121 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 1.245e-05/0.3955, allocations: 3.938 kB / 1.357 GB, free: 4.117 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.587e-05/0.3955, allocations: 15.42 kB / 1.357 GB, free: 4.105 MB / 1.045 GB Notification: Performance of SimCode: time 3.3e-07/0.3955, allocations: 4 kB / 1.357 GB, free: 4.102 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02811/0.4237, allocations: 1.173 MB / 1.358 GB, free: 3.059 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.89/11.31, allocations: 7.406 kB / 1.358 GB, free: 3.055 MB / 1.045 GB " [Timeout remaining time 289] (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Math_Functions_Examples_Factorial_fmu --startTime=0 --stopTime=12.9 --stepSize=0.00516 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_Math_Functions_Examples_Factorial.fmu > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Functions_Examples_Factorial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.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.73107182304375]