Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.Functions.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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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.FallingFactorial,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Functions_Examples_FallingFactorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.FallingFactorial,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Functions_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.001214/0.001214, 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.001228/0.001228, allocations: 194.5 kB / 16.25 MB, free: 6.633 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.25/1.25, allocations: 222.9 MB / 239.9 MB, free: 4.504 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.134/2.134, allocations: 390.3 MB / 0.6644 GB, free: 0.5664 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001166/0.001166, allocations: 75.88 kB / 0.8122 GB, free: 14.65 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5235/0.5247, allocations: 140.4 MB / 0.9492 GB, free: 9.059 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.FallingFactorial): time 0.001492/0.5263, allocations: 0.6421 MB / 0.9499 GB, free: 8.566 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0002066/0.5265, allocations: 61.8 kB / 0.9499 GB, free: 8.52 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.287e-05/0.5265, allocations: 0 / 0.9499 GB, free: 8.52 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.335e-05/0.5265, allocations: 0 / 0.9499 GB, free: 8.52 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.298e-06/0.5265, allocations: 0 / 0.9499 GB, free: 8.52 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002225/0.5268, allocations: 18.98 kB / 0.95 GB, free: 8.508 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 6.427e-05/0.5268, allocations: 30.91 kB / 0.95 GB, free: 8.492 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 3.52e-05/0.5269, allocations: 6.094 kB / 0.95 GB, free: 8.488 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 1.615e-05/0.5269, allocations: 13.23 kB / 0.95 GB, free: 8.48 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 2.343e-05/0.5269, allocations: 14.77 kB / 0.95 GB, free: 8.473 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.053e-05/0.5269, allocations: 1.219 kB / 0.95 GB, free: 8.473 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 5.847e-05/0.527, allocations: 20.73 kB / 0.95 GB, free: 8.461 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.045e-05/0.527, allocations: 4.531 kB / 0.95 GB, free: 8.461 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.653e-05/0.5271, allocations: 17.05 kB / 0.9501 GB, free: 8.449 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 7.228e-05/0.5271, allocations: 31.7 kB / 0.9501 GB, free: 8.43 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.026e-06/0.5271, allocations: 0 / 0.9501 GB, free: 8.43 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.182e-06/0.5272, allocations: 4 kB / 0.9501 GB, free: 8.426 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 7.504e-06/0.5272, allocations: 3.938 kB / 0.9501 GB, free: 8.422 MB / 0.7169 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0002059/0.5274, allocations: 341.3 kB / 0.9504 GB, free: 8.051 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.303e-05/0.5274, allocations: 9.719 kB / 0.9504 GB, free: 8.051 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.286e-05/0.5274, allocations: 43.92 kB / 0.9505 GB, free: 8 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.445e-05/0.5275, allocations: 3.781 kB / 0.9505 GB, free: 8 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 4.566e-05/0.5275, allocations: 162.6 kB / 0.9506 GB, free: 7.805 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.496e-06/0.5275, allocations: 6.875 kB / 0.9506 GB, free: 7.801 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.161e-05/0.5275, allocations: 4.219 kB / 0.9506 GB, free: 7.801 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001095/0.5277, allocations: 70.41 kB / 0.9507 GB, free: 7.742 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.414e-06/0.5277, allocations: 3.938 kB / 0.9507 GB, free: 7.738 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.043e-06/0.5277, allocations: 1.406 kB / 0.9507 GB, free: 7.738 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.208e-06/0.5277, allocations: 1.375 kB / 0.9507 GB, free: 7.738 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001107/0.5278, allocations: 98.59 kB / 0.9508 GB, free: 7.695 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001095/0.5279, allocations: 181.9 kB / 0.951 GB, free: 7.48 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 8.78e-05/0.528, allocations: 70.3 kB / 0.951 GB, free: 7.438 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.909e-05/0.5281, allocations: 32.3 kB / 0.9511 GB, free: 7.418 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001888/0.5283, allocations: 413.6 kB / 0.9515 GB, free: 6.93 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.274e-05/0.5283, allocations: 35.94 kB / 0.9515 GB, free: 6.887 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=11): time 1.041e-06/0.5283, allocations: 0 / 0.9515 GB, free: 6.887 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11): time 0.0001944/0.5285, allocations: 109.8 kB / 0.9516 GB, free: 6.824 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.655e-05/0.5285, allocations: 52.78 kB / 0.9517 GB, free: 6.762 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.719e-05/0.5285, allocations: 99.22 kB / 0.9518 GB, free: 6.656 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 6.943e-06/0.5285, allocations: 25.7 kB / 0.9518 GB, free: 6.625 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 8.707e-06/0.5286, allocations: 84.14 kB / 0.9519 GB, free: 6.539 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.268e-05/0.5286, allocations: 19.84 kB / 0.9519 GB, free: 6.523 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.345e-05/0.5286, allocations: 32.7 kB / 0.9519 GB, free: 6.496 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.358e-05/0.5287, allocations: 316.2 kB / 0.9522 GB, free: 6.18 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.15e-05/0.5287, allocations: 20.36 kB / 0.9522 GB, free: 6.172 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.819e-05/0.5287, allocations: 24.73 kB / 0.9523 GB, free: 6.16 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.592e-05/0.5288, allocations: 64.61 kB / 0.9523 GB, free: 6.125 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.5288, allocations: 0 / 0.9523 GB, free: 6.125 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001083/0.5289, allocations: 93.02 kB / 0.9524 GB, free: 6.066 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.122e-05/0.5289, allocations: 13.44 kB / 0.9524 GB, free: 6.059 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.617e-06/0.5289, allocations: 0 / 0.9524 GB, free: 6.059 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.118e-05/0.529, allocations: 1.688 kB / 0.9524 GB, free: 6.059 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.64e-05/0.5291, allocations: 26.36 kB / 0.9524 GB, free: 6.047 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.118e-06/0.5291, allocations: 0 / 0.9524 GB, free: 6.047 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.719e-05/0.5291, allocations: 5.469 kB / 0.9524 GB, free: 6.043 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.123e-06/0.5291, allocations: 2.594 kB / 0.9525 GB, free: 6.043 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 11 (n,falFac[10],falFac[9],falFac[8],falFac[7],falFac[6],falFac[5],falFac[4],falFac[3],falFac[2],falFac[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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 7.963e-05/0.5292, allocations: 129.1 kB / 0.9526 GB, free: 5.918 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.126e-05/0.5292, allocations: 10.88 kB / 0.9526 GB, free: 5.91 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001684/0.5294, allocations: 122.5 kB / 0.9527 GB, free: 5.824 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.946e-06/0.5294, allocations: 0.9375 kB / 0.9527 GB, free: 5.824 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/0.5294, allocations: 5.781 kB / 0.9527 GB, free: 5.82 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.915e-06/0.5294, allocations: 3.984 kB / 0.9527 GB, free: 5.816 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.876e-05/0.5295, allocations: 169.8 kB / 0.9529 GB, free: 5.613 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.5295, allocations: 5.312 kB / 0.9529 GB, free: 5.609 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.313e-05/0.5295, allocations: 22.23 kB / 0.9529 GB, free: 5.602 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.915e-06/0.5295, allocations: 9.312 kB / 0.9529 GB, free: 5.594 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.274e-06/0.5296, allocations: 1.375 kB / 0.9529 GB, free: 5.594 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.5296, allocations: 4 kB / 0.9529 GB, free: 5.59 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.5296, allocations: 1.125 kB / 0.9529 GB, free: 5.59 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001146/0.5297, allocations: 122.6 kB / 0.953 GB, free: 5.492 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.413e-05/0.5297, allocations: 82.33 kB / 0.9531 GB, free: 5.395 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.193e-05/0.5297, allocations: 9.312 kB / 0.9531 GB, free: 5.387 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.38e-05/0.5297, allocations: 0 / 0.9531 GB, free: 5.387 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.044e-05/0.5298, allocations: 13.7 kB / 0.9531 GB, free: 5.379 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.661e-06/0.5298, allocations: 2.75 kB / 0.9531 GB, free: 5.379 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.017e-05/0.5298, allocations: 75.28 kB / 0.9532 GB, free: 5.305 MB / 0.7169 GB Notification: Performance of sort global known variables: time 9.1e-08/0.5298, allocations: 0 / 0.9532 GB, free: 5.305 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0001885/0.53, allocations: 15.19 kB / 0.9532 GB, free: 5.301 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 11 (falFac[1],falFac[2],falFac[3],falFac[4],falFac[5],falFac[6],falFac[7],falFac[8],falFac[9],falFac[10],n) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 11 * 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.0002914/0.5303, allocations: 0.6741 MB / 0.9539 GB, free: 4.664 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001288/0.5304, allocations: 75.12 kB / 0.954 GB, free: 4.637 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.402e-06/0.5304, allocations: 0 / 0.954 GB, free: 4.637 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 4.517e-05/0.5305, allocations: 38.78 kB / 0.954 GB, free: 4.621 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000122/0.5306, allocations: 6.125 kB / 0.954 GB, free: 4.617 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002813/0.5309, allocations: 188.7 kB / 0.9542 GB, free: 4.434 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.214e-05/0.531, allocations: 0.6861 MB / 0.9548 GB, free: 3.73 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 6.336e-05/0.5311, allocations: 39.16 kB / 0.9549 GB, free: 3.711 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.693e-05/0.5311, allocations: 16.72 kB / 0.9549 GB, free: 3.699 MB / 0.7169 GB Notification: Performance of SimCode: time 2.01e-07/0.5311, allocations: 0 / 0.9549 GB, free: 3.699 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01021/0.5413, allocations: 1.448 MB / 0.9563 GB, free: 2.977 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001489/0.5415, allocations: 216.2 kB / 0.9565 GB, free: 2.719 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.636/2.177, allocations: 5.188 kB / 0.9565 GB, free: 2.715 MB / 0.7169 GB (rm -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Utilities.Math.Functions.Examples.FallingFactorial_res.mat --tempDir=temp_Buildings_9_Buildings_Utilities_Math_Functions_Examples_FallingFactorial_fmu --startTime=0 --stopTime=13.9 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Utilities_Math_Functions_Examples_FallingFactorial.fmu > Buildings_9_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Functions.Examples.FallingFactorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Functions_Examples_FallingFactorial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches