Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.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.001232/0.001232, allocations: 80.44 kB / 19.17 MB, free: 0.7461 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.001302/0.001302, allocations: 165.9 kB / 22.45 MB, free: 2.109 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.9302/0.9302, allocations: 177.1 MB / 202.8 MB, free: 5.723 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.838/1.838, 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.Examples.FallingFactorial,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Examples_FallingFactorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.FallingFactorial,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Examples_FallingFactorial",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.104e-06/2.104e-06, allocations: 0 / 0.9997 GB, free: 13.45 MB / 0.9636 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.153e-05/2.363e-05, allocations: 4.953 kB / 0.9997 GB, free: 13.45 MB / 0.9636 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.FallingFactorial): time 0.003039/0.003062, allocations: 1.551 MB / 1.001 GB, free: 11.89 MB / 0.9636 GB Notification: Performance of NFInst.instExpressions: time 0.0003897/0.003452, allocations: 128.2 kB / 1.001 GB, free: 11.77 MB / 0.9636 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.546e-05/0.003497, allocations: 8 kB / 1.001 GB, free: 11.76 MB / 0.9636 GB Notification: Performance of NFTyping.typeComponents: time 3.33e-05/0.003531, allocations: 3.938 kB / 1.001 GB, free: 11.75 MB / 0.9636 GB Notification: Performance of NFTyping.typeBindings: time 4.893e-05/0.00358, allocations: 7.875 kB / 1.001 GB, free: 11.75 MB / 0.9636 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003744/0.003954, allocations: 35.89 kB / 1.001 GB, free: 11.71 MB / 0.9636 GB Notification: Performance of NFFlatten.flatten: time 8.728e-05/0.004041, allocations: 39.84 kB / 1.001 GB, free: 11.67 MB / 0.9636 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000109/0.00415, allocations: 11.98 kB / 1.001 GB, free: 11.66 MB / 0.9636 GB Notification: Performance of NFEvalConstants.evaluate: time 5.319e-05/0.004204, allocations: 23.92 kB / 1.001 GB, free: 11.64 MB / 0.9636 GB Notification: Performance of NFSimplifyModel.simplify: time 4.868e-05/0.004252, allocations: 11.98 kB / 1.001 GB, free: 11.62 MB / 0.9636 GB Notification: Performance of NFPackage.collectConstants: time 1.845e-05/0.004271, allocations: 4 kB / 1.001 GB, free: 11.62 MB / 0.9636 GB Notification: Performance of NFFlatten.collectFunctions: time 9.262e-05/0.004363, allocations: 23.95 kB / 1.001 GB, free: 11.6 MB / 0.9636 GB Notification: Performance of NFScalarize.scalarize: time 1.624e-05/0.00438, allocations: 11.94 kB / 1.001 GB, free: 11.59 MB / 0.9636 GB Notification: Performance of NFVerifyModel.verify: time 2.467e-05/0.004404, allocations: 11.98 kB / 1.001 GB, free: 11.57 MB / 0.9636 GB Notification: Performance of NFConvertDAE.convert: time 0.0001536/0.004558, allocations: 51.81 kB / 1.002 GB, free: 11.52 MB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 2.144e-06/0.00456, allocations: 0 / 1.002 GB, free: 11.52 MB / 0.9636 GB Notification: Performance of FrontEnd: time 2.365e-06/0.004562, allocations: 3.984 kB / 1.002 GB, free: 11.52 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 4.388e-06/0.004567, allocations: 0 / 1.002 GB, free: 11.52 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004623/0.005029, allocations: 270.3 kB / 1.002 GB, free: 11.22 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 4.348e-05/0.005072, allocations: 8.75 kB / 1.002 GB, free: 11.21 MB / 0.9636 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.8e-05/0.00511, allocations: 38.75 kB / 1.002 GB, free: 11.17 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.712e-05/0.005138, allocations: 4.891 kB / 1.002 GB, free: 11.16 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.833e-05/0.005236, allocations: 117.7 kB / 1.002 GB, free: 11.02 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.315e-05/0.005259, allocations: 384 / 1.002 GB, free: 11.02 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.11e-05/0.00527, allocations: 4.375 kB / 1.002 GB, free: 11.02 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001932/0.005463, allocations: 62.17 kB / 1.002 GB, free: 10.95 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.886e-06/0.005472, allocations: 192 / 1.002 GB, free: 10.95 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.08e-05/0.005483, allocations: 4.375 kB / 1.002 GB, free: 10.95 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.332e-06/0.005489, allocations: 4.125 kB / 1.002 GB, free: 10.95 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001496/0.005639, allocations: 43.95 kB / 1.002 GB, free: 10.9 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003898/0.006029, allocations: 243.9 kB / 1.002 GB, free: 10.62 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000277/0.006306, allocations: 66.41 kB / 1.002 GB, free: 10.55 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.397e-05/0.00638, allocations: 32.88 kB / 1.002 GB, free: 10.51 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001232/0.006503, allocations: 11.98 kB / 1.002 GB, free: 10.5 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.869e-05/0.006522, allocations: 34.56 kB / 1.002 GB, free: 10.46 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=3): time 1.513e-06/0.006523, allocations: 0 / 1.002 GB, free: 10.46 MB / 0.9636 GB Notification: Performance of matching and sorting (n=3): time 0.0003274/0.006851, allocations: 93.64 kB / 1.003 GB, free: 10.36 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.433e-05/0.006885, allocations: 59.33 kB / 1.003 GB, free: 10.29 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.639e-05/0.006961, allocations: 113.8 kB / 1.003 GB, free: 10.17 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 1.569e-05/0.006977, allocations: 29.7 kB / 1.003 GB, free: 10.13 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 4.484e-05/0.007022, allocations: 88.08 kB / 1.003 GB, free: 10.04 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 1.633e-05/0.007038, allocations: 11.95 kB / 1.003 GB, free: 10.03 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.563e-05/0.007074, allocations: 13.72 kB / 1.003 GB, free: 10.01 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 9.418e-05/0.007168, allocations: 318.8 kB / 1.003 GB, free: 9.691 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.69e-05/0.007235, allocations: 15.98 kB / 1.003 GB, free: 9.676 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.126e-05/0.007296, allocations: 23.98 kB / 1.003 GB, free: 9.652 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001255/0.007422, allocations: 52.75 kB / 1.003 GB, free: 9.598 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.007424, allocations: 0 / 1.003 GB, free: 9.598 MB / 0.9636 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001757/0.007599, allocations: 85.52 kB / 1.003 GB, free: 9.508 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 1.491e-05/0.007614, allocations: 4 kB / 1.003 GB, free: 9.504 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.019e-06/0.007619, allocations: 0 / 1.003 GB, free: 9.504 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.644e-05/0.007636, allocations: 4 kB / 1.003 GB, free: 9.5 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.729e-05/0.007703, allocations: 11.98 kB / 1.003 GB, free: 9.488 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.601e-06/0.007709, allocations: 4 kB / 1.003 GB, free: 9.484 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.032e-05/0.007749, allocations: 7.938 kB / 1.003 GB, free: 9.477 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.101e-06/0.007755, allocations: 0 / 1.003 GB, free: 9.477 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: 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 7.155e-05/0.007827, allocations: 113.8 kB / 1.003 GB, free: 9.355 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.682e-05/0.007853, allocations: 7.891 kB / 1.003 GB, free: 9.348 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002113/0.008065, allocations: 85.64 kB / 1.004 GB, free: 9.25 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.705e-06/0.008067, allocations: 4 kB / 1.004 GB, free: 9.246 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.428e-06/0.008072, allocations: 0 / 1.004 GB, free: 9.246 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.905e-06/0.008075, allocations: 0 / 1.004 GB, free: 9.246 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001464/0.008221, allocations: 132.7 kB / 1.004 GB, free: 9.074 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.008223, allocations: 0 / 1.004 GB, free: 9.074 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.994e-05/0.008272, allocations: 15.92 kB / 1.004 GB, free: 9.059 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.214e-06/0.008275, allocations: 0 / 1.004 GB, free: 9.059 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.646e-06/0.008283, allocations: 4 kB / 1.004 GB, free: 9.055 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.723e-06/0.008285, allocations: 0 / 1.004 GB, free: 9.055 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.818e-06/0.008289, allocations: 4 kB / 1.004 GB, free: 9.051 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000203/0.008492, allocations: 175.8 kB / 1.004 GB, free: 8.863 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 1.338e-05/0.008505, allocations: 7.953 kB / 1.004 GB, free: 8.855 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.427e-05/0.00852, allocations: 48 / 1.004 GB, free: 8.855 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.882e-05/0.008588, allocations: 15.91 kB / 1.004 GB, free: 8.84 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.224e-05/0.008641, allocations: 8 kB / 1.004 GB, free: 8.832 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.202e-06/0.008647, allocations: 3.984 kB / 1.004 GB, free: 8.828 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 4.241e-05/0.008689, allocations: 83.28 kB / 1.004 GB, free: 8.746 MB / 0.9636 GB Notification: Performance of sort global known variables: time 6e-08/0.008689, allocations: 0 / 1.004 GB, free: 8.746 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.0002527/0.008942, allocations: 12 kB / 1.004 GB, free: 8.734 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: 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.0005227/0.009465, allocations: 0.7085 MB / 1.005 GB, free: 8 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.0001942/0.009659, allocations: 47.95 kB / 1.005 GB, free: 7.953 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.009661, allocations: 0 / 1.005 GB, free: 7.953 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 7.368e-05/0.009735, allocations: 27.91 kB / 1.005 GB, free: 7.926 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003216/0.01006, allocations: 6.234 kB / 1.005 GB, free: 7.922 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001084/0.01114, allocations: 1.3 MB / 1.006 GB, free: 6.539 MB / 0.9636 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.686e-05/0.01119, allocations: 63.34 kB / 1.006 GB, free: 6.457 MB / 0.9636 GB Notification: Performance of simCode: alias equations: time 2.494e-05/0.01121, allocations: 0 / 1.006 GB, free: 6.457 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.025e-05/0.01125, allocations: 24.48 kB / 1.006 GB, free: 6.434 MB / 0.9636 GB Notification: Performance of SimCode: time 5.01e-07/0.01125, allocations: 0 / 1.006 GB, free: 6.434 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0169/0.02815, allocations: 2.39 MB / 1.008 GB, free: 4.176 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.883/6.911, allocations: 8 kB / 1.008 GB, free: 4.168 MB / 0.9636 GB " [Timeout remaining time 293] (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Math_Examples_FallingFactorial_fmu --startTime=0 --stopTime=11 --stepSize=0.0044 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_Math_Examples_FallingFactorial.fmu > Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_FallingFactorial.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.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: 11.091643080115318]