Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Utilities.Math.Functions.Examples.Factorial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="Buildings_10_Buildings_Utilities_Math_Functions_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="Buildings_10_Buildings_Utilities_Math_Functions_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007505/0.007505, allocations: 100.6 kB / 15.73 MB, free: 6.012 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001804/0.001804, allocations: 190.1 kB / 16.67 MB, free: 5.934 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.43/1.43, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.717/2.717, allocations: 437 MB / 0.7105 GB, free: 4.398 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001937/0.001937, allocations: 75.81 kB / 1.018 GB, free: 9.883 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7814/0.7833, allocations: 151.6 MB / 1.166 GB, free: 3.805 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.001895/0.7853, allocations: 0.5922 MB / 1.167 GB, free: 3.215 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.000317/0.7856, allocations: 53.75 kB / 1.167 GB, free: 3.164 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.126e-05/0.7857, allocations: 0 / 1.167 GB, free: 3.164 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 1.769e-05/0.7857, allocations: 0 / 1.167 GB, free: 3.164 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 6.672e-06/0.7857, allocations: 3.938 kB / 1.167 GB, free: 3.16 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002344/0.786, allocations: 16 kB / 1.167 GB, free: 3.145 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 4.679e-05/0.786, allocations: 0 / 1.167 GB, free: 3.145 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 4.217e-05/0.7861, allocations: 4 kB / 1.167 GB, free: 3.141 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 1.603e-05/0.7861, allocations: 3.984 kB / 1.167 GB, free: 3.137 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 2.303e-05/0.7861, allocations: 3.984 kB / 1.167 GB, free: 3.133 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 9.527e-06/0.7861, allocations: 0 / 1.167 GB, free: 3.133 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 8.319e-05/0.7862, allocations: 12 kB / 1.167 GB, free: 3.121 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 1.025e-05/0.7862, allocations: 0 / 1.167 GB, free: 3.121 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 1.835e-05/0.7863, allocations: 0 / 1.167 GB, free: 3.121 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 9.75e-05/0.7864, allocations: 15.92 kB / 1.167 GB, free: 3.105 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 6.432e-06/0.7864, allocations: 0 / 1.167 GB, free: 3.105 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.373e-06/0.7864, allocations: 7.938 kB / 1.167 GB, free: 3.098 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 1.049e-05/0.7864, allocations: 0 / 1.167 GB, free: 3.098 MB / 0.8887 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.0003546/0.7868, allocations: 311.6 kB / 1.167 GB, free: 2.742 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.873e-05/0.7868, allocations: 12.92 kB / 1.167 GB, free: 2.73 MB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001267/0.787, allocations: 30.75 kB / 1.167 GB, free: 2.691 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.667e-05/0.787, allocations: 4.891 kB / 1.167 GB, free: 2.688 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001218/0.7871, allocations: 164.4 kB / 1.167 GB, free: 2.488 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.234e-05/0.7871, allocations: 384 / 1.167 GB, free: 2.488 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.123e-05/0.7872, allocations: 384 / 1.167 GB, free: 2.488 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001103/0.7873, allocations: 42.19 kB / 1.167 GB, free: 2.441 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.024e-05/0.7873, allocations: 3.938 kB / 1.167 GB, free: 2.438 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.494e-06/0.7873, allocations: 0 / 1.167 GB, free: 2.438 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.602e-06/0.7873, allocations: 4 kB / 1.167 GB, free: 2.434 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.451e-05/0.7874, allocations: 3.938 kB / 1.167 GB, free: 2.43 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001809/0.7875, allocations: 152.4 kB / 1.168 GB, free: 2.234 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 6.238e-05/0.7876, allocations: 22.59 kB / 1.168 GB, free: 2.203 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.448e-05/0.7876, allocations: 12.92 kB / 1.168 GB, free: 2.188 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001795/0.7878, allocations: 81.11 kB / 1.168 GB, free: 2.09 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.547e-05/0.7879, allocations: 34.56 kB / 1.168 GB, free: 2.047 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=2): time 1.092e-06/0.7879, allocations: 0 / 1.168 GB, free: 2.047 MB / 0.8887 GB Notification: Performance of matching and sorting (n=2): time 0.0001668/0.7881, allocations: 49.56 kB / 1.168 GB, free: 1.992 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.213e-05/0.7881, allocations: 51.41 kB / 1.168 GB, free: 1.93 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.074e-05/0.7882, allocations: 89.86 kB / 1.168 GB, free: 1.832 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 1.793e-05/0.7882, allocations: 25.7 kB / 1.168 GB, free: 1.801 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 4.188e-05/0.7882, allocations: 88.25 kB / 1.168 GB, free: 1.711 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 1.987e-05/0.7883, allocations: 4 kB / 1.168 GB, free: 1.707 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.827e-05/0.7883, allocations: 17.7 kB / 1.168 GB, free: 1.684 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0002354/0.7885, allocations: 310.8 kB / 1.168 GB, free: 1.371 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.157e-05/0.7886, allocations: 7.938 kB / 1.168 GB, free: 1.363 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.607e-06/0.7886, allocations: 0 / 1.168 GB, free: 1.363 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.357e-05/0.7886, allocations: 16.86 kB / 1.168 GB, free: 1.344 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.352e-06/0.7886, allocations: 64 / 1.168 GB, free: 1.344 MB / 0.8887 GB Notification: Performance of matching and sorting (n=2) (initialization): time 7.723e-05/0.7887, allocations: 45.62 kB / 1.168 GB, free: 1.293 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 1.378e-05/0.7887, allocations: 4 kB / 1.168 GB, free: 1.289 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.984e-05/0.7888, allocations: 3.938 kB / 1.168 GB, free: 1.285 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.19e-05/0.7888, allocations: 0 / 1.168 GB, free: 1.285 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.625e-05/0.7889, allocations: 4 kB / 1.168 GB, free: 1.281 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.559e-06/0.7889, allocations: 0 / 1.168 GB, free: 1.281 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.439e-05/0.7889, allocations: 0 / 1.168 GB, free: 1.281 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.197e-06/0.7889, allocations: 8 kB / 1.168 GB, free: 1.273 MB / 0.8887 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 8.576e-05/0.789, allocations: 113.9 kB / 1.169 GB, free: 1.152 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.239e-05/0.789, allocations: 7.938 kB / 1.169 GB, free: 1.145 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001021/0.7891, allocations: 48.7 kB / 1.169 GB, free: 1.086 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.757e-06/0.7891, allocations: 3.984 kB / 1.169 GB, free: 1.082 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.098e-06/0.7892, allocations: 0 / 1.169 GB, free: 1.082 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.554e-06/0.7892, allocations: 0 / 1.169 GB, free: 1.082 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001235/0.7893, allocations: 149.7 kB / 1.169 GB, free: 0.8867 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.273e-06/0.7893, allocations: 0 / 1.169 GB, free: 0.8867 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.783e-05/0.7893, allocations: 4 kB / 1.169 GB, free: 0.8828 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.255e-06/0.7893, allocations: 0 / 1.169 GB, free: 0.8828 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.466e-06/0.7894, allocations: 7.969 kB / 1.169 GB, free: 0.875 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.634e-06/0.7894, allocations: 3.938 kB / 1.169 GB, free: 0.8711 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.975e-06/0.7894, allocations: 3.984 kB / 1.169 GB, free: 0.8672 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.781e-05/0.7895, allocations: 57.14 kB / 1.169 GB, free: 0.793 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 4.628e-05/0.7895, allocations: 81.11 kB / 1.169 GB, free: 0.6953 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.586e-05/0.7895, allocations: 7.922 kB / 1.169 GB, free: 0.6875 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.163e-05/0.7895, allocations: 0 / 1.169 GB, free: 0.6875 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.18e-05/0.7896, allocations: 4.031 kB / 1.169 GB, free: 0.6836 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.503e-06/0.7896, allocations: 4 kB / 1.169 GB, free: 0.6797 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 3.563e-05/0.7896, allocations: 85.69 kB / 1.169 GB, free: 0.5977 MB / 0.8887 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7896, allocations: 0 / 1.169 GB, free: 0.5977 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.0002083/0.7899, allocations: 4 kB / 1.169 GB, free: 0.5938 MB / 0.8887 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.0006169/0.7905, allocations: 0.6056 MB / 1.17 GB, free: 15.96 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 9.34e-05/0.7906, allocations: 15.98 kB / 1.17 GB, free: 15.94 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.7906, allocations: 0 / 1.17 GB, free: 15.94 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 1.866e-05/0.7906, allocations: 7.938 kB / 1.17 GB, free: 15.93 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001332/0.7908, allocations: 5.719 kB / 1.17 GB, free: 15.93 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003274/0.7911, allocations: 110.6 kB / 1.17 GB, free: 15.78 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003253/0.7914, allocations: 0.669 MB / 1.17 GB, free: 15.09 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 1.592e-05/0.7914, allocations: 4.125 kB / 1.17 GB, free: 15.08 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.457e-05/0.7915, allocations: 11.44 kB / 1.17 GB, free: 15.07 MB / 0.9044 GB Notification: Performance of SimCode: time 3.4e-07/0.7915, allocations: 0 / 1.17 GB, free: 15.07 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02316/0.8146, allocations: 1.071 MB / 1.171 GB, free: 14.09 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.136/8.95, allocations: 9.266 kB / 1.171 GB, free: 14.08 MB / 0.9044 GB (rm -f Buildings_10_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Functions.Examples.Factorial.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Utilities.Math.Functions.Examples.Factorial_res.csv --start-time 0 --stop-time 12.9 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00516 Buildings_10_Buildings_Utilities_Math_Functions_Examples_Factorial.fmu > Buildings_10_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Functions.Examples.Factorial_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Functions_Examples_Factorial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Functions.Examples.Factorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches