Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_Buildings_Utilities_Math_Functions_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="Buildings_9_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.01158/0.01158, allocations: 103.2 kB / 15.73 MB, free: 6.059 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.002549/0.002549, allocations: 190.5 kB / 16.67 MB, free: 5.977 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.377/1.377, allocations: 222.9 MB / 240.4 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.212/2.212, allocations: 390.3 MB / 0.6648 GB, free: 0.6758 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001885/0.001885, allocations: 63.91 kB / 0.9504 GB, free: 8.145 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6865/0.6884, allocations: 140.4 MB / 1.088 GB, free: 5.281 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.001447/0.6899, allocations: 0.572 MB / 1.088 GB, free: 4.934 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0002359/0.6901, allocations: 53.2 kB / 1.088 GB, free: 4.902 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.65e-05/0.6902, allocations: 3.859 kB / 1.088 GB, free: 4.902 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 1.158e-05/0.6902, allocations: 4 kB / 1.088 GB, free: 4.898 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 6.632e-06/0.6902, allocations: 0 / 1.088 GB, free: 4.898 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001884/0.6904, allocations: 11.14 kB / 1.088 GB, free: 4.895 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 4.335e-05/0.6905, allocations: 7.469 kB / 1.088 GB, free: 4.891 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 3.827e-05/0.6905, allocations: 1.859 kB / 1.088 GB, free: 4.891 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 1.37e-05/0.6905, allocations: 5.078 kB / 1.088 GB, free: 4.887 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 1.985e-05/0.6905, allocations: 1.703 kB / 1.088 GB, free: 4.887 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 9.328e-06/0.6906, allocations: 1.375 kB / 1.088 GB, free: 4.887 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 6.734e-05/0.6906, allocations: 9.375 kB / 1.088 GB, free: 4.883 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.006e-05/0.6906, allocations: 9 kB / 1.088 GB, free: 4.875 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 1.686e-05/0.6907, allocations: 1.031 kB / 1.088 GB, free: 4.875 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 8.039e-05/0.6908, allocations: 21.8 kB / 1.088 GB, free: 4.859 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.6908, allocations: 1.094 kB / 1.088 GB, free: 4.859 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.173e-06/0.6908, allocations: 0 / 1.088 GB, free: 4.859 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 8.145e-06/0.6908, allocations: 0 / 1.088 GB, free: 4.859 MB / 0.8575 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.0002093/0.691, allocations: 314 kB / 1.088 GB, free: 4.512 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.918e-05/0.691, allocations: 9.312 kB / 1.088 GB, free: 4.512 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.345e-05/0.6911, allocations: 35.27 kB / 1.089 GB, free: 4.469 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.291e-05/0.6911, allocations: 2.797 kB / 1.089 GB, free: 4.469 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 4.722e-05/0.6911, allocations: 161.1 kB / 1.089 GB, free: 4.273 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.092e-05/0.6912, allocations: 1.125 kB / 1.089 GB, free: 4.273 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.047e-06/0.6912, allocations: 5.406 kB / 1.089 GB, free: 4.27 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.481e-05/0.6913, allocations: 31.61 kB / 1.089 GB, free: 4.238 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.446e-06/0.6913, allocations: 7.938 kB / 1.089 GB, free: 4.23 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.263e-06/0.6913, allocations: 1.125 kB / 1.089 GB, free: 4.23 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.851e-06/0.6913, allocations: 0.7969 kB / 1.089 GB, free: 4.23 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.146e-05/0.6913, allocations: 11.64 kB / 1.089 GB, free: 4.223 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001004/0.6914, allocations: 149.7 kB / 1.089 GB, free: 4.031 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 4.708e-05/0.6915, allocations: 33.61 kB / 1.089 GB, free: 3.996 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.569e-05/0.6915, allocations: 7.703 kB / 1.089 GB, free: 3.988 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000132/0.6917, allocations: 80.81 kB / 1.089 GB, free: 3.895 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.642e-05/0.6917, allocations: 32.12 kB / 1.089 GB, free: 3.855 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=2): time 1.122e-06/0.6917, allocations: 0 / 1.089 GB, free: 3.855 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2): time 0.0001266/0.6918, allocations: 50.02 kB / 1.089 GB, free: 3.812 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.878e-05/0.6918, allocations: 51.41 kB / 1.089 GB, free: 3.75 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.74e-05/0.6919, allocations: 95.17 kB / 1.089 GB, free: 3.648 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 6.021e-06/0.6919, allocations: 26.41 kB / 1.089 GB, free: 3.617 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 9.598e-06/0.6919, allocations: 80.14 kB / 1.089 GB, free: 3.535 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.44e-05/0.6919, allocations: 5.031 kB / 1.089 GB, free: 3.531 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.634e-05/0.6919, allocations: 18.41 kB / 1.089 GB, free: 3.512 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 3.503e-05/0.692, allocations: 311.6 kB / 1.09 GB, free: 3.199 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.066e-05/0.692, allocations: 2.062 kB / 1.09 GB, free: 3.199 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.346e-06/0.692, allocations: 2.672 kB / 1.09 GB, free: 3.199 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.526e-05/0.6921, allocations: 19.48 kB / 1.09 GB, free: 3.184 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.333e-06/0.6921, allocations: 0 / 1.09 GB, free: 3.184 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.105e-05/0.6921, allocations: 39.89 kB / 1.09 GB, free: 3.148 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.4e-05/0.6921, allocations: 5.25 kB / 1.09 GB, free: 3.148 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.831e-06/0.6921, allocations: 5.031 kB / 1.09 GB, free: 3.145 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.103e-05/0.6922, allocations: 0 / 1.09 GB, free: 3.145 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.18e-05/0.6922, allocations: 4.375 kB / 1.09 GB, free: 3.145 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.668e-06/0.6922, allocations: 0 / 1.09 GB, free: 3.145 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.364e-05/0.6922, allocations: 2.766 kB / 1.09 GB, free: 3.145 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.707e-06/0.6923, allocations: 5.406 kB / 1.09 GB, free: 3.141 MB / 0.8575 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 4.031e-05/0.6923, allocations: 115.7 kB / 1.09 GB, free: 3.02 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.875e-06/0.6923, allocations: 1.859 kB / 1.09 GB, free: 3.02 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.648e-05/0.6924, allocations: 50.45 kB / 1.09 GB, free: 2.973 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.453e-06/0.6924, allocations: 1.219 kB / 1.09 GB, free: 2.973 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.887e-06/0.6924, allocations: 0 / 1.09 GB, free: 2.973 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.848e-06/0.6924, allocations: 2.078 kB / 1.09 GB, free: 2.973 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.88e-05/0.6925, allocations: 144.9 kB / 1.09 GB, free: 2.785 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.824e-06/0.6925, allocations: 5.031 kB / 1.09 GB, free: 2.781 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.293e-05/0.6925, allocations: 3.031 kB / 1.09 GB, free: 2.781 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.925e-06/0.6925, allocations: 5.578 kB / 1.09 GB, free: 2.777 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.891e-06/0.6925, allocations: 3.938 kB / 1.09 GB, free: 2.773 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.041e-06/0.6925, allocations: 0.9062 kB / 1.09 GB, free: 2.773 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.6925, allocations: 0.5156 kB / 1.09 GB, free: 2.773 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.417e-05/0.6926, allocations: 61.2 kB / 1.09 GB, free: 2.707 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 1.276e-05/0.6926, allocations: 82.84 kB / 1.09 GB, free: 2.609 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.028e-05/0.6926, allocations: 8.719 kB / 1.09 GB, free: 2.602 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.203e-05/0.6926, allocations: 5.031 kB / 1.09 GB, free: 2.598 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.594e-05/0.6927, allocations: 6.422 kB / 1.09 GB, free: 2.594 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.855e-06/0.6927, allocations: 1.062 kB / 1.09 GB, free: 2.594 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 8.947e-06/0.6927, allocations: 75.28 kB / 1.09 GB, free: 2.52 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1e-07/0.6927, allocations: 0 / 1.09 GB, free: 2.52 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.000196/0.6929, allocations: 5.047 kB / 1.09 GB, free: 2.52 MB / 0.8575 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.000229/0.6931, allocations: 0.6047 MB / 1.091 GB, free: 1.918 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 7.183e-05/0.6932, allocations: 15.52 kB / 1.091 GB, free: 1.91 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.6932, allocations: 0 / 1.091 GB, free: 1.91 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 1.486e-05/0.6932, allocations: 5.375 kB / 1.091 GB, free: 1.91 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001246/0.6934, allocations: 2.219 kB / 1.091 GB, free: 1.91 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003202/0.6937, allocations: 123.1 kB / 1.091 GB, free: 17.77 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002371/0.6939, allocations: 0.676 MB / 1.092 GB, free: 17.07 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 1.365e-05/0.694, allocations: 2.5 kB / 1.092 GB, free: 17.07 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.843e-05/0.694, allocations: 9.219 kB / 1.092 GB, free: 17.06 MB / 0.8731 GB Notification: Performance of SimCode: time 2.41e-07/0.694, allocations: 0 / 1.092 GB, free: 17.06 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01577/0.7098, allocations: 1.063 MB / 1.093 GB, free: 16.69 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.645/8.355, allocations: 6.406 kB / 1.093 GB, free: 16.69 MB / 0.8731 GB (rm -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.Factorial.sim & python3 -m fmpy simulate --output-file Buildings_9_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_9_Buildings_Utilities_Math_Functions_Examples_Factorial.fmu > Buildings_9_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Functions.Examples.Factorial_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Functions_Examples_Factorial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.Factorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches