Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001352/0.001352, allocations: 99.66 kB / 18.94 MB, free: 2.84 MB / 14.72 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.001471/0.001471, allocations: 220 kB / 22.24 MB, free: 5.109 MB / 14.72 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 1.521/1.521, allocations: 230.6 MB / 256 MB, free: 7.816 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.267/3.267, allocations: 0.4892 GB / 0.7943 GB, free: 35.69 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/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_12_Buildings_Utilities_Math_Functions_Examples_FallingFactorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.FallingFactorial,fileNamePrefix="Buildings_12_Buildings_Utilities_Math_Functions_Examples_FallingFactorial",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002996/0.002996, allocations: 70.48 kB / 1.153 GB, free: 25.68 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3794/0.3824, allocations: 176.1 MB / 1.325 GB, free: 2.34 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.FallingFactorial): time 0.002132/0.3845, allocations: 0.6002 MB / 1.326 GB, free: 1.746 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.0003168/0.3849, allocations: 56.2 kB / 1.326 GB, free: 1.691 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.002e-05/0.3849, allocations: 0 / 1.326 GB, free: 1.691 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 3.605e-05/0.3849, allocations: 0 / 1.326 GB, free: 1.691 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 5.661e-06/0.3849, allocations: 0 / 1.326 GB, free: 1.691 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003147/0.3852, allocations: 23.92 kB / 1.326 GB, free: 1.668 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 8.697e-05/0.3853, allocations: 31.95 kB / 1.326 GB, free: 1.637 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 4.346e-05/0.3854, allocations: 8 kB / 1.326 GB, free: 1.629 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 2.258e-05/0.3854, allocations: 15.94 kB / 1.326 GB, free: 1.613 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 2.897e-05/0.3854, allocations: 7.984 kB / 1.326 GB, free: 1.605 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 1.687e-05/0.3854, allocations: 7.984 kB / 1.326 GB, free: 1.598 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 9.718e-05/0.3855, allocations: 15.98 kB / 1.326 GB, free: 1.582 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 3.235e-05/0.3856, allocations: 11.98 kB / 1.326 GB, free: 1.57 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 3.271e-05/0.3856, allocations: 11.94 kB / 1.326 GB, free: 1.559 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0001128/0.3857, allocations: 32.11 kB / 1.326 GB, free: 1.527 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 9.618e-06/0.3857, allocations: 8 kB / 1.326 GB, free: 1.52 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.823e-06/0.3857, allocations: 0 / 1.326 GB, free: 1.52 MB / 1.014 GB Notification: Performance of Transformations before backend: time 5.901e-06/0.3857, allocations: 0 / 1.326 GB, free: 1.52 MB / 1.014 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.0003429/0.3861, allocations: 266.3 kB / 1.326 GB, free: 1.227 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 4.796e-05/0.3861, allocations: 12.03 kB / 1.326 GB, free: 1.215 MB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.389e-05/0.3862, allocations: 34.75 kB / 1.326 GB, free: 1.172 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.121e-05/0.3862, allocations: 4.938 kB / 1.326 GB, free: 1.168 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.286e-05/0.3863, allocations: 102.5 kB / 1.326 GB, free: 1.043 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.621e-05/0.3863, allocations: 8.312 kB / 1.326 GB, free: 1.035 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.315e-05/0.3863, allocations: 8.312 kB / 1.326 GB, free: 1.027 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001502/0.3865, allocations: 66.22 kB / 1.326 GB, free: 0.957 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.02e-05/0.3865, allocations: 3.938 kB / 1.326 GB, free: 0.9531 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.536e-06/0.3865, allocations: 0 / 1.326 GB, free: 0.9531 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.478e-06/0.3865, allocations: 4 kB / 1.326 GB, free: 0.9492 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001486/0.3866, allocations: 91.88 kB / 1.326 GB, free: 0.8594 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002119/0.3868, allocations: 152.7 kB / 1.327 GB, free: 0.668 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001326/0.387, allocations: 74.42 kB / 1.327 GB, free: 0.5859 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.262e-05/0.387, allocations: 24.84 kB / 1.327 GB, free: 0.5586 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002148/0.3872, allocations: 19.98 kB / 1.327 GB, free: 0.5391 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.911e-05/0.3873, allocations: 34.56 kB / 1.327 GB, free: 0.4961 MB / 1.014 GB Notification: Performance of pre-optimization done (n=11): time 1.533e-06/0.3873, allocations: 0 / 1.327 GB, free: 0.4961 MB / 1.014 GB Notification: Performance of matching and sorting (n=11): time 0.000282/0.3876, allocations: 121.8 kB / 1.327 GB, free: 380 kB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.136e-05/0.3876, allocations: 55.41 kB / 1.327 GB, free: 312 kB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.506e-05/0.3877, allocations: 93.84 kB / 1.327 GB, free: 208 kB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 2.095e-05/0.3877, allocations: 33.7 kB / 1.327 GB, free: 168 kB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 3.606e-05/0.3877, allocations: 80.14 kB / 1.327 GB, free: 84 kB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 3.362e-05/0.3878, allocations: 23.8 kB / 1.327 GB, free: 60 kB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.743e-05/0.3878, allocations: 29.7 kB / 1.327 GB, free: 24 kB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001515/0.388, allocations: 314.8 kB / 1.327 GB, free: 15.71 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.387e-05/0.388, allocations: 19.98 kB / 1.328 GB, free: 15.69 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.978e-05/0.3881, allocations: 27.92 kB / 1.328 GB, free: 15.66 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001088/0.3882, allocations: 65.42 kB / 1.328 GB, free: 15.59 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.3882, allocations: 0 / 1.328 GB, free: 15.59 MB / 1.029 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001501/0.3883, allocations: 85.62 kB / 1.328 GB, free: 15.5 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.989e-05/0.3883, allocations: 17.66 kB / 1.328 GB, free: 15.49 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.64e-06/0.3883, allocations: 0 / 1.328 GB, free: 15.49 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.773e-05/0.3884, allocations: 3.984 kB / 1.328 GB, free: 15.48 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001107/0.3885, allocations: 19.94 kB / 1.328 GB, free: 15.46 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.834e-06/0.3885, allocations: 0 / 1.328 GB, free: 15.46 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.705e-05/0.3885, allocations: 11.88 kB / 1.328 GB, free: 15.45 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.229e-05/0.3885, allocations: 7.984 kB / 1.328 GB, free: 15.45 MB / 1.029 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 0.0001759/0.3887, allocations: 118.4 kB / 1.328 GB, free: 15.32 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.93e-05/0.3887, allocations: 11.89 kB / 1.328 GB, free: 15.31 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002419/0.389, allocations: 121.5 kB / 1.328 GB, free: 15.17 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.319e-06/0.389, allocations: 3.984 kB / 1.328 GB, free: 15.17 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.128e-06/0.389, allocations: 0 / 1.328 GB, free: 15.17 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.745e-06/0.389, allocations: 0 / 1.328 GB, free: 15.17 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001336/0.3891, allocations: 152.6 kB / 1.328 GB, free: 14.98 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.3891, allocations: 0 / 1.328 GB, free: 14.98 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.066e-05/0.3892, allocations: 19.98 kB / 1.328 GB, free: 14.96 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.559e-06/0.3892, allocations: 3.938 kB / 1.328 GB, free: 14.95 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.245e-05/0.3892, allocations: 4 kB / 1.328 GB, free: 14.95 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.586e-06/0.3892, allocations: 4 kB / 1.328 GB, free: 14.95 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.3892, allocations: 0 / 1.328 GB, free: 14.95 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001705/0.3894, allocations: 125 kB / 1.328 GB, free: 14.8 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.3e-05/0.3894, allocations: 15.83 kB / 1.328 GB, free: 14.79 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.233e-05/0.3894, allocations: 0 / 1.328 GB, free: 14.79 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.69e-05/0.3894, allocations: 4 kB / 1.328 GB, free: 14.79 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.513e-05/0.3894, allocations: 11.97 kB / 1.328 GB, free: 14.77 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.534e-06/0.3894, allocations: 4 kB / 1.328 GB, free: 14.77 MB / 1.029 GB Notification: Performance of sorting global known variables: time 3.693e-05/0.3895, allocations: 75.28 kB / 1.328 GB, free: 14.7 MB / 1.029 GB Notification: Performance of sort global known variables: time 6e-08/0.3895, allocations: 0 / 1.328 GB, free: 14.7 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0001991/0.3897, allocations: 16 kB / 1.328 GB, free: 14.68 MB / 1.029 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.0005438/0.3902, allocations: 0.6709 MB / 1.329 GB, free: 13.98 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0001441/0.3904, allocations: 56.41 kB / 1.329 GB, free: 13.93 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.3904, allocations: 0 / 1.329 GB, free: 13.93 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 5.506e-05/0.3904, allocations: 32.14 kB / 1.329 GB, free: 13.89 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001398/0.3906, allocations: 13.58 kB / 1.329 GB, free: 13.88 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000437/0.391, allocations: 190.3 kB / 1.329 GB, free: 13.66 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.06e-05/0.3911, allocations: 71.28 kB / 1.329 GB, free: 13.57 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 8.008e-05/0.3912, allocations: 35.95 kB / 1.329 GB, free: 13.53 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.986e-05/0.3912, allocations: 19.42 kB / 1.329 GB, free: 13.51 MB / 1.029 GB Notification: Performance of SimCode: time 2.7e-07/0.3912, allocations: 0 / 1.329 GB, free: 13.51 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03157/0.4228, allocations: 2.059 MB / 1.331 GB, free: 11.59 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.02/11.44, allocations: 7.828 kB / 1.331 GB, free: 11.58 MB / 1.029 GB " [Timeout remaining time 288] (rm -f Buildings_12_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe ; mkfifo Buildings_12_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe >> ../files/Buildings_12_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Utilities.Math.Functions.Examples.FallingFactorial_res.mat --tempDir=temp_Buildings_12_Buildings_Utilities_Math_Functions_Examples_FallingFactorial_fmu --startTime=0 --stopTime=13.9 --stepSize=0.00556 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Utilities_Math_Functions_Examples_FallingFactorial.fmu > Buildings_12_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Utilities.Math.Functions.Examples.FallingFactorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_Math_Functions_Examples_FallingFactorial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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: 18.59175652032718]