Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial.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.Examples.FallingFactorial,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Examples_FallingFactorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.FallingFactorial,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Examples_FallingFactorial",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.001655/0.001656, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001961/0.001961, allocations: 194.5 kB / 16.25 MB, free: 6.629 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.517/1.517, allocations: 222.9 MB / 239.9 MB, free: 4.523 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 3.04/3.04, allocations: 461.9 MB / 0.7344 GB, free: 14.93 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001691/0.001691, allocations: 64.19 kB / 0.8987 GB, free: 37.21 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4045/0.4062, allocations: 157.4 MB / 1.052 GB, free: 8.664 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.FallingFactorial): time 0.0034/0.4097, allocations: 1.601 MB / 1.054 GB, free: 7.051 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0004229/0.4101, allocations: 135.6 kB / 1.054 GB, free: 6.918 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.549e-05/0.4102, allocations: 0 / 1.054 GB, free: 6.918 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 3.984e-05/0.4102, allocations: 3.938 kB / 1.054 GB, free: 6.914 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 5.01e-05/0.4103, allocations: 0 / 1.054 GB, free: 6.914 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003271/0.4106, allocations: 19.98 kB / 1.054 GB, free: 6.895 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 9.149e-05/0.4108, allocations: 39.91 kB / 1.054 GB, free: 6.855 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001079/0.4109, allocations: 15.98 kB / 1.054 GB, free: 6.84 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 3.822e-05/0.4109, allocations: 19.92 kB / 1.054 GB, free: 6.82 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 4.825e-05/0.411, allocations: 15.92 kB / 1.054 GB, free: 6.805 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.648e-05/0.411, allocations: 4 kB / 1.054 GB, free: 6.801 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 8.24e-05/0.4111, allocations: 27.92 kB / 1.054 GB, free: 6.773 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.864e-05/0.4111, allocations: 11.92 kB / 1.054 GB, free: 6.762 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 3.446e-05/0.4111, allocations: 19.92 kB / 1.054 GB, free: 6.742 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001298/0.4113, allocations: 35.89 kB / 1.054 GB, free: 6.707 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.43e-06/0.4113, allocations: 0 / 1.054 GB, free: 6.707 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.262e-06/0.4113, allocations: 0 / 1.054 GB, free: 6.707 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 7.995e-06/0.4113, allocations: 0 / 1.054 GB, free: 6.707 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0005201/0.4118, allocations: 363.6 kB / 1.055 GB, free: 6.301 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.77e-05/0.4119, allocations: 12.62 kB / 1.055 GB, free: 6.289 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.022e-05/0.4119, allocations: 30.75 kB / 1.055 GB, free: 6.25 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.611e-05/0.412, allocations: 4.938 kB / 1.055 GB, free: 6.246 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000163/0.4122, allocations: 168.3 kB / 1.055 GB, free: 6.043 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.333e-05/0.4122, allocations: 384 / 1.055 GB, free: 6.043 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.516e-05/0.4122, allocations: 8.375 kB / 1.055 GB, free: 6.035 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002204/0.4124, allocations: 66.22 kB / 1.055 GB, free: 5.965 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.161e-05/0.4124, allocations: 3.938 kB / 1.055 GB, free: 5.961 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.63e-05/0.4125, allocations: 7.984 kB / 1.055 GB, free: 5.953 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.424e-06/0.4125, allocations: 0 / 1.055 GB, free: 5.953 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002227/0.4127, allocations: 51.83 kB / 1.055 GB, free: 5.902 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004667/0.4132, allocations: 276.8 kB / 1.055 GB, free: 5.582 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003453/0.4135, allocations: 58.55 kB / 1.055 GB, free: 5.516 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001049/0.4137, allocations: 28.89 kB / 1.055 GB, free: 5.484 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003934/0.4141, allocations: 405.5 kB / 1.056 GB, free: 4.996 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.951e-05/0.4141, allocations: 30.56 kB / 1.056 GB, free: 4.957 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=3): time 1.703e-06/0.4141, allocations: 0 / 1.056 GB, free: 4.957 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3): time 0.0004366/0.4146, allocations: 105.5 kB / 1.056 GB, free: 4.848 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.368e-05/0.4146, allocations: 51.41 kB / 1.056 GB, free: 4.785 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.879e-05/0.4147, allocations: 105.8 kB / 1.056 GB, free: 4.672 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.637e-05/0.4147, allocations: 25.7 kB / 1.056 GB, free: 4.641 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5e-05/0.4148, allocations: 88.14 kB / 1.056 GB, free: 4.551 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.701e-05/0.4148, allocations: 4.406 kB / 1.056 GB, free: 4.547 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.399e-05/0.4149, allocations: 25.7 kB / 1.056 GB, free: 4.516 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001265/0.415, allocations: 314.8 kB / 1.056 GB, free: 4.199 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.768e-05/0.4151, allocations: 19.98 kB / 1.056 GB, free: 4.18 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.815e-05/0.4152, allocations: 27.91 kB / 1.056 GB, free: 4.152 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000171/0.4154, allocations: 40.81 kB / 1.057 GB, free: 4.109 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.245e-06/0.4154, allocations: 0 / 1.057 GB, free: 4.109 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002382/0.4156, allocations: 77.66 kB / 1.057 GB, free: 4.027 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.751e-05/0.4157, allocations: 5.406 kB / 1.057 GB, free: 4.023 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.779e-06/0.4157, allocations: 0 / 1.057 GB, free: 4.023 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.504e-05/0.4157, allocations: 4 kB / 1.057 GB, free: 4.02 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.572e-05/0.4158, allocations: 7.984 kB / 1.057 GB, free: 4.012 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.003e-06/0.4158, allocations: 7.938 kB / 1.057 GB, free: 4.004 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.764e-05/0.4159, allocations: 11.89 kB / 1.057 GB, free: 3.992 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.868e-06/0.4159, allocations: 0 / 1.057 GB, free: 3.992 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 (falFac.y,rea2Int.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * 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 9.126e-05/0.416, allocations: 121.7 kB / 1.057 GB, free: 3.863 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.672e-05/0.416, allocations: 4 kB / 1.057 GB, free: 3.859 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002895/0.4163, allocations: 81.55 kB / 1.057 GB, free: 3.77 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.745e-06/0.4163, allocations: 0 / 1.057 GB, free: 3.77 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/0.4163, allocations: 0 / 1.057 GB, free: 3.77 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/0.4163, allocations: 384 / 1.057 GB, free: 3.77 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001919/0.4165, allocations: 173.7 kB / 1.057 GB, free: 3.551 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.4165, allocations: 7.938 kB / 1.057 GB, free: 3.543 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.774e-05/0.4166, allocations: 11.98 kB / 1.057 GB, free: 3.531 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.196e-06/0.4166, allocations: 0 / 1.057 GB, free: 3.531 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.466e-06/0.4167, allocations: 0 / 1.057 GB, free: 3.531 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.124e-06/0.4167, allocations: 0 / 1.057 GB, free: 3.531 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.602e-06/0.4167, allocations: 7.969 kB / 1.057 GB, free: 3.523 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002948/0.417, allocations: 183.3 kB / 1.057 GB, free: 3.328 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 5.238e-05/0.417, allocations: 81.11 kB / 1.057 GB, free: 3.23 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.585e-05/0.4171, allocations: 0 / 1.057 GB, free: 3.23 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001053/0.4172, allocations: 7.984 kB / 1.057 GB, free: 3.223 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.284e-05/0.4172, allocations: 11.98 kB / 1.057 GB, free: 3.211 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.029e-06/0.4172, allocations: 0 / 1.057 GB, free: 3.211 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 5.113e-05/0.4173, allocations: 79.28 kB / 1.057 GB, free: 3.133 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.41e-07/0.4173, allocations: 0 / 1.057 GB, free: 3.133 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002535/0.4176, allocations: 19.94 kB / 1.057 GB, free: 3.113 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 (rea2Int.y,falFac.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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.0006426/0.4182, allocations: 0.7085 MB / 1.058 GB, free: 2.379 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002472/0.4185, allocations: 51.94 kB / 1.058 GB, free: 2.328 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.796e-06/0.4185, allocations: 4 kB / 1.058 GB, free: 2.324 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 9.999e-05/0.4186, allocations: 19.98 kB / 1.058 GB, free: 2.305 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000321/0.4189, allocations: 11.94 kB / 1.058 GB, free: 2.293 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001655/0.4206, allocations: 1.307 MB / 1.059 GB, free: 0.9062 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003003/0.4209, allocations: 0.6807 MB / 1.06 GB, free: 204 kB / 0.8106 GB Notification: Performance of simCode: alias equations: time 3.65e-05/0.421, allocations: 4 kB / 1.06 GB, free: 200 kB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.204e-05/0.421, allocations: 11.44 kB / 1.06 GB, free: 188 kB / 0.8106 GB Notification: Performance of SimCode: time 4.11e-07/0.421, allocations: 0 / 1.06 GB, free: 188 kB / 0.8106 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.617/4.038, allocations: 1.528 MB / 1.062 GB, free: 14.78 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002334/4.038, allocations: 209.8 kB / 1.062 GB, free: 14.52 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.113/7.151, allocations: 4 kB / 1.062 GB, free: 14.51 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Math_Examples_FallingFactorial_fmu --startTime=0 --stopTime=11 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_Math_Examples_FallingFactorial.fmu > Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_FallingFactorial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches