Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_Buildings_Utilities_Math_Functions_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="Buildings_11_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.00139/0.00139, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001389/0.001389, allocations: 193.1 kB / 16.53 MB, free: 6.391 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.398/1.398, allocations: 222.9 MB / 240.2 MB, free: 4.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.734/2.734, allocations: 469.8 MB / 0.7424 GB, free: 7.43 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001901/0.001901, allocations: 66.75 kB / 0.9087 GB, free: 34.37 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2696/0.2715, allocations: 159.1 MB / 1.064 GB, free: 14.21 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.00178/0.2734, allocations: 0.5961 MB / 1.065 GB, free: 13.61 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0002241/0.2736, allocations: 47.8 kB / 1.065 GB, free: 13.56 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.667e-05/0.2736, allocations: 0 / 1.065 GB, free: 13.56 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 1.058e-05/0.2736, allocations: 3.938 kB / 1.065 GB, free: 13.56 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 4.167e-06/0.2737, allocations: 0 / 1.065 GB, free: 13.56 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001913/0.2739, allocations: 15.92 kB / 1.065 GB, free: 13.54 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 3.636e-05/0.2739, allocations: 0 / 1.065 GB, free: 13.54 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 3.972e-05/0.2739, allocations: 8 kB / 1.065 GB, free: 13.54 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 1.381e-05/0.274, allocations: 7.984 kB / 1.065 GB, free: 13.53 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 1.745e-05/0.274, allocations: 0 / 1.065 GB, free: 13.53 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 8.345e-06/0.274, allocations: 0 / 1.065 GB, free: 13.53 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 6.55e-05/0.2741, allocations: 11.98 kB / 1.065 GB, free: 13.52 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 8.225e-06/0.2741, allocations: 7.938 kB / 1.065 GB, free: 13.51 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 1.413e-05/0.2741, allocations: 0 / 1.065 GB, free: 13.51 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 7.144e-05/0.2742, allocations: 19.92 kB / 1.065 GB, free: 13.49 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.506e-06/0.2742, allocations: 0 / 1.065 GB, free: 13.49 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.153e-06/0.2742, allocations: 0 / 1.065 GB, free: 13.49 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.499e-06/0.2742, allocations: 0 / 1.065 GB, free: 13.49 MB / 0.8262 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.0002972/0.2745, allocations: 315.6 kB / 1.065 GB, free: 13.13 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.636e-05/0.2745, allocations: 12.03 kB / 1.065 GB, free: 13.12 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.998e-05/0.2746, allocations: 30.75 kB / 1.065 GB, free: 13.08 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.899e-05/0.2746, allocations: 0.9375 kB / 1.065 GB, free: 13.08 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001031/0.2747, allocations: 164.4 kB / 1.065 GB, free: 12.88 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.896e-06/0.2747, allocations: 384 / 1.065 GB, free: 12.88 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.002e-05/0.2747, allocations: 4.359 kB / 1.065 GB, free: 12.88 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.85e-05/0.2748, allocations: 34.2 kB / 1.065 GB, free: 12.84 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.747e-06/0.2748, allocations: 3.938 kB / 1.065 GB, free: 12.83 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.142e-06/0.2749, allocations: 0 / 1.065 GB, free: 12.83 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.637e-06/0.2749, allocations: 4 kB / 1.065 GB, free: 12.83 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.816e-05/0.2749, allocations: 4 kB / 1.065 GB, free: 12.82 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001424/0.275, allocations: 153.7 kB / 1.065 GB, free: 12.62 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 4.607e-05/0.2751, allocations: 18.61 kB / 1.066 GB, free: 12.6 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.952e-05/0.2751, allocations: 12.92 kB / 1.066 GB, free: 12.58 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001453/0.2753, allocations: 81.09 kB / 1.066 GB, free: 12.48 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.349e-05/0.2753, allocations: 38.56 kB / 1.066 GB, free: 12.44 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=2): time 1.012e-06/0.2753, allocations: 3.938 kB / 1.066 GB, free: 12.43 MB / 0.8262 GB Notification: Performance of matching and sorting (n=2): time 0.0001244/0.2754, allocations: 41.64 kB / 1.066 GB, free: 12.39 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.444e-05/0.2755, allocations: 55.39 kB / 1.066 GB, free: 12.32 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.272e-05/0.2755, allocations: 89.86 kB / 1.066 GB, free: 12.22 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.354e-05/0.2756, allocations: 25.7 kB / 1.066 GB, free: 12.19 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 3.1e-05/0.2756, allocations: 80.14 kB / 1.066 GB, free: 12.11 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 1.481e-05/0.2756, allocations: 3.906 kB / 1.066 GB, free: 12.11 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.027e-05/0.2756, allocations: 21.84 kB / 1.066 GB, free: 12.08 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001172/0.2758, allocations: 314.8 kB / 1.066 GB, free: 11.76 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.172e-05/0.2758, allocations: 4 kB / 1.066 GB, free: 11.76 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.871e-06/0.2758, allocations: 0 / 1.066 GB, free: 11.76 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.776e-05/0.2758, allocations: 24.78 kB / 1.066 GB, free: 11.73 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.232e-06/0.2758, allocations: 0 / 1.066 GB, free: 11.73 MB / 0.8262 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.552e-05/0.2759, allocations: 33.7 kB / 1.066 GB, free: 11.69 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.015e-05/0.2759, allocations: 4 kB / 1.066 GB, free: 11.69 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.02e-06/0.2759, allocations: 8.031 kB / 1.066 GB, free: 11.68 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.618e-06/0.2759, allocations: 0 / 1.066 GB, free: 11.68 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.877e-05/0.276, allocations: 7.984 kB / 1.066 GB, free: 11.67 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.188e-06/0.276, allocations: 0 / 1.066 GB, free: 11.67 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.208e-05/0.276, allocations: 4.219 kB / 1.066 GB, free: 11.67 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.236e-06/0.276, allocations: 0 / 1.066 GB, free: 11.67 MB / 0.8262 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 6.94e-05/0.2761, allocations: 113.8 kB / 1.066 GB, free: 11.55 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.422e-06/0.2761, allocations: 0 / 1.066 GB, free: 11.55 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.873e-05/0.2762, allocations: 64.62 kB / 1.066 GB, free: 11.48 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.202e-06/0.2762, allocations: 0 / 1.066 GB, free: 11.48 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.076e-06/0.2762, allocations: 0 / 1.066 GB, free: 11.48 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.703e-06/0.2762, allocations: 0 / 1.066 GB, free: 11.48 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.95e-05/0.2763, allocations: 149.7 kB / 1.067 GB, free: 11.29 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.22e-07/0.2763, allocations: 0 / 1.067 GB, free: 11.29 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.35e-05/0.2764, allocations: 7.984 kB / 1.067 GB, free: 11.28 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.372e-06/0.2764, allocations: 0 / 1.067 GB, free: 11.28 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.152e-06/0.2764, allocations: 3.938 kB / 1.067 GB, free: 11.27 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.62e-07/0.2764, allocations: 0 / 1.067 GB, free: 11.27 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.2764, allocations: 0 / 1.067 GB, free: 11.27 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.457e-05/0.2765, allocations: 69.09 kB / 1.067 GB, free: 11.19 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.742e-05/0.2765, allocations: 77.11 kB / 1.067 GB, free: 11.09 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.226e-05/0.2765, allocations: 7.938 kB / 1.067 GB, free: 11.09 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.039e-05/0.2766, allocations: 0 / 1.067 GB, free: 11.09 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.494e-05/0.2766, allocations: 0 / 1.067 GB, free: 11.09 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.843e-06/0.2766, allocations: 0 / 1.067 GB, free: 11.09 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 3.457e-05/0.2766, allocations: 79.28 kB / 1.067 GB, free: 11.01 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2766, allocations: 4.031 kB / 1.067 GB, free: 11 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0001902/0.2768, allocations: 4 kB / 1.067 GB, free: 11 MB / 0.8262 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.0003923/0.2772, allocations: 0.6085 MB / 1.067 GB, free: 10.36 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 7.134e-05/0.2773, allocations: 15.94 kB / 1.067 GB, free: 10.34 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.272e-06/0.2773, allocations: 4.094 kB / 1.067 GB, free: 10.34 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 1.363e-05/0.2773, allocations: 4 kB / 1.067 GB, free: 10.34 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001117/0.2775, allocations: 0 / 1.067 GB, free: 10.34 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000269/0.2777, allocations: 126.5 kB / 1.068 GB, free: 10.17 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002532/0.278, allocations: 0.669 MB / 1.068 GB, free: 9.477 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 1.243e-05/0.278, allocations: 4 kB / 1.068 GB, free: 9.473 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.925e-05/0.278, allocations: 11.42 kB / 1.068 GB, free: 9.461 MB / 0.8262 GB Notification: Performance of SimCode: time 2.21e-07/0.278, allocations: 0 / 1.068 GB, free: 9.461 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9987/1.277, allocations: 1.044 MB / 1.069 GB, free: 8.484 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.91/11.19, allocations: 9.703 kB / 1.069 GB, free: 8.477 MB / 0.8262 GB (rm -f Buildings_11_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo Buildings_11_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/Buildings_11_Buildings.Utilities.Math.Functions.Examples.Factorial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Utilities.Math.Functions.Examples.Factorial_res.mat --tempDir=temp_Buildings_11_Buildings_Utilities_Math_Functions_Examples_Factorial_fmu --startTime=0 --stopTime=12.9 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Utilities_Math_Functions_Examples_Factorial.fmu > Buildings_11_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Utilities.Math.Functions.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Math_Functions_Examples_Factorial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Utilities.Math.Functions.Examples.Factorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches