Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008349/0.0008349, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001266/0.001266, allocations: 169.9 kB / 22.46 MB, free: 2.105 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8835/0.8835, allocations: 177.1 MB / 202.8 MB, free: 5.734 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 1.753/1.753, allocations: 389 MB / 0.633 GB, free: 12.67 MB / 0.6042 GB " [Timeout remaining time 178] Using package Buildings with version 13.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.FallingFactorial,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Functions_Examples_FallingFactorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.FallingFactorial,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Functions_Examples_FallingFactorial",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.593e-06/1.593e-06, allocations: 0 / 0.9997 GB, free: 13.43 MB / 0.9636 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.302e-05/1.461e-05, allocations: 4.672 kB / 0.9997 GB, free: 13.42 MB / 0.9636 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.FallingFactorial): time 0.001051/0.001066, allocations: 0.5916 MB / 1 GB, free: 12.83 MB / 0.9636 GB Notification: Performance of NFInst.instExpressions: time 0.0002185/0.001285, allocations: 47.81 kB / 1 GB, free: 12.79 MB / 0.9636 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.867e-05/0.001303, allocations: 0 / 1 GB, free: 12.79 MB / 0.9636 GB Notification: Performance of NFTyping.typeComponents: time 2.922e-05/0.001332, allocations: 3.938 kB / 1 GB, free: 12.78 MB / 0.9636 GB Notification: Performance of NFTyping.typeBindings: time 5.892e-06/0.001338, allocations: 0 / 1 GB, free: 12.78 MB / 0.9636 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002833/0.001622, allocations: 23.91 kB / 1 GB, free: 12.76 MB / 0.9636 GB Notification: Performance of NFFlatten.flatten: time 7.065e-05/0.001692, allocations: 35.91 kB / 1 GB, free: 12.72 MB / 0.9636 GB Notification: Performance of NFFlatten.resolveConnections: time 3.389e-05/0.001726, allocations: 0 / 1 GB, free: 12.72 MB / 0.9636 GB Notification: Performance of NFEvalConstants.evaluate: time 3.271e-05/0.001759, allocations: 15.97 kB / 1 GB, free: 12.71 MB / 0.9636 GB Notification: Performance of NFSimplifyModel.simplify: time 2.213e-05/0.001781, allocations: 15.97 kB / 1 GB, free: 12.69 MB / 0.9636 GB Notification: Performance of NFPackage.collectConstants: time 1.286e-05/0.001794, allocations: 11.94 kB / 1 GB, free: 12.68 MB / 0.9636 GB Notification: Performance of NFFlatten.collectFunctions: time 7.667e-05/0.001871, allocations: 15.98 kB / 1 GB, free: 12.66 MB / 0.9636 GB Notification: Performance of NFScalarize.scalarize: time 2.373e-05/0.001894, allocations: 4 kB / 1 GB, free: 12.66 MB / 0.9636 GB Notification: Performance of NFVerifyModel.verify: time 2.25e-05/0.001917, allocations: 11.97 kB / 1 GB, free: 12.65 MB / 0.9636 GB Notification: Performance of NFConvertDAE.convert: time 9.382e-05/0.002011, allocations: 43.83 kB / 1.001 GB, free: 12.61 MB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 1.834e-06/0.002012, allocations: 0 / 1.001 GB, free: 12.61 MB / 0.9636 GB Notification: Performance of FrontEnd: time 1.032e-06/0.002013, allocations: 0 / 1.001 GB, free: 12.61 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 3.687e-06/0.002017, allocations: 0 / 1.001 GB, free: 12.61 MB / 0.9636 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.0002281/0.002245, allocations: 262.3 kB / 1.001 GB, free: 12.32 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 3.617e-05/0.002281, allocations: 8.75 kB / 1.001 GB, free: 12.31 MB / 0.9636 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.792e-05/0.002319, allocations: 34.75 kB / 1.001 GB, free: 12.27 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.738e-05/0.002347, allocations: 12.89 kB / 1.001 GB, free: 12.25 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.377e-05/0.002401, allocations: 101.8 kB / 1.001 GB, free: 12.13 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.042e-05/0.002411, allocations: 4.375 kB / 1.001 GB, free: 12.12 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.187e-06/0.00242, allocations: 8.375 kB / 1.001 GB, free: 12.12 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001125/0.002533, allocations: 62.22 kB / 1.001 GB, free: 12.05 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.163e-06/0.00254, allocations: 4.125 kB / 1.001 GB, free: 12.05 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.394e-06/0.002547, allocations: 4.312 kB / 1.001 GB, free: 12.04 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.654e-06/0.002555, allocations: 8.125 kB / 1.001 GB, free: 12.04 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.797e-05/0.002653, allocations: 99.8 kB / 1.001 GB, free: 11.94 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001263/0.002779, allocations: 140.7 kB / 1.001 GB, free: 11.76 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 8.533e-05/0.002864, allocations: 70.55 kB / 1.001 GB, free: 11.68 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.259e-05/0.002897, allocations: 24.84 kB / 1.001 GB, free: 11.65 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001622/0.003059, allocations: 19.98 kB / 1.001 GB, free: 11.63 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.008e-05/0.003079, allocations: 38.5 kB / 1.001 GB, free: 11.59 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=11): time 8.01e-07/0.00308, allocations: 0 / 1.001 GB, free: 11.59 MB / 0.9636 GB Notification: Performance of matching and sorting (n=11): time 0.0002055/0.003286, allocations: 117.9 kB / 1.001 GB, free: 11.46 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.71e-05/0.003313, allocations: 55.34 kB / 1.002 GB, free: 11.4 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.145e-05/0.003344, allocations: 93.84 kB / 1.002 GB, free: 11.3 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 1.181e-05/0.003356, allocations: 33.7 kB / 1.002 GB, free: 11.26 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 1.7e-05/0.003373, allocations: 80.14 kB / 1.002 GB, free: 11.18 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 2.305e-05/0.003396, allocations: 23.8 kB / 1.002 GB, free: 11.15 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.076e-05/0.003427, allocations: 33.64 kB / 1.002 GB, free: 11.11 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 7.48e-05/0.003502, allocations: 318.8 kB / 1.002 GB, free: 10.79 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.622e-05/0.003528, allocations: 19.98 kB / 1.002 GB, free: 10.77 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.439e-05/0.003552, allocations: 19.98 kB / 1.002 GB, free: 10.75 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.043e-05/0.003623, allocations: 64.77 kB / 1.002 GB, free: 10.69 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.003625, allocations: 7.938 kB / 1.002 GB, free: 10.68 MB / 0.9636 GB Notification: Performance of matching and sorting (n=11) (initialization): time 8.833e-05/0.003714, allocations: 89.62 kB / 1.002 GB, free: 10.59 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 1.137e-05/0.003725, allocations: 4 kB / 1.002 GB, free: 10.58 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.829e-06/0.00373, allocations: 3.984 kB / 1.002 GB, free: 10.58 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.699e-06/0.00374, allocations: 0 / 1.002 GB, free: 10.58 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.808e-05/0.003808, allocations: 23.94 kB / 1.002 GB, free: 10.55 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.038e-06/0.003812, allocations: 0 / 1.002 GB, free: 10.55 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.437e-05/0.003826, allocations: 11.94 kB / 1.002 GB, free: 10.54 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.841e-06/0.003832, allocations: 7.922 kB / 1.002 GB, free: 10.54 MB / 0.9636 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 8.25e-05/0.003914, allocations: 117.8 kB / 1.002 GB, free: 10.41 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.613e-06/0.003921, allocations: 7.953 kB / 1.002 GB, free: 10.4 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001361/0.004057, allocations: 122.3 kB / 1.003 GB, free: 10.27 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.336e-06/0.00406, allocations: 7.938 kB / 1.003 GB, free: 10.27 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.867e-06/0.004064, allocations: 0 / 1.003 GB, free: 10.27 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.545e-06/0.004067, allocations: 4 kB / 1.003 GB, free: 10.26 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.556e-05/0.004142, allocations: 136.8 kB / 1.003 GB, free: 10.09 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.004144, allocations: 0 / 1.003 GB, free: 10.09 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.579e-05/0.00418, allocations: 23.92 kB / 1.003 GB, free: 10.06 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.154e-06/0.004182, allocations: 0 / 1.003 GB, free: 10.06 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.003e-06/0.004189, allocations: 4 kB / 1.003 GB, free: 10.06 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-06/0.00419, allocations: 3.938 kB / 1.003 GB, free: 10.05 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.004191, allocations: 0 / 1.003 GB, free: 10.05 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001026/0.004294, allocations: 129 kB / 1.003 GB, free: 9.91 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 6.352e-06/0.0043, allocations: 11.94 kB / 1.003 GB, free: 9.898 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.042e-05/0.004311, allocations: 3.938 kB / 1.003 GB, free: 9.895 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.144e-06/0.004318, allocations: 8 kB / 1.003 GB, free: 9.887 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.562e-05/0.004343, allocations: 7.984 kB / 1.003 GB, free: 9.879 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.897e-06/0.004347, allocations: 4 kB / 1.003 GB, free: 9.875 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 1.997e-05/0.004367, allocations: 75.28 kB / 1.003 GB, free: 9.801 MB / 0.9636 GB Notification: Performance of sort global known variables: time 5e-08/0.004367, allocations: 4 kB / 1.003 GB, free: 9.797 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.0001334/0.004501, allocations: 11.94 kB / 1.003 GB, free: 9.785 MB / 0.9636 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.0003075/0.004808, allocations: 0.6748 MB / 1.004 GB, free: 9.082 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.0001041/0.004912, allocations: 59.84 kB / 1.004 GB, free: 9.023 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 1.202e-06/0.004913, allocations: 4 kB / 1.004 GB, free: 9.02 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 3.465e-05/0.004948, allocations: 39.91 kB / 1.004 GB, free: 8.98 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.819e-05/0.005046, allocations: 4 kB / 1.004 GB, free: 8.977 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002833/0.005329, allocations: 182.5 kB / 1.004 GB, free: 8.758 MB / 0.9636 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.164e-05/0.005371, allocations: 63.34 kB / 1.004 GB, free: 8.676 MB / 0.9636 GB Notification: Performance of simCode: alias equations: time 4.435e-05/0.005415, allocations: 35.94 kB / 1.004 GB, free: 8.641 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.128e-05/0.005447, allocations: 24.48 kB / 1.004 GB, free: 8.617 MB / 0.9636 GB Notification: Performance of SimCode: time 3.41e-07/0.005447, allocations: 4 kB / 1.004 GB, free: 8.613 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01324/0.01869, allocations: 2.201 MB / 1.006 GB, free: 6.551 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.803/6.822, allocations: 7.984 kB / 1.006 GB, free: 6.543 MB / 0.9636 GB " [Timeout remaining time 293] (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Math.Functions.Examples.FallingFactorial_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Math_Functions_Examples_FallingFactorial_fmu --startTime=0 --stopTime=13.9 --stepSize=0.00556 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_Math_Functions_Examples_FallingFactorial.fmu > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Functions.Examples.FallingFactorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Functions_Examples_FallingFactorial.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 10.754428607411683]