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.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.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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_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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008261/0.008261, allocations: 101.2 kB / 15.73 MB, free: 6.047 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.001986/0.001986, allocations: 195.9 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.383/1.383, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.754/2.754, allocations: 461.9 MB / 0.7348 GB, free: 14.65 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001307/0.001307, allocations: 63.91 kB / 1.054 GB, free: 7.641 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2833/0.2847, allocations: 157.4 MB / 1.207 GB, free: 10.14 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.00179/0.2865, allocations: 0.5874 MB / 1.208 GB, free: 9.547 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.0002632/0.2868, allocations: 47.86 kB / 1.208 GB, free: 9.5 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.748e-05/0.2868, allocations: 0 / 1.208 GB, free: 9.5 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 1.92e-05/0.2868, allocations: 7.938 kB / 1.208 GB, free: 9.492 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 9.047e-06/0.2869, allocations: 0 / 1.208 GB, free: 9.492 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002419/0.2871, allocations: 11.92 kB / 1.208 GB, free: 9.48 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 4.891e-05/0.2872, allocations: 8 kB / 1.208 GB, free: 9.473 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 5.53e-05/0.2872, allocations: 7.984 kB / 1.208 GB, free: 9.465 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 2.56e-05/0.2873, allocations: 4 kB / 1.208 GB, free: 9.461 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 2.294e-05/0.2873, allocations: 0 / 1.208 GB, free: 9.461 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.001e-05/0.2873, allocations: 0 / 1.208 GB, free: 9.461 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 8.135e-05/0.2874, allocations: 11.98 kB / 1.208 GB, free: 9.449 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 1.031e-05/0.2874, allocations: 0 / 1.208 GB, free: 9.449 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 1.862e-05/0.2874, allocations: 0 / 1.208 GB, free: 9.449 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 9.073e-05/0.2875, allocations: 15.92 kB / 1.208 GB, free: 9.434 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.528e-06/0.2875, allocations: 0 / 1.208 GB, free: 9.434 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.493e-06/0.2876, allocations: 4 kB / 1.208 GB, free: 9.43 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 5.42e-06/0.2876, allocations: 0 / 1.208 GB, free: 9.43 MB / 0.9669 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.0003307/0.2879, allocations: 315.6 kB / 1.208 GB, free: 9.07 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.535e-05/0.288, allocations: 8.625 kB / 1.208 GB, free: 9.062 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.344e-05/0.288, allocations: 34.69 kB / 1.208 GB, free: 9.02 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.534e-05/0.288, allocations: 0.9375 kB / 1.208 GB, free: 9.02 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001009/0.2881, allocations: 168.4 kB / 1.209 GB, free: 8.816 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.978e-06/0.2881, allocations: 384 / 1.209 GB, free: 8.816 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.112e-05/0.2882, allocations: 4.375 kB / 1.209 GB, free: 8.812 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001007/0.2883, allocations: 34.27 kB / 1.209 GB, free: 8.773 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.636e-06/0.2883, allocations: 3.938 kB / 1.209 GB, free: 8.77 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.316e-06/0.2883, allocations: 0 / 1.209 GB, free: 8.77 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.25e-06/0.2883, allocations: 0 / 1.209 GB, free: 8.77 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.373e-05/0.2883, allocations: 4 kB / 1.209 GB, free: 8.766 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000157/0.2885, allocations: 149.7 kB / 1.209 GB, free: 8.57 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 4.896e-05/0.2886, allocations: 30.55 kB / 1.209 GB, free: 8.531 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.672e-05/0.2886, allocations: 4.859 kB / 1.209 GB, free: 8.523 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001657/0.2888, allocations: 85.16 kB / 1.209 GB, free: 8.422 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.125e-05/0.2888, allocations: 38.5 kB / 1.209 GB, free: 8.375 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=2): time 1.042e-06/0.2888, allocations: 0 / 1.209 GB, free: 8.375 MB / 0.9669 GB Notification: Performance of matching and sorting (n=2): time 0.0001382/0.2889, allocations: 41.58 kB / 1.209 GB, free: 8.328 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.26e-05/0.289, allocations: 59.39 kB / 1.209 GB, free: 8.258 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.167e-05/0.289, allocations: 89.98 kB / 1.209 GB, free: 8.16 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.238e-05/0.289, allocations: 33.7 kB / 1.209 GB, free: 8.121 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 2.418e-05/0.2891, allocations: 80.14 kB / 1.209 GB, free: 8.039 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.001e-05/0.2891, allocations: 3.906 kB / 1.209 GB, free: 8.035 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.082e-05/0.2891, allocations: 13.72 kB / 1.209 GB, free: 8.016 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001113/0.2893, allocations: 310.8 kB / 1.209 GB, free: 7.703 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.427e-05/0.2893, allocations: 4 kB / 1.209 GB, free: 7.699 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.171e-05/0.2893, allocations: 11.92 kB / 1.209 GB, free: 7.688 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.287e-05/0.2893, allocations: 12.92 kB / 1.209 GB, free: 7.672 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.754e-06/0.2893, allocations: 0 / 1.209 GB, free: 7.672 MB / 0.9669 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.554e-05/0.2894, allocations: 41.64 kB / 1.21 GB, free: 7.625 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.606e-05/0.2894, allocations: 8 kB / 1.21 GB, free: 7.617 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.751e-06/0.2894, allocations: 3.938 kB / 1.21 GB, free: 7.613 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.141e-05/0.2895, allocations: 0 / 1.21 GB, free: 7.613 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.11e-05/0.2895, allocations: 7.984 kB / 1.21 GB, free: 7.605 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.659e-06/0.2895, allocations: 0 / 1.21 GB, free: 7.605 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.547e-05/0.2896, allocations: 288 / 1.21 GB, free: 7.605 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.489e-06/0.2896, allocations: 0 / 1.21 GB, free: 7.605 MB / 0.9669 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.153e-05/0.2896, allocations: 109.9 kB / 1.21 GB, free: 7.488 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.768e-05/0.2897, allocations: 4 kB / 1.21 GB, free: 7.484 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.997e-05/0.2898, allocations: 52.69 kB / 1.21 GB, free: 7.43 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.619e-06/0.2898, allocations: 4 kB / 1.21 GB, free: 7.426 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.589e-06/0.2898, allocations: 0 / 1.21 GB, free: 7.426 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.084e-06/0.2898, allocations: 0 / 1.21 GB, free: 7.426 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.597e-05/0.2899, allocations: 145.7 kB / 1.21 GB, free: 7.234 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.425e-06/0.2899, allocations: 7.922 kB / 1.21 GB, free: 7.227 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.454e-05/0.2899, allocations: 8.031 kB / 1.21 GB, free: 7.219 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.894e-06/0.2899, allocations: 0 / 1.21 GB, free: 7.219 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.444e-06/0.2899, allocations: 3.938 kB / 1.21 GB, free: 7.215 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.025e-06/0.29, allocations: 4 kB / 1.21 GB, free: 7.211 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.29, allocations: 0 / 1.21 GB, free: 7.211 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.443e-05/0.29, allocations: 65.11 kB / 1.21 GB, free: 7.129 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 2.945e-05/0.2901, allocations: 77.11 kB / 1.21 GB, free: 7.035 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.229e-05/0.2901, allocations: 3.938 kB / 1.21 GB, free: 7.031 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.097e-05/0.2901, allocations: 4.031 kB / 1.21 GB, free: 7.027 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.612e-05/0.2901, allocations: 4 kB / 1.21 GB, free: 7.023 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.715e-06/0.2901, allocations: 0 / 1.21 GB, free: 7.023 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 3.54e-05/0.2902, allocations: 75.28 kB / 1.21 GB, free: 6.949 MB / 0.9669 GB Notification: Performance of sort global known variables: time 2.6e-07/0.2902, allocations: 3.938 kB / 1.21 GB, free: 6.945 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0001987/0.2904, allocations: 4 kB / 1.21 GB, free: 6.941 MB / 0.9669 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.0003997/0.2908, allocations: 0.6239 MB / 1.211 GB, free: 6.285 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 7.152e-05/0.2909, allocations: 8 kB / 1.211 GB, free: 6.277 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.2909, allocations: 0 / 1.211 GB, free: 6.277 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 1.778e-05/0.2909, allocations: 7.938 kB / 1.211 GB, free: 6.27 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001282/0.291, allocations: 7.938 kB / 1.211 GB, free: 6.262 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003103/0.2914, allocations: 116.1 kB / 1.211 GB, free: 6.109 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002248/0.2916, allocations: 0.6768 MB / 1.211 GB, free: 5.406 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 1.277e-05/0.2916, allocations: 0 / 1.211 GB, free: 5.406 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.897e-05/0.2917, allocations: 19.42 kB / 1.212 GB, free: 5.391 MB / 0.9669 GB Notification: Performance of SimCode: time 3.61e-07/0.2917, allocations: 0 / 1.212 GB, free: 5.391 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01716/0.3088, allocations: 1.07 MB / 1.213 GB, free: 4.414 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.731/8.04, allocations: 7.875 kB / 1.213 GB, free: 4.406 MB / 0.9669 GB (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 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_Math_Functions_Examples_Factorial.fmu > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) 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) "" Variables in the reference:time,fac Variables in the result:fac,n,time