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.001402/0.001402, allocations: 101.7 kB / 16.45 MB, free: 6.449 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.001616/0.001616, allocations: 210.4 kB / 19.43 MB, free: 3.637 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.48/1.48, allocations: 230.6 MB / 252.8 MB, free: 9.117 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.76/2.76, allocations: 476.7 MB / 0.7672 GB, free: 5.242 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-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: 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.002154/0.002154, allocations: 71.91 kB / 1.112 GB, free: 1.488 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7932/0.7954, allocations: 169.9 MB / 1.278 GB, free: 13.38 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.001735/0.7971, allocations: 0.5836 MB / 1.279 GB, free: 12.79 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.0002672/0.7974, allocations: 69.53 kB / 1.279 GB, free: 12.73 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.699e-05/0.7974, allocations: 0 / 1.279 GB, free: 12.73 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 1.208e-05/0.7974, allocations: 0 / 1.279 GB, free: 12.73 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 5.35e-06/0.7974, allocations: 0 / 1.279 GB, free: 12.73 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001984/0.7976, allocations: 7.938 kB / 1.279 GB, free: 12.72 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 4.18e-05/0.7977, allocations: 8 kB / 1.279 GB, free: 12.71 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 3.717e-05/0.7977, allocations: 0 / 1.279 GB, free: 12.71 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 1.344e-05/0.7977, allocations: 3.984 kB / 1.279 GB, free: 12.71 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 2.157e-05/0.7977, allocations: 4 kB / 1.279 GB, free: 12.7 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.056e-05/0.7977, allocations: 3.984 kB / 1.279 GB, free: 12.7 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 6.841e-05/0.7978, allocations: 12 kB / 1.279 GB, free: 12.69 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 8.065e-06/0.7978, allocations: 0 / 1.279 GB, free: 12.69 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 1.765e-05/0.7978, allocations: 3.938 kB / 1.279 GB, free: 12.68 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 8.751e-05/0.7979, allocations: 7.984 kB / 1.279 GB, free: 12.68 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 6.232e-06/0.7979, allocations: 4 kB / 1.279 GB, free: 12.67 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.252e-06/0.7979, allocations: 0 / 1.279 GB, free: 12.67 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 4.739e-06/0.7979, allocations: 0 / 1.279 GB, free: 12.67 MB / 0.9825 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.0003097/0.7982, allocations: 317.4 kB / 1.279 GB, free: 12.31 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.498e-05/0.7983, allocations: 8.031 kB / 1.279 GB, free: 12.3 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.415e-05/0.7983, allocations: 30.75 kB / 1.279 GB, free: 12.27 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.032e-05/0.7983, allocations: 4.938 kB / 1.279 GB, free: 12.26 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001068/0.7984, allocations: 160.4 kB / 1.279 GB, free: 12.07 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.756e-06/0.7984, allocations: 4.375 kB / 1.279 GB, free: 12.06 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.666e-06/0.7985, allocations: 384 / 1.279 GB, free: 12.06 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.429e-05/0.7985, allocations: 38.25 kB / 1.28 GB, free: 12.02 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.496e-06/0.7986, allocations: 7.875 kB / 1.28 GB, free: 12.01 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.483e-06/0.7986, allocations: 0 / 1.28 GB, free: 12.01 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.517e-06/0.7986, allocations: 0 / 1.28 GB, free: 12.01 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.886e-05/0.7986, allocations: 4 kB / 1.28 GB, free: 12.01 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001505/0.7987, allocations: 157.6 kB / 1.28 GB, free: 11.8 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 5.038e-05/0.7988, allocations: 18.61 kB / 1.28 GB, free: 11.78 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.834e-05/0.7988, allocations: 8.922 kB / 1.28 GB, free: 11.77 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001483/0.799, allocations: 81.11 kB / 1.28 GB, free: 11.67 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.679e-05/0.799, allocations: 38.55 kB / 1.28 GB, free: 11.62 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=2): time 1.192e-06/0.799, allocations: 0 / 1.28 GB, free: 11.62 MB / 0.9825 GB Notification: Performance of matching and sorting (n=2): time 0.0001318/0.7991, allocations: 45.58 kB / 1.28 GB, free: 11.57 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.871e-05/0.7992, allocations: 51.41 kB / 1.28 GB, free: 11.51 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.881e-05/0.7992, allocations: 93.86 kB / 1.28 GB, free: 11.41 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.383e-05/0.7992, allocations: 29.64 kB / 1.28 GB, free: 11.37 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 3.689e-05/0.7993, allocations: 84.14 kB / 1.28 GB, free: 11.29 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 1.92e-05/0.7993, allocations: 3.953 kB / 1.28 GB, free: 11.28 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.953e-05/0.7993, allocations: 13.7 kB / 1.28 GB, free: 11.26 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001351/0.7994, allocations: 322.8 kB / 1.28 GB, free: 10.94 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.078e-05/0.7995, allocations: 4.125 kB / 1.28 GB, free: 10.93 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.608e-06/0.7995, allocations: 4 kB / 1.28 GB, free: 10.93 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.347e-05/0.7995, allocations: 12.8 kB / 1.28 GB, free: 10.91 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.516e-06/0.7995, allocations: 4 kB / 1.28 GB, free: 10.91 MB / 0.9825 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.453e-05/0.7996, allocations: 41.69 kB / 1.281 GB, free: 10.86 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.162e-05/0.7996, allocations: 4 kB / 1.281 GB, free: 10.86 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.79e-06/0.7996, allocations: 3.938 kB / 1.281 GB, free: 10.86 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.218e-05/0.7996, allocations: 0 / 1.281 GB, free: 10.86 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.835e-05/0.7996, allocations: 4.094 kB / 1.281 GB, free: 10.85 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.007e-06/0.7997, allocations: 4 kB / 1.281 GB, free: 10.85 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.31e-05/0.7997, allocations: 0 / 1.281 GB, free: 10.85 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.208e-06/0.7997, allocations: 4 kB / 1.281 GB, free: 10.84 MB / 0.9825 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 7.411e-05/0.7997, allocations: 109.8 kB / 1.281 GB, free: 10.73 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.024e-06/0.7997, allocations: 0 / 1.281 GB, free: 10.73 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.205e-05/0.7998, allocations: 48.7 kB / 1.281 GB, free: 10.67 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.263e-06/0.7998, allocations: 0 / 1.281 GB, free: 10.67 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.176e-06/0.7998, allocations: 0 / 1.281 GB, free: 10.67 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.298e-06/0.7998, allocations: 8.016 kB / 1.281 GB, free: 10.66 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000112/0.8, allocations: 153.7 kB / 1.281 GB, free: 10.46 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.11e-07/0.8, allocations: 0 / 1.281 GB, free: 10.46 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.345e-05/0.8, allocations: 4 kB / 1.281 GB, free: 10.46 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.333e-06/0.8, allocations: 0 / 1.281 GB, free: 10.46 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.039e-05/0.8, allocations: 3.938 kB / 1.281 GB, free: 10.45 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.176e-06/0.8, allocations: 3.984 kB / 1.281 GB, free: 10.45 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.52e-07/0.8, allocations: 0 / 1.281 GB, free: 10.45 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.395e-05/0.8001, allocations: 69.08 kB / 1.281 GB, free: 10.36 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 4.753e-05/0.8001, allocations: 85.08 kB / 1.281 GB, free: 10.26 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.103e-05/0.8001, allocations: 3.938 kB / 1.281 GB, free: 10.26 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.104e-05/0.8002, allocations: 0 / 1.281 GB, free: 10.26 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.38e-05/0.8002, allocations: 0 / 1.281 GB, free: 10.26 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.869e-06/0.8002, allocations: 4 kB / 1.281 GB, free: 10.25 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 3.097e-05/0.8002, allocations: 79.22 kB / 1.281 GB, free: 10.18 MB / 0.9825 GB Notification: Performance of sort global known variables: time 6e-08/0.8002, allocations: 0 / 1.281 GB, free: 10.18 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0001877/0.8004, allocations: 4 kB / 1.281 GB, free: 10.17 MB / 0.9825 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.0004251/0.8008, allocations: 0.6129 MB / 1.282 GB, free: 9.527 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 7.457e-05/0.8009, allocations: 11.92 kB / 1.282 GB, free: 9.516 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.8009, allocations: 0 / 1.282 GB, free: 9.516 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 1.524e-05/0.8009, allocations: 4 kB / 1.282 GB, free: 9.512 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001285/0.801, allocations: 16.09 kB / 1.282 GB, free: 9.496 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002962/0.8013, allocations: 114.6 kB / 1.282 GB, free: 9.344 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002968/0.8016, allocations: 0.6728 MB / 1.282 GB, free: 8.645 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 1.559e-05/0.8017, allocations: 8 kB / 1.282 GB, free: 8.637 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.351e-05/0.8017, allocations: 11.44 kB / 1.283 GB, free: 8.625 MB / 0.9825 GB Notification: Performance of SimCode: time 3.11e-07/0.8017, allocations: 0 / 1.283 GB, free: 8.625 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02322/0.8249, allocations: 1.077 MB / 1.284 GB, free: 7.641 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.203/9.028, allocations: 14 kB / 1.284 GB, free: 7.629 MB / 0.9825 GB " [Timeout remaining time 291] (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/jenkins1/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: 15.107532443013042]