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.002055/0.002055, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.003122/0.003122, allocations: 187.5 kB / 16.25 MB, free: 6.637 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.815/2.815, allocations: 222.9 MB / 239.9 MB, free: 4.531 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 4.821/4.821, allocations: 461.9 MB / 0.7344 GB, free: 14.95 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001695/0.001695, allocations: 71.61 kB / 0.8987 GB, free: 37.21 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2697/0.2714, allocations: 157.4 MB / 1.052 GB, free: 8.668 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.001661/0.2731, allocations: 0.6502 MB / 1.053 GB, free: 8.012 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0002228/0.2734, allocations: 51.8 kB / 1.053 GB, free: 7.961 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.103e-05/0.2734, allocations: 3.938 kB / 1.053 GB, free: 7.957 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.259e-05/0.2734, allocations: 0 / 1.053 GB, free: 7.957 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 4.308e-06/0.2734, allocations: 4 kB / 1.053 GB, free: 7.953 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.000189/0.2736, allocations: 11.98 kB / 1.053 GB, free: 7.941 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 3.696e-05/0.2737, allocations: 7.984 kB / 1.053 GB, free: 7.934 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 3.198e-05/0.2737, allocations: 0 / 1.053 GB, free: 7.934 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 1.136e-05/0.2737, allocations: 0 / 1.053 GB, free: 7.934 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 1.787e-05/0.2737, allocations: 0 / 1.053 GB, free: 7.934 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.032e-05/0.2737, allocations: 4 kB / 1.053 GB, free: 7.93 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 6.014e-05/0.2738, allocations: 8 kB / 1.053 GB, free: 7.922 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 8.666e-06/0.2738, allocations: 0 / 1.053 GB, free: 7.922 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 1.77e-05/0.2738, allocations: 3.984 kB / 1.053 GB, free: 7.918 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 6.718e-05/0.2739, allocations: 15.92 kB / 1.053 GB, free: 7.902 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.176e-06/0.2739, allocations: 4 kB / 1.053 GB, free: 7.898 MB / 0.8106 GB Notification: Performance of FrontEnd: time 8.32e-07/0.2739, allocations: 0 / 1.053 GB, free: 7.898 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.867e-06/0.2739, allocations: 0 / 1.053 GB, free: 7.898 MB / 0.8106 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.0002459/0.2742, allocations: 315.6 kB / 1.053 GB, free: 7.539 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.791e-05/0.2742, allocations: 12.62 kB / 1.053 GB, free: 7.527 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.04e-05/0.2743, allocations: 38.75 kB / 1.054 GB, free: 7.48 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.939e-05/0.2743, allocations: 0.9375 kB / 1.054 GB, free: 7.48 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.679e-05/0.2744, allocations: 160.4 kB / 1.054 GB, free: 7.285 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.628e-06/0.2744, allocations: 384 / 1.054 GB, free: 7.285 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.094e-05/0.2744, allocations: 12.31 kB / 1.054 GB, free: 7.273 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.768e-05/0.2745, allocations: 34.23 kB / 1.054 GB, free: 7.234 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.004e-06/0.2745, allocations: 3.938 kB / 1.054 GB, free: 7.23 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.212e-06/0.2745, allocations: 0 / 1.054 GB, free: 7.23 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.357e-06/0.2745, allocations: 4 kB / 1.054 GB, free: 7.227 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.567e-05/0.2746, allocations: 0 / 1.054 GB, free: 7.227 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000126/0.2747, allocations: 157.6 kB / 1.054 GB, free: 7.023 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 4.625e-05/0.2747, allocations: 26.61 kB / 1.054 GB, free: 6.988 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.05e-05/0.2748, allocations: 16.86 kB / 1.054 GB, free: 6.969 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001391/0.2749, allocations: 77.11 kB / 1.054 GB, free: 6.875 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.162e-05/0.2749, allocations: 38.55 kB / 1.054 GB, free: 6.828 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=2): time 1.122e-06/0.275, allocations: 0 / 1.054 GB, free: 6.828 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2): time 0.0001309/0.2751, allocations: 41.64 kB / 1.054 GB, free: 6.781 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.81e-05/0.2751, allocations: 51.41 kB / 1.054 GB, free: 6.719 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.302e-05/0.2752, allocations: 89.86 kB / 1.054 GB, free: 6.621 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.168e-05/0.2752, allocations: 29.83 kB / 1.054 GB, free: 6.586 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 2.617e-05/0.2752, allocations: 80.14 kB / 1.054 GB, free: 6.504 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.587e-05/0.2752, allocations: 7.938 kB / 1.054 GB, free: 6.496 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.877e-05/0.2753, allocations: 17.7 kB / 1.054 GB, free: 6.473 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 8.915e-05/0.2754, allocations: 314.8 kB / 1.055 GB, free: 6.156 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.275e-05/0.2754, allocations: 3.938 kB / 1.055 GB, free: 6.152 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.697e-06/0.2754, allocations: 4 kB / 1.055 GB, free: 6.148 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.429e-05/0.2754, allocations: 16.92 kB / 1.055 GB, free: 6.129 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.2754, allocations: 0 / 1.055 GB, free: 6.129 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.425e-05/0.2755, allocations: 41.59 kB / 1.055 GB, free: 6.082 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.183e-05/0.2755, allocations: 4 kB / 1.055 GB, free: 6.078 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.911e-06/0.2755, allocations: 3.938 kB / 1.055 GB, free: 6.074 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.738e-06/0.2755, allocations: 0 / 1.055 GB, free: 6.074 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.289e-05/0.2756, allocations: 4 kB / 1.055 GB, free: 6.07 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.558e-06/0.2756, allocations: 0 / 1.055 GB, free: 6.07 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.532e-05/0.2756, allocations: 288 / 1.055 GB, free: 6.07 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.7e-06/0.2756, allocations: 7.938 kB / 1.055 GB, free: 6.062 MB / 0.8106 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.119e-05/0.2757, allocations: 117.9 kB / 1.055 GB, free: 5.938 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.872e-06/0.2757, allocations: 0 / 1.055 GB, free: 5.938 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.19e-05/0.2758, allocations: 48.7 kB / 1.055 GB, free: 5.887 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.206e-06/0.2758, allocations: 3.984 kB / 1.055 GB, free: 5.883 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.048e-06/0.2758, allocations: 0 / 1.055 GB, free: 5.883 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.014e-06/0.2758, allocations: 0 / 1.055 GB, free: 5.883 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.269e-05/0.2759, allocations: 145.7 kB / 1.055 GB, free: 5.691 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/0.2759, allocations: 0 / 1.055 GB, free: 5.691 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.75e-05/0.276, allocations: 8 kB / 1.055 GB, free: 5.684 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.824e-06/0.276, allocations: 4.031 kB / 1.055 GB, free: 5.68 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.704e-06/0.276, allocations: 7.922 kB / 1.055 GB, free: 5.672 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.276, allocations: 0 / 1.055 GB, free: 5.672 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.276, allocations: 0 / 1.055 GB, free: 5.672 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.991e-05/0.2761, allocations: 61.08 kB / 1.055 GB, free: 5.594 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.153e-05/0.2761, allocations: 85.09 kB / 1.055 GB, free: 5.492 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.083e-05/0.2761, allocations: 3.938 kB / 1.055 GB, free: 5.488 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.259e-05/0.2761, allocations: 11.97 kB / 1.055 GB, free: 5.477 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.413e-05/0.2762, allocations: 0 / 1.055 GB, free: 5.477 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.078e-06/0.2762, allocations: 4 kB / 1.055 GB, free: 5.473 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 2.268e-05/0.2762, allocations: 75.28 kB / 1.055 GB, free: 5.398 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.413e-06/0.2762, allocations: 0 / 1.055 GB, free: 5.398 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0001945/0.2764, allocations: 7.938 kB / 1.055 GB, free: 5.391 MB / 0.8106 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.0003541/0.2768, allocations: 0.6046 MB / 1.056 GB, free: 4.754 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 7.337e-05/0.2769, allocations: 15.98 kB / 1.056 GB, free: 4.738 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.724e-06/0.2769, allocations: 0 / 1.056 GB, free: 4.738 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 1.481e-05/0.2769, allocations: 4 kB / 1.056 GB, free: 4.734 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001295/0.277, allocations: 4 kB / 1.056 GB, free: 4.73 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002754/0.2773, allocations: 118.7 kB / 1.056 GB, free: 4.574 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002021/0.2775, allocations: 0.6767 MB / 1.057 GB, free: 3.871 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 1.386e-05/0.2775, allocations: 4 kB / 1.057 GB, free: 3.867 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.944e-05/0.2776, allocations: 7.438 kB / 1.057 GB, free: 3.859 MB / 0.8106 GB Notification: Performance of SimCode: time 2.2e-07/0.2776, allocations: 0 / 1.057 GB, free: 3.859 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.33/2.608, allocations: 0.9644 MB / 1.058 GB, free: 3.016 MB / 0.8106 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003251/2.608, allocations: 210.6 kB / 1.058 GB, free: 2.758 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.811/4.419, allocations: 2.812 kB / 1.058 GB, free: 2.758 MB / 0.8106 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) Reference file matches