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.001383/0.001383, allocations: 110.6 kB / 18.94 MB, free: 2.949 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.001587/0.001587, allocations: 220.3 kB / 22.26 MB, free: 5.125 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.537/1.537, allocations: 230.6 MB / 256 MB, free: 7.973 MB / 206.1 MB " [Timeout remaining time 178] 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 3.463/3.463, allocations: 0.505 GB / 0.8101 GB, free: 22 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/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: 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.002156/0.002156, allocations: 66.77 kB / 1.177 GB, free: 16.95 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3526/0.3547, allocations: 180.2 MB / 1.353 GB, free: 8.434 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.FallingFactorial): time 0.002069/0.3568, allocations: 0.5974 MB / 1.353 GB, free: 7.84 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.0003235/0.3571, allocations: 68.11 kB / 1.354 GB, free: 7.773 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.032e-05/0.3571, allocations: 0 / 1.354 GB, free: 7.773 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 3.378e-05/0.3572, allocations: 3.938 kB / 1.354 GB, free: 7.77 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 6.121e-06/0.3572, allocations: 0 / 1.354 GB, free: 7.77 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.000297/0.3575, allocations: 11.98 kB / 1.354 GB, free: 7.758 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 8.337e-05/0.3576, allocations: 31.97 kB / 1.354 GB, free: 7.727 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 5.189e-05/0.3576, allocations: 12 kB / 1.354 GB, free: 7.715 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 2.685e-05/0.3576, allocations: 11.98 kB / 1.354 GB, free: 7.703 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 2.955e-05/0.3577, allocations: 11.98 kB / 1.354 GB, free: 7.691 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 1.101e-05/0.3577, allocations: 0 / 1.354 GB, free: 7.691 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 8.906e-05/0.3578, allocations: 23.97 kB / 1.354 GB, free: 7.668 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 2.639e-05/0.3578, allocations: 11.94 kB / 1.354 GB, free: 7.656 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 3.682e-05/0.3578, allocations: 15.92 kB / 1.354 GB, free: 7.641 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 9.973e-05/0.3579, allocations: 36.11 kB / 1.354 GB, free: 7.605 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.3579, allocations: 0 / 1.354 GB, free: 7.605 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.423e-06/0.3579, allocations: 3.938 kB / 1.354 GB, free: 7.602 MB / 1.045 GB Notification: Performance of Transformations before backend: time 8.296e-06/0.3579, allocations: 0 / 1.354 GB, free: 7.602 MB / 1.045 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.0003235/0.3583, allocations: 266.3 kB / 1.354 GB, free: 7.309 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 3.58e-05/0.3583, allocations: 8.031 kB / 1.354 GB, free: 7.301 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.988e-05/0.3583, allocations: 38.73 kB / 1.354 GB, free: 7.254 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.402e-05/0.3584, allocations: 4.938 kB / 1.354 GB, free: 7.25 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.418e-05/0.3584, allocations: 102.5 kB / 1.354 GB, free: 7.125 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.375e-05/0.3584, allocations: 8.375 kB / 1.354 GB, free: 7.117 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.294e-05/0.3585, allocations: 4.375 kB / 1.354 GB, free: 7.113 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001429/0.3586, allocations: 62.22 kB / 1.354 GB, free: 7.047 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.497e-06/0.3586, allocations: 3.938 kB / 1.354 GB, free: 7.043 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.544e-06/0.3586, allocations: 4 kB / 1.354 GB, free: 7.039 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.448e-06/0.3586, allocations: 7.938 kB / 1.354 GB, free: 7.031 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001467/0.3588, allocations: 99.81 kB / 1.354 GB, free: 6.934 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001728/0.3589, allocations: 156.6 kB / 1.354 GB, free: 6.738 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001179/0.3591, allocations: 70.48 kB / 1.355 GB, free: 6.66 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.858e-05/0.3591, allocations: 28.84 kB / 1.355 GB, free: 6.629 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001599/0.3593, allocations: 11.98 kB / 1.355 GB, free: 6.617 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.301e-05/0.3593, allocations: 42.56 kB / 1.355 GB, free: 6.566 MB / 1.045 GB Notification: Performance of pre-optimization done (n=11): time 1.021e-06/0.3593, allocations: 0 / 1.355 GB, free: 6.566 MB / 1.045 GB Notification: Performance of matching and sorting (n=11): time 0.0002764/0.3596, allocations: 121.8 kB / 1.355 GB, free: 6.441 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.721e-05/0.3596, allocations: 51.41 kB / 1.355 GB, free: 6.379 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.647e-05/0.3597, allocations: 97.81 kB / 1.355 GB, free: 6.273 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 1.684e-05/0.3597, allocations: 29.7 kB / 1.355 GB, free: 6.238 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 3.307e-05/0.3597, allocations: 80.14 kB / 1.355 GB, free: 6.156 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 2.916e-05/0.3598, allocations: 19.86 kB / 1.355 GB, free: 6.137 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.69e-05/0.3598, allocations: 33.7 kB / 1.355 GB, free: 6.098 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001394/0.3599, allocations: 318.8 kB / 1.355 GB, free: 5.777 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.266e-05/0.36, allocations: 19.98 kB / 1.355 GB, free: 5.758 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.604e-05/0.36, allocations: 19.98 kB / 1.355 GB, free: 5.738 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001037/0.3601, allocations: 60.78 kB / 1.355 GB, free: 5.676 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.3601, allocations: 0 / 1.355 GB, free: 5.676 MB / 1.045 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001463/0.3603, allocations: 94.25 kB / 1.355 GB, free: 5.578 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.483e-05/0.3603, allocations: 7.938 kB / 1.355 GB, free: 5.57 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.218e-06/0.3603, allocations: 0 / 1.355 GB, free: 5.57 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.285e-05/0.3603, allocations: 0 / 1.355 GB, free: 5.57 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.848e-05/0.3604, allocations: 20 kB / 1.356 GB, free: 5.551 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.973e-06/0.3604, allocations: 3.984 kB / 1.356 GB, free: 5.547 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.41e-05/0.3604, allocations: 11.94 kB / 1.356 GB, free: 5.535 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.162e-06/0.3604, allocations: 0 / 1.356 GB, free: 5.535 MB / 1.045 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.0001564/0.3606, allocations: 129.7 kB / 1.356 GB, free: 5.398 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.598e-05/0.3606, allocations: 11.89 kB / 1.356 GB, free: 5.387 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002231/0.3608, allocations: 125.5 kB / 1.356 GB, free: 5.254 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-06/0.3608, allocations: 4 kB / 1.356 GB, free: 5.25 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.674e-06/0.3608, allocations: 8 kB / 1.356 GB, free: 5.242 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.006e-06/0.3609, allocations: 0 / 1.356 GB, free: 5.242 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001361/0.361, allocations: 148.6 kB / 1.356 GB, free: 5.055 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.086e-06/0.361, allocations: 3.984 kB / 1.356 GB, free: 5.051 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.716e-05/0.3611, allocations: 19.94 kB / 1.356 GB, free: 5.031 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.656e-06/0.3611, allocations: 3.938 kB / 1.356 GB, free: 5.027 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.411e-05/0.3611, allocations: 11.98 kB / 1.356 GB, free: 5.016 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.342e-06/0.3611, allocations: 0 / 1.356 GB, free: 5.016 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.52e-07/0.3611, allocations: 0 / 1.356 GB, free: 5.016 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001652/0.3612, allocations: 117 kB / 1.356 GB, free: 4.883 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 1.311e-05/0.3613, allocations: 15.88 kB / 1.356 GB, free: 4.867 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.128e-05/0.3613, allocations: 3.938 kB / 1.356 GB, free: 4.863 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.826e-05/0.3613, allocations: 4 kB / 1.356 GB, free: 4.859 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.332e-05/0.3613, allocations: 7.984 kB / 1.356 GB, free: 4.852 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.763e-06/0.3613, allocations: 4 kB / 1.356 GB, free: 4.848 MB / 1.045 GB Notification: Performance of sorting global known variables: time 3.225e-05/0.3614, allocations: 75.28 kB / 1.356 GB, free: 4.773 MB / 1.045 GB Notification: Performance of sort global known variables: time 9e-08/0.3614, allocations: 0 / 1.356 GB, free: 4.773 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0002003/0.3616, allocations: 23.94 kB / 1.356 GB, free: 4.75 MB / 1.045 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.0005254/0.3621, allocations: 0.6593 MB / 1.357 GB, free: 4.062 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0001501/0.3622, allocations: 59.84 kB / 1.357 GB, free: 4.004 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.3622, allocations: 0 / 1.357 GB, free: 4.004 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 5.388e-05/0.3623, allocations: 35.92 kB / 1.357 GB, free: 3.969 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001392/0.3624, allocations: 9.547 kB / 1.357 GB, free: 3.961 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004353/0.3629, allocations: 178.4 kB / 1.357 GB, free: 3.746 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003017/0.3632, allocations: 0.6884 MB / 1.358 GB, free: 3.031 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 7.294e-05/0.3632, allocations: 31.94 kB / 1.358 GB, free: 3 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.06e-05/0.3633, allocations: 23.42 kB / 1.358 GB, free: 2.977 MB / 1.045 GB Notification: Performance of SimCode: time 4e-07/0.3633, allocations: 4 kB / 1.358 GB, free: 2.973 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02842/0.3917, allocations: 1.712 MB / 1.36 GB, free: 1.395 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.09/11.49, allocations: 0 / 1.36 GB, free: 1.395 MB / 1.045 GB " [Timeout remaining time 288] (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/jenkins1/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: 18.70914281788282]