Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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.Examples.FallingFactorial,fileNamePrefix="Buildings_10_Buildings_Utilities_Math_Examples_FallingFactorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.FallingFactorial,fileNamePrefix="Buildings_10_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.00134/0.00134, 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.001277/0.001277, allocations: 191.6 kB / 16.25 MB, free: 6.621 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.324/1.324, allocations: 222.9 MB / 239.9 MB, free: 4.543 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.311/2.311, allocations: 437 MB / 0.7101 GB, free: 5.234 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001146/0.001146, allocations: 64.14 kB / 0.8689 GB, free: 4.953 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5057/0.5069, allocations: 151.6 MB / 1.017 GB, free: 2.797 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.FallingFactorial): time 0.002347/0.5093, allocations: 1.591 MB / 1.018 GB, free: 1.195 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0003021/0.5096, allocations: 132.4 kB / 1.019 GB, free: 1.062 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.951e-05/0.5096, allocations: 0 / 1.019 GB, free: 1.062 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 2.688e-05/0.5097, allocations: 4 kB / 1.019 GB, free: 1.059 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 3.923e-05/0.5097, allocations: 3.984 kB / 1.019 GB, free: 1.055 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002322/0.51, allocations: 35.92 kB / 1.019 GB, free: 1.02 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 6.031e-05/0.51, allocations: 27.92 kB / 1.019 GB, free: 0.9922 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 8.439e-05/0.5101, allocations: 15.98 kB / 1.019 GB, free: 0.9766 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 2.572e-05/0.5102, allocations: 15.92 kB / 1.019 GB, free: 0.9609 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 3.88e-05/0.5102, allocations: 23.92 kB / 1.019 GB, free: 0.9375 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.098e-05/0.5102, allocations: 0 / 1.019 GB, free: 0.9375 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 6.019e-05/0.5103, allocations: 23.98 kB / 1.019 GB, free: 0.9141 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 1.315e-05/0.5103, allocations: 7.984 kB / 1.019 GB, free: 0.9062 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 2.489e-05/0.5103, allocations: 19.86 kB / 1.019 GB, free: 0.8867 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 9.153e-05/0.5104, allocations: 39.89 kB / 1.019 GB, free: 0.8477 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 2.946e-06/0.5104, allocations: 0 / 1.019 GB, free: 0.8477 MB / 0.7637 GB Notification: Performance of FrontEnd: time 1.122e-06/0.5104, allocations: 0 / 1.019 GB, free: 0.8477 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 7.244e-06/0.5104, allocations: 0 / 1.019 GB, free: 0.8477 MB / 0.7637 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.0003987/0.5108, allocations: 357.7 kB / 1.019 GB, free: 460 kB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 3.251e-05/0.5109, allocations: 8.031 kB / 1.019 GB, free: 452 kB / 0.7637 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.739e-05/0.5109, allocations: 34.75 kB / 1.019 GB, free: 408 kB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.492e-05/0.511, allocations: 12.78 kB / 1.019 GB, free: 396 kB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.693e-05/0.5111, allocations: 172.3 kB / 1.019 GB, free: 184 kB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.747e-05/0.5111, allocations: 8.375 kB / 1.019 GB, free: 176 kB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.207e-06/0.5111, allocations: 384 / 1.019 GB, free: 176 kB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001731/0.5113, allocations: 66.17 kB / 1.019 GB, free: 104 kB / 0.7637 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.324e-06/0.5113, allocations: 3.938 kB / 1.019 GB, free: 100 kB / 0.7637 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.865e-06/0.5113, allocations: 0 / 1.019 GB, free: 100 kB / 0.7637 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.787e-06/0.5113, allocations: 0 / 1.019 GB, free: 100 kB / 0.7637 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001682/0.5115, allocations: 47.95 kB / 1.019 GB, free: 52 kB / 0.7637 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003368/0.5118, allocations: 280.7 kB / 1.02 GB, free: 15.73 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002914/0.5121, allocations: 66.45 kB / 1.02 GB, free: 15.65 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.312e-05/0.5122, allocations: 32.84 kB / 1.02 GB, free: 15.62 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002265/0.5125, allocations: 393.5 kB / 1.02 GB, free: 15.14 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.85e-05/0.5125, allocations: 34.56 kB / 1.02 GB, free: 15.1 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=3): time 1.363e-06/0.5125, allocations: 0 / 1.02 GB, free: 15.1 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3): time 0.0003393/0.5128, allocations: 97.56 kB / 1.02 GB, free: 15 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.845e-05/0.5129, allocations: 55.41 kB / 1.02 GB, free: 14.93 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.537e-05/0.5129, allocations: 113.8 kB / 1.021 GB, free: 14.81 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.147e-05/0.513, allocations: 25.7 kB / 1.021 GB, free: 14.78 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 3.928e-05/0.513, allocations: 84.14 kB / 1.021 GB, free: 14.69 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.307e-05/0.513, allocations: 7.891 kB / 1.021 GB, free: 14.68 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.149e-05/0.5131, allocations: 17.72 kB / 1.021 GB, free: 14.66 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 9.029e-05/0.5132, allocations: 318.8 kB / 1.021 GB, free: 14.34 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.879e-05/0.5132, allocations: 23.97 kB / 1.021 GB, free: 14.32 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.628e-05/0.5133, allocations: 19.98 kB / 1.021 GB, free: 14.3 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001531/0.5135, allocations: 48.81 kB / 1.021 GB, free: 14.25 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.383e-06/0.5135, allocations: 0 / 1.021 GB, free: 14.25 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001958/0.5137, allocations: 69.59 kB / 1.021 GB, free: 14.17 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.22e-05/0.5137, allocations: 8 kB / 1.021 GB, free: 14.16 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.446e-06/0.5137, allocations: 4 kB / 1.021 GB, free: 14.16 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.106e-05/0.5137, allocations: 0 / 1.021 GB, free: 14.16 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.719e-05/0.5138, allocations: 11.98 kB / 1.021 GB, free: 14.15 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.448e-06/0.5138, allocations: 320 / 1.021 GB, free: 14.15 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.736e-05/0.5139, allocations: 15.92 kB / 1.021 GB, free: 14.13 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.2e-06/0.5139, allocations: 0 / 1.021 GB, free: 14.13 MB / 0.7794 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 6.687e-05/0.514, allocations: 114.3 kB / 1.021 GB, free: 14.01 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.428e-05/0.514, allocations: 3.906 kB / 1.021 GB, free: 14.01 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002435/0.5143, allocations: 97.47 kB / 1.021 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.563e-06/0.5143, allocations: 0 / 1.021 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/0.5143, allocations: 3.984 kB / 1.021 GB, free: 13.9 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.124e-06/0.5143, allocations: 0 / 1.021 GB, free: 13.9 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001432/0.5144, allocations: 169.7 kB / 1.022 GB, free: 13.69 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.923e-06/0.5144, allocations: 7.938 kB / 1.022 GB, free: 13.68 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.438e-05/0.5145, allocations: 15.98 kB / 1.022 GB, free: 13.66 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.935e-06/0.5145, allocations: 0 / 1.022 GB, free: 13.66 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.997e-06/0.5145, allocations: 11.94 kB / 1.022 GB, free: 13.65 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.041e-06/0.5145, allocations: 0 / 1.022 GB, free: 13.65 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.41e-07/0.5146, allocations: 0 / 1.022 GB, free: 13.65 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002303/0.5148, allocations: 171.8 kB / 1.022 GB, free: 13.47 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.183e-05/0.5148, allocations: 85 kB / 1.022 GB, free: 13.37 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.262e-05/0.5148, allocations: 0 / 1.022 GB, free: 13.37 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.293e-05/0.5149, allocations: 8 kB / 1.022 GB, free: 13.36 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.289e-05/0.515, allocations: 11.98 kB / 1.022 GB, free: 13.35 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.947e-06/0.515, allocations: 3.938 kB / 1.022 GB, free: 13.34 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 4.268e-05/0.515, allocations: 91.27 kB / 1.022 GB, free: 13.25 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.11e-07/0.515, allocations: 0 / 1.022 GB, free: 13.25 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002128/0.5153, allocations: 8 kB / 1.022 GB, free: 13.25 MB / 0.7794 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.0004789/0.5157, allocations: 0.7163 MB / 1.023 GB, free: 12.5 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.000205/0.516, allocations: 43.89 kB / 1.023 GB, free: 12.46 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.516, allocations: 0 / 1.023 GB, free: 12.46 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 8.974e-05/0.5161, allocations: 27.97 kB / 1.023 GB, free: 12.43 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002373/0.5163, allocations: 4 kB / 1.023 GB, free: 12.43 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001206/0.5175, allocations: 1.28 MB / 1.024 GB, free: 11.07 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002014/0.5177, allocations: 0.6768 MB / 1.025 GB, free: 10.36 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.174e-05/0.5178, allocations: 8 kB / 1.025 GB, free: 10.36 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.826e-05/0.5178, allocations: 19.42 kB / 1.025 GB, free: 10.34 MB / 0.7794 GB Notification: Performance of SimCode: time 2.31e-07/0.5178, allocations: 96 / 1.025 GB, free: 10.34 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09254/0.6104, allocations: 1.524 MB / 1.026 GB, free: 8.922 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002103/0.6106, allocations: 196.5 kB / 1.026 GB, free: 8.672 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.787/2.398, allocations: 3.938 kB / 1.026 GB, free: 8.668 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Utilities.Math.Examples.FallingFactorial.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Examples.FallingFactorial.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Examples.FallingFactorial.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Examples.FallingFactorial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Utilities.Math.Examples.FallingFactorial_res.mat --tempDir=temp_Buildings_10_Buildings_Utilities_Math_Examples_FallingFactorial_fmu --startTime=0 --stopTime=11 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Utilities_Math_Examples_FallingFactorial.fmu > Buildings_10_Buildings.Utilities.Math.Examples.FallingFactorial.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Examples.FallingFactorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Examples_FallingFactorial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Examples.FallingFactorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches