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.001312/0.001312, allocations: 103.6 kB / 18.95 MB, free: 2.66 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.001439/0.001439, allocations: 218 kB / 22.25 MB, free: 5.25 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.54/1.54, allocations: 230.6 MB / 256 MB, free: 7.789 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.29/3.29, allocations: 0.49 GB / 0.7951 GB, free: 35.53 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.002069/0.002069, allocations: 65.52 kB / 1.154 GB, free: 25.41 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4303/0.4323, allocations: 176.1 MB / 1.326 GB, free: 1.445 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.FallingFactorial): time 0.002361/0.4347, allocations: 0.5984 MB / 1.326 GB, free: 0.8516 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.0004011/0.4351, allocations: 48.2 kB / 1.327 GB, free: 0.8047 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.694e-05/0.4351, allocations: 0 / 1.327 GB, free: 0.8047 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 3.942e-05/0.4352, allocations: 0 / 1.327 GB, free: 0.8047 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 6.272e-06/0.4352, allocations: 4 kB / 1.327 GB, free: 0.8008 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004201/0.4356, allocations: 23.92 kB / 1.327 GB, free: 0.7773 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0001199/0.4357, allocations: 31.97 kB / 1.327 GB, free: 0.7461 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 6.309e-05/0.4358, allocations: 4 kB / 1.327 GB, free: 0.7422 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 3.445e-05/0.4358, allocations: 15.97 kB / 1.327 GB, free: 0.7266 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 4.671e-05/0.4359, allocations: 11.94 kB / 1.327 GB, free: 0.7148 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 1.905e-05/0.4359, allocations: 4 kB / 1.327 GB, free: 0.7109 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001309/0.436, allocations: 23.95 kB / 1.327 GB, free: 0.6875 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 5.23e-05/0.4361, allocations: 8 kB / 1.327 GB, free: 0.6797 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 4.733e-05/0.4361, allocations: 11.94 kB / 1.327 GB, free: 0.668 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0001528/0.4363, allocations: 40.11 kB / 1.327 GB, free: 0.6289 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.4363, allocations: 0 / 1.327 GB, free: 0.6289 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.773e-06/0.4363, allocations: 0 / 1.327 GB, free: 0.6289 MB / 1.014 GB Notification: Performance of Transformations before backend: time 7.164e-06/0.4363, allocations: 0 / 1.327 GB, free: 0.6289 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.0005188/0.4368, allocations: 262.3 kB / 1.327 GB, free: 348 kB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 5.997e-05/0.4368, allocations: 15.97 kB / 1.327 GB, free: 332 kB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.532e-05/0.4369, allocations: 34.75 kB / 1.327 GB, free: 288 kB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.958e-05/0.437, allocations: 8.891 kB / 1.327 GB, free: 280 kB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001286/0.4371, allocations: 102.5 kB / 1.327 GB, free: 152 kB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.125e-05/0.4371, allocations: 4.375 kB / 1.327 GB, free: 148 kB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.211e-05/0.4371, allocations: 8.375 kB / 1.327 GB, free: 140 kB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002122/0.4374, allocations: 66.22 kB / 1.327 GB, free: 68 kB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.532e-05/0.4374, allocations: 7.875 kB / 1.327 GB, free: 60 kB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.333e-05/0.4374, allocations: 0 / 1.327 GB, free: 60 kB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.283e-06/0.4374, allocations: 0 / 1.327 GB, free: 60 kB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002673/0.4377, allocations: 103.8 kB / 1.327 GB, free: 15.96 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002606/0.4379, allocations: 144.7 kB / 1.327 GB, free: 15.77 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00019/0.4381, allocations: 66.55 kB / 1.327 GB, free: 15.7 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.534e-05/0.4382, allocations: 28.78 kB / 1.328 GB, free: 15.67 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002593/0.4384, allocations: 19.98 kB / 1.328 GB, free: 15.65 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.189e-05/0.4385, allocations: 30.56 kB / 1.328 GB, free: 15.61 MB / 1.029 GB Notification: Performance of pre-optimization done (n=11): time 1.724e-06/0.4385, allocations: 0 / 1.328 GB, free: 15.61 MB / 1.029 GB Notification: Performance of matching and sorting (n=11): time 0.0004201/0.4389, allocations: 137.7 kB / 1.328 GB, free: 15.47 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.99e-05/0.439, allocations: 55.41 kB / 1.328 GB, free: 15.4 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.15e-05/0.439, allocations: 89.86 kB / 1.328 GB, free: 15.3 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.639e-05/0.4391, allocations: 29.7 kB / 1.328 GB, free: 15.27 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 4.243e-05/0.4391, allocations: 80.14 kB / 1.328 GB, free: 15.19 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 4.48e-05/0.4391, allocations: 15.86 kB / 1.328 GB, free: 15.17 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.884e-05/0.4392, allocations: 33.7 kB / 1.328 GB, free: 15.13 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0002055/0.4394, allocations: 322.8 kB / 1.328 GB, free: 14.81 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.298e-05/0.4395, allocations: 19.98 kB / 1.328 GB, free: 14.79 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.366e-05/0.4396, allocations: 19.98 kB / 1.328 GB, free: 14.77 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001738/0.4397, allocations: 60.78 kB / 1.328 GB, free: 14.71 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.4397, allocations: 3.938 kB / 1.328 GB, free: 14.7 MB / 1.029 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002422/0.44, allocations: 97.61 kB / 1.328 GB, free: 14.6 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 3.05e-05/0.44, allocations: 7.938 kB / 1.328 GB, free: 14.59 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.22e-06/0.44, allocations: 0 / 1.328 GB, free: 14.59 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.625e-05/0.44, allocations: 0 / 1.328 GB, free: 14.59 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001564/0.4402, allocations: 16 kB / 1.328 GB, free: 14.58 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.458e-06/0.4402, allocations: 3.984 kB / 1.329 GB, free: 14.57 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.733e-05/0.4402, allocations: 7.938 kB / 1.329 GB, free: 14.57 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.295e-05/0.4402, allocations: 4 kB / 1.329 GB, free: 14.56 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.0002429/0.4405, allocations: 127.2 kB / 1.329 GB, free: 14.43 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.18e-05/0.4405, allocations: 15.88 kB / 1.329 GB, free: 14.41 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003693/0.4409, allocations: 117.5 kB / 1.329 GB, free: 14.28 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.686e-06/0.4409, allocations: 0 / 1.329 GB, free: 14.28 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.358e-06/0.4409, allocations: 4 kB / 1.329 GB, free: 14.28 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.794e-06/0.4409, allocations: 3.984 kB / 1.329 GB, free: 14.27 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002236/0.4411, allocations: 148.6 kB / 1.329 GB, free: 14.09 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.4411, allocations: 0 / 1.329 GB, free: 14.09 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001281/0.4413, allocations: 27.92 kB / 1.329 GB, free: 14.06 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.873e-06/0.4413, allocations: 3.938 kB / 1.329 GB, free: 14.05 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.683e-05/0.4413, allocations: 8 kB / 1.329 GB, free: 14.05 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.084e-06/0.4413, allocations: 0 / 1.329 GB, free: 14.05 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.4413, allocations: 0 / 1.329 GB, free: 14.05 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002888/0.4416, allocations: 121.9 kB / 1.329 GB, free: 13.91 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 3.126e-05/0.4416, allocations: 11.89 kB / 1.329 GB, free: 13.9 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.128e-05/0.4416, allocations: 0 / 1.329 GB, free: 13.9 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.65e-05/0.4417, allocations: 0 / 1.329 GB, free: 13.9 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.053e-05/0.4417, allocations: 11.98 kB / 1.329 GB, free: 13.89 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.238e-05/0.4417, allocations: 7.938 kB / 1.329 GB, free: 13.88 MB / 1.029 GB Notification: Performance of sorting global known variables: time 5.547e-05/0.4418, allocations: 75.28 kB / 1.329 GB, free: 13.8 MB / 1.029 GB Notification: Performance of sort global known variables: time 1e-07/0.4418, allocations: 0 / 1.329 GB, free: 13.8 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.000407/0.4422, allocations: 23.98 kB / 1.329 GB, free: 13.78 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.0009002/0.4431, allocations: 0.6702 MB / 1.33 GB, free: 13.09 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0002399/0.4433, allocations: 59.91 kB / 1.33 GB, free: 13.03 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.4433, allocations: 0 / 1.33 GB, free: 13.03 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 9.01e-05/0.4434, allocations: 31.97 kB / 1.33 GB, free: 13 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002472/0.4437, allocations: 9.25 kB / 1.33 GB, free: 12.99 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006817/0.4443, allocations: 186.4 kB / 1.33 GB, free: 12.77 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001043/0.4444, allocations: 75.28 kB / 1.33 GB, free: 12.67 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 0.0001358/0.4446, allocations: 35.94 kB / 1.33 GB, free: 12.64 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.783e-05/0.4446, allocations: 15.44 kB / 1.33 GB, free: 12.62 MB / 1.029 GB Notification: Performance of SimCode: time 4.61e-07/0.4446, allocations: 3.938 kB / 1.33 GB, free: 12.62 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03718/0.4818, allocations: 2.077 MB / 1.332 GB, free: 10.67 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.96/11.44, allocations: 9.688 kB / 1.332 GB, free: 10.66 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.428728836006485]