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.001306/0.001306, allocations: 114.5 kB / 18.94 MB, free: 2.957 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.001561/0.001561, allocations: 216 kB / 22.25 MB, free: 5.117 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.523/1.523, allocations: 230.6 MB / 256 MB, free: 8.035 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.818/2.818, allocations: 476.7 MB / 0.7707 GB, free: 4.336 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.002027/0.002027, allocations: 68.45 kB / 1.117 GB, free: 39.84 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3214/0.3235, allocations: 170 MB / 1.283 GB, free: 11.59 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.002005/0.3255, allocations: 0.5963 MB / 1.284 GB, free: 11 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.0002691/0.3257, allocations: 55.73 kB / 1.284 GB, free: 10.95 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.581e-05/0.3258, allocations: 0 / 1.284 GB, free: 10.95 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 1.421e-05/0.3258, allocations: 0 / 1.284 GB, free: 10.95 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 5.33e-06/0.3258, allocations: 0 / 1.284 GB, free: 10.95 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002127/0.326, allocations: 11.92 kB / 1.284 GB, free: 10.93 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 4.628e-05/0.326, allocations: 8 kB / 1.284 GB, free: 10.93 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 4.165e-05/0.3261, allocations: 3.984 kB / 1.284 GB, free: 10.92 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 1.432e-05/0.3261, allocations: 4 kB / 1.284 GB, free: 10.92 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 2.143e-05/0.3261, allocations: 3.984 kB / 1.284 GB, free: 10.91 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 8.716e-06/0.3261, allocations: 0 / 1.284 GB, free: 10.91 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 7.472e-05/0.3262, allocations: 8 kB / 1.284 GB, free: 10.91 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 7.614e-06/0.3262, allocations: 4 kB / 1.284 GB, free: 10.9 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 1.98e-05/0.3262, allocations: 3.938 kB / 1.284 GB, free: 10.9 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 8.343e-05/0.3263, allocations: 19.97 kB / 1.284 GB, free: 10.88 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 9.288e-06/0.3263, allocations: 4 kB / 1.284 GB, free: 10.88 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.653e-06/0.3263, allocations: 0 / 1.284 GB, free: 10.88 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 4.959e-06/0.3263, allocations: 0 / 1.284 GB, free: 10.88 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.0002857/0.3266, allocations: 239.7 kB / 1.284 GB, free: 10.61 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.601e-05/0.3266, allocations: 8.031 kB / 1.284 GB, free: 10.61 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.352e-05/0.3267, allocations: 30.75 kB / 1.284 GB, free: 10.57 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.312e-05/0.3267, allocations: 8.938 kB / 1.284 GB, free: 10.56 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.741e-05/0.3268, allocations: 106.5 kB / 1.284 GB, free: 10.43 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.348e-06/0.3268, allocations: 384 / 1.284 GB, free: 10.43 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.158e-06/0.3268, allocations: 384 / 1.284 GB, free: 10.43 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001021/0.3269, allocations: 38.19 kB / 1.285 GB, free: 10.39 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.208e-06/0.3269, allocations: 3.938 kB / 1.285 GB, free: 10.38 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.101e-06/0.3269, allocations: 0 / 1.285 GB, free: 10.38 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.807e-06/0.3269, allocations: 0 / 1.285 GB, free: 10.38 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.974e-05/0.327, allocations: 4 kB / 1.285 GB, free: 10.38 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001502/0.3271, allocations: 124.8 kB / 1.285 GB, free: 10.21 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 5.769e-05/0.3272, allocations: 26.59 kB / 1.285 GB, free: 10.18 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.692e-05/0.3272, allocations: 4.859 kB / 1.285 GB, free: 10.17 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001238/0.3273, allocations: 8.094 kB / 1.285 GB, free: 10.16 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.172e-05/0.3273, allocations: 38.5 kB / 1.285 GB, free: 10.12 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=2): time 1.332e-06/0.3273, allocations: 0 / 1.285 GB, free: 10.12 MB / 0.9825 GB Notification: Performance of matching and sorting (n=2): time 0.0001514/0.3275, allocations: 45.62 kB / 1.285 GB, free: 10.07 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.87e-05/0.3275, allocations: 59.53 kB / 1.285 GB, free: 9.996 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.506e-05/0.3276, allocations: 89.86 kB / 1.285 GB, free: 9.898 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.323e-05/0.3276, allocations: 25.7 kB / 1.285 GB, free: 9.867 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 3.513e-05/0.3276, allocations: 80.14 kB / 1.285 GB, free: 9.785 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 1.877e-05/0.3276, allocations: 11.89 kB / 1.285 GB, free: 9.773 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.109e-05/0.3277, allocations: 13.72 kB / 1.285 GB, free: 9.754 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001312/0.3278, allocations: 314.8 kB / 1.285 GB, free: 9.438 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.495e-05/0.3278, allocations: 4 kB / 1.285 GB, free: 9.434 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.194e-06/0.3278, allocations: 4 kB / 1.285 GB, free: 9.43 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.1e-05/0.3279, allocations: 20.8 kB / 1.285 GB, free: 9.406 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.472e-06/0.3279, allocations: 0 / 1.285 GB, free: 9.406 MB / 0.9825 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.734e-05/0.3279, allocations: 37.69 kB / 1.285 GB, free: 9.363 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.441e-05/0.3279, allocations: 6.344 kB / 1.285 GB, free: 9.359 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.022e-06/0.328, allocations: 3.938 kB / 1.285 GB, free: 9.355 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.165e-05/0.328, allocations: 0 / 1.285 GB, free: 9.355 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.338e-05/0.328, allocations: 4 kB / 1.285 GB, free: 9.352 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.949e-06/0.328, allocations: 4.094 kB / 1.285 GB, free: 9.348 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.673e-05/0.328, allocations: 4 kB / 1.285 GB, free: 9.344 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.34e-06/0.328, allocations: 4 kB / 1.285 GB, free: 9.34 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.316e-05/0.3281, allocations: 105.8 kB / 1.286 GB, free: 9.227 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.384e-06/0.3281, allocations: 0 / 1.286 GB, free: 9.227 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.223e-05/0.3282, allocations: 52.72 kB / 1.286 GB, free: 9.172 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.563e-06/0.3282, allocations: 0 / 1.286 GB, free: 9.172 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.58e-06/0.3282, allocations: 4 kB / 1.286 GB, free: 9.168 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.675e-06/0.3282, allocations: 32 / 1.286 GB, free: 9.168 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001/0.3283, allocations: 124.8 kB / 1.286 GB, free: 9.004 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.3283, allocations: 0 / 1.286 GB, free: 9.004 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.409e-05/0.3284, allocations: 4 kB / 1.286 GB, free: 9 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.853e-06/0.3284, allocations: 0 / 1.286 GB, free: 9 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.344e-06/0.3284, allocations: 3.938 kB / 1.286 GB, free: 8.996 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.3284, allocations: 0 / 1.286 GB, free: 8.996 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.3284, allocations: 0 / 1.286 GB, free: 8.996 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.632e-05/0.3284, allocations: 76.98 kB / 1.286 GB, free: 8.902 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 1.003e-05/0.3285, allocations: 11.94 kB / 1.286 GB, free: 8.891 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.172e-05/0.3285, allocations: 3.938 kB / 1.286 GB, free: 8.887 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.077e-05/0.3285, allocations: 0 / 1.286 GB, free: 8.887 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.381e-05/0.3285, allocations: 3.984 kB / 1.286 GB, free: 8.883 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.309e-06/0.3285, allocations: 4 kB / 1.286 GB, free: 8.879 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 3.675e-05/0.3286, allocations: 75.28 kB / 1.286 GB, free: 8.805 MB / 0.9825 GB Notification: Performance of sort global known variables: time 8e-08/0.3286, allocations: 0 / 1.286 GB, free: 8.805 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002013/0.3288, allocations: 4 kB / 1.286 GB, free: 8.801 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.0004431/0.3292, allocations: 0.6008 MB / 1.286 GB, free: 8.168 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 7.65e-05/0.3293, allocations: 11.94 kB / 1.286 GB, free: 8.156 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.3293, allocations: 0 / 1.286 GB, free: 8.156 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 1.633e-05/0.3293, allocations: 11.92 kB / 1.286 GB, free: 8.145 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001287/0.3294, allocations: 4.156 kB / 1.286 GB, free: 8.141 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003195/0.3297, allocations: 110.6 kB / 1.287 GB, free: 7.992 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002957/0.33, allocations: 0.6768 MB / 1.287 GB, free: 7.289 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 1.219e-05/0.3301, allocations: 0 / 1.287 GB, free: 7.289 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.315e-05/0.3301, allocations: 7.438 kB / 1.287 GB, free: 7.281 MB / 0.9825 GB Notification: Performance of SimCode: time 5.21e-07/0.3301, allocations: 0 / 1.287 GB, free: 7.281 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02815/0.3582, allocations: 1.174 MB / 1.288 GB, free: 6.238 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.89/11.24, allocations: 0.7031 kB / 1.288 GB, free: 6.238 MB / 0.9825 GB " [Timeout remaining time 288] (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: 17.96854544099915]