Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Utilities.Math.Functions.Examples.Factorial.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.0008282/0.0008282, 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.0009201/0.0009201, 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.9021/0.9021, 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 11.1.2-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo): time 1.686/1.686, allocations: 359 MB / 0.6037 GB, free: 11.11 MB / 0.573 GB " [Timeout remaining time 178] Using package Buildings with version 11.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.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.Factorial,fileNamePrefix="Buildings_11_Buildings_Utilities_Math_Functions_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="Buildings_11_Buildings_Utilities_Math_Functions_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.583e-06/1.583e-06, allocations: 0 / 0.9505 GB, free: 3.434 MB / 0.9011 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.57e-05/1.728e-05, allocations: 2.281 kB / 0.9505 GB, free: 3.43 MB / 0.9011 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.001057/0.001074, allocations: 0.5878 MB / 0.9511 GB, free: 2.836 MB / 0.9011 GB Notification: Performance of NFInst.instExpressions: time 0.0002048/0.001279, allocations: 47.8 kB / 0.9512 GB, free: 2.789 MB / 0.9011 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.468e-05/0.001293, allocations: 4 kB / 0.9512 GB, free: 2.785 MB / 0.9011 GB Notification: Performance of NFTyping.typeComponents: time 1.391e-05/0.001307, allocations: 0 / 0.9512 GB, free: 2.785 MB / 0.9011 GB Notification: Performance of NFTyping.typeBindings: time 5.811e-06/0.001313, allocations: 0 / 0.9512 GB, free: 2.785 MB / 0.9011 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002113/0.001524, allocations: 15.86 kB / 0.9512 GB, free: 2.77 MB / 0.9011 GB Notification: Performance of NFFlatten.flatten: time 4.145e-05/0.001566, allocations: 4 kB / 0.9512 GB, free: 2.766 MB / 0.9011 GB Notification: Performance of NFFlatten.resolveConnections: time 3.836e-05/0.001604, allocations: 4 kB / 0.9512 GB, free: 2.762 MB / 0.9011 GB Notification: Performance of NFEvalConstants.evaluate: time 2.646e-05/0.001631, allocations: 4 kB / 0.9512 GB, free: 2.758 MB / 0.9011 GB Notification: Performance of NFSimplifyModel.simplify: time 1.77e-05/0.001648, allocations: 0 / 0.9512 GB, free: 2.758 MB / 0.9011 GB Notification: Performance of NFPackage.collectConstants: time 1.12e-05/0.00166, allocations: 0 / 0.9512 GB, free: 2.758 MB / 0.9011 GB Notification: Performance of NFFlatten.collectFunctions: time 6.857e-05/0.001728, allocations: 7.984 kB / 0.9512 GB, free: 2.75 MB / 0.9011 GB Notification: Performance of NFScalarize.scalarize: time 9.448e-06/0.001738, allocations: 3.984 kB / 0.9512 GB, free: 2.746 MB / 0.9011 GB Notification: Performance of NFVerifyModel.verify: time 1.357e-05/0.001751, allocations: 8 kB / 0.9512 GB, free: 2.738 MB / 0.9011 GB Notification: Performance of NFConvertDAE.convert: time 8.303e-05/0.001834, allocations: 15.92 kB / 0.9512 GB, free: 2.723 MB / 0.9011 GB Notification: Performance of FrontEnd - DAE generated: time 1.753e-06/0.001836, allocations: 0 / 0.9512 GB, free: 2.723 MB / 0.9011 GB Notification: Performance of FrontEnd: time 9.22e-07/0.001837, allocations: 0 / 0.9512 GB, free: 2.723 MB / 0.9011 GB Notification: Performance of Transformations before backend: time 3.587e-06/0.00184, allocations: 3.938 kB / 0.9512 GB, free: 2.719 MB / 0.9011 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0002077/0.002048, allocations: 240.4 kB / 0.9515 GB, free: 2.453 MB / 0.9011 GB Notification: Performance of prepare preOptimizeDAE: time 3.647e-05/0.002085, allocations: 12.03 kB / 0.9515 GB, free: 2.441 MB / 0.9011 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.592e-05/0.002111, allocations: 30.75 kB / 0.9515 GB, free: 2.402 MB / 0.9011 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.196e-05/0.002133, allocations: 4.891 kB / 0.9515 GB, free: 2.398 MB / 0.9011 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.172e-05/0.002184, allocations: 101.8 kB / 0.9516 GB, free: 2.273 MB / 0.9011 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.606e-06/0.002193, allocations: 4.375 kB / 0.9516 GB, free: 2.27 MB / 0.9011 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.494e-06/0.0022, allocations: 4.375 kB / 0.9516 GB, free: 2.266 MB / 0.9011 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.773e-05/0.002278, allocations: 34.25 kB / 0.9516 GB, free: 2.227 MB / 0.9011 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.043e-05/0.002289, allocations: 192 / 0.9516 GB, free: 2.227 MB / 0.9011 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.933e-06/0.002295, allocations: 8.312 kB / 0.9517 GB, free: 2.219 MB / 0.9011 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.07e-06/0.002301, allocations: 4.125 kB / 0.9517 GB, free: 2.215 MB / 0.9011 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.766e-05/0.002328, allocations: 0 / 0.9517 GB, free: 2.215 MB / 0.9011 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001016/0.00243, allocations: 120.8 kB / 0.9518 GB, free: 2.055 MB / 0.9011 GB Notification: Performance of preOpt comSubExp (simulation): time 4.608e-05/0.002476, allocations: 22.59 kB / 0.9518 GB, free: 2.023 MB / 0.9011 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.408e-05/0.00249, allocations: 8.922 kB / 0.9518 GB, free: 2.012 MB / 0.9011 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001192/0.002609, allocations: 8 kB / 0.9518 GB, free: 2.004 MB / 0.9011 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.797e-05/0.002627, allocations: 34.56 kB / 0.9518 GB, free: 1.961 MB / 0.9011 GB Notification: Performance of pre-optimization done (n=2): time 7.11e-07/0.002628, allocations: 0 / 0.9518 GB, free: 1.961 MB / 0.9011 GB Notification: Performance of matching and sorting (n=2): time 0.0001166/0.002744, allocations: 41.62 kB / 0.9519 GB, free: 1.914 MB / 0.9011 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.875e-05/0.002773, allocations: 59.34 kB / 0.9519 GB, free: 1.844 MB / 0.9011 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.796e-05/0.002801, allocations: 93.86 kB / 0.952 GB, free: 1.742 MB / 0.9011 GB Notification: Performance of collectPreVariables (initialization): time 8.896e-06/0.00281, allocations: 25.7 kB / 0.9521 GB, free: 1.711 MB / 0.9011 GB Notification: Performance of collectInitialEqns (initialization): time 1.712e-05/0.002827, allocations: 80.14 kB / 0.9521 GB, free: 1.629 MB / 0.9011 GB Notification: Performance of collectInitialBindings (initialization): time 1.415e-05/0.002841, allocations: 3.938 kB / 0.9521 GB, free: 1.625 MB / 0.9011 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.286e-05/0.002864, allocations: 13.72 kB / 0.9521 GB, free: 1.605 MB / 0.9011 GB Notification: Performance of setup shared object (initialization): time 7.131e-05/0.002936, allocations: 319 kB / 0.9525 GB, free: 1.285 MB / 0.9011 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.146e-05/0.002947, allocations: 8 kB / 0.9525 GB, free: 1.277 MB / 0.9011 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.311e-06/0.002953, allocations: 4 kB / 0.9525 GB, free: 1.273 MB / 0.9011 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.897e-05/0.002982, allocations: 20.73 kB / 0.9525 GB, free: 1.25 MB / 0.9011 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.002984, allocations: 0 / 0.9525 GB, free: 1.25 MB / 0.9011 GB Notification: Performance of matching and sorting (n=2) (initialization): time 4.156e-05/0.003026, allocations: 37.7 kB / 0.9525 GB, free: 1.207 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 1.155e-05/0.003037, allocations: 10.17 kB / 0.9525 GB, free: 1.199 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.087e-06/0.003041, allocations: 0 / 0.9525 GB, free: 1.199 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.058e-05/0.003052, allocations: 0 / 0.9525 GB, free: 1.199 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.768e-05/0.0031, allocations: 8.094 kB / 0.9525 GB, free: 1.191 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.901e-06/0.003106, allocations: 3.938 kB / 0.9525 GB, free: 1.188 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.688e-06/0.003115, allocations: 3.953 kB / 0.9525 GB, free: 1.184 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.657e-06/0.003119, allocations: 0 / 0.9525 GB, free: 1.184 MB / 0.9011 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 (n,fac) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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 4.67e-05/0.003166, allocations: 109.8 kB / 0.9527 GB, free: 1.066 MB / 0.9011 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.697e-06/0.003169, allocations: 0 / 0.9527 GB, free: 1.066 MB / 0.9011 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.479e-05/0.003244, allocations: 48.78 kB / 0.9527 GB, free: 1.012 MB / 0.9011 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.463e-06/0.003246, allocations: 3.938 kB / 0.9527 GB, free: 1.008 MB / 0.9011 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.609e-06/0.00325, allocations: 3.938 kB / 0.9527 GB, free: 1.004 MB / 0.9011 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.514e-06/0.003253, allocations: 0 / 0.9527 GB, free: 1.004 MB / 0.9011 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.226e-05/0.003315, allocations: 132.8 kB / 0.9528 GB, free: 0.832 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.12e-07/0.003316, allocations: 0 / 0.9528 GB, free: 0.832 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.196e-05/0.003328, allocations: 4 kB / 0.9528 GB, free: 0.8281 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.483e-06/0.003329, allocations: 0 / 0.9528 GB, free: 0.8281 MB / 0.9011 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.429e-06/0.003334, allocations: 0 / 0.9528 GB, free: 0.8281 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.11e-07/0.003334, allocations: 0 / 0.9528 GB, free: 0.8281 MB / 0.9011 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/0.003336, allocations: 3.938 kB / 0.9528 GB, free: 0.8242 MB / 0.9011 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.812e-05/0.003384, allocations: 65.12 kB / 0.9529 GB, free: 0.7422 MB / 0.9011 GB Notification: Performance of postOpt removeConstants (simulation): time 4.018e-06/0.003388, allocations: 7.922 kB / 0.9529 GB, free: 0.7344 MB / 0.9011 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.265e-06/0.003396, allocations: 0 / 0.9529 GB, free: 0.7344 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.829e-06/0.003401, allocations: 4.031 kB / 0.9529 GB, free: 0.7305 MB / 0.9011 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.475e-05/0.003426, allocations: 7.938 kB / 0.9529 GB, free: 0.7227 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.455e-06/0.003428, allocations: 3.984 kB / 0.9529 GB, free: 0.7188 MB / 0.9011 GB Notification: Performance of sorting global known variables: time 1.913e-05/0.003448, allocations: 75.28 kB / 0.953 GB, free: 0.6445 MB / 0.9011 GB Notification: Performance of sort global known variables: time 4e-08/0.003448, allocations: 0 / 0.953 GB, free: 0.6445 MB / 0.9011 GB Notification: Performance of remove unused functions: time 0.0001328/0.00358, allocations: 4 kB / 0.953 GB, free: 0.6406 MB / 0.9011 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 (fac,n) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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.0002495/0.00383, allocations: 0.5969 MB / 0.9536 GB, free: 12 kB / 0.9011 GB Notification: Performance of simCode: created initialization part: time 7.055e-05/0.0039, allocations: 15.98 kB / 0.9536 GB, free: 15.99 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 1.272e-06/0.003902, allocations: 4.094 kB / 0.9536 GB, free: 15.99 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 1.001e-05/0.003912, allocations: 4 kB / 0.9536 GB, free: 15.98 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.946e-05/0.004011, allocations: 11.92 kB / 0.9536 GB, free: 15.97 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002292/0.00424, allocations: 113.3 kB / 0.9537 GB, free: 15.82 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.405e-05/0.004274, allocations: 59.34 kB / 0.9538 GB, free: 15.75 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 1.079e-05/0.004285, allocations: 4 kB / 0.9538 GB, free: 15.74 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.742e-05/0.004303, allocations: 12.5 kB / 0.9538 GB, free: 15.73 MB / 0.9167 GB Notification: Performance of SimCode: time 5.61e-07/0.004303, allocations: 0 / 0.9538 GB, free: 15.73 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01619/0.02049, allocations: 1.7 MB / 0.9555 GB, free: 14.16 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.758/6.778, allocations: 11.97 kB / 0.9555 GB, free: 14.15 MB / 0.9167 GB " [Timeout remaining time 293] (rm -f Buildings_11_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo Buildings_11_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/Buildings_11_Buildings.Utilities.Math.Functions.Examples.Factorial.sim & python3 -m fmpy simulate --output-file Buildings_11_Buildings.Utilities.Math.Functions.Examples.Factorial_res.csv --start-time 0 --stop-time 12.9 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00516 Buildings_11_Buildings_Utilities_Math_Functions_Examples_Factorial.fmu > Buildings_11_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Utilities.Math.Functions.Examples.Factorial_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Math_Functions_Examples_Factorial.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Utilities.Math.Functions.Examples.Factorial.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.810731717385352]