Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.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.001814/0.001814, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.002196/0.002196, allocations: 217.4 kB / 22.25 MB, free: 4.855 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.651/1.651, allocations: 230.6 MB / 256 MB, free: 7.793 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.425/3.425, allocations: 0.5107 GB / 0.8158 GB, free: 17.8 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.Examples.Factorial,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Factorial,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_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.002123/0.002123, allocations: 70.8 kB / 1.186 GB, free: 13.68 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4047/0.4068, allocations: 181.9 MB / 1.363 GB, free: 14.06 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.003092/0.4099, allocations: 1.542 MB / 1.365 GB, free: 12.51 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.0003973/0.4103, allocations: 123.7 kB / 1.365 GB, free: 12.39 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.914e-05/0.4103, allocations: 3.938 kB / 1.365 GB, free: 12.38 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 2.52e-05/0.4103, allocations: 7.938 kB / 1.365 GB, free: 12.38 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 4.629e-05/0.4104, allocations: 3.938 kB / 1.365 GB, free: 12.37 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.00026/0.4106, allocations: 19.97 kB / 1.365 GB, free: 12.35 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 8.654e-05/0.4107, allocations: 31.86 kB / 1.365 GB, free: 12.32 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001092/0.4108, allocations: 8 kB / 1.365 GB, free: 12.31 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 4.961e-05/0.4109, allocations: 11.97 kB / 1.365 GB, free: 12.3 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 5.947e-05/0.4109, allocations: 19.92 kB / 1.365 GB, free: 12.28 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 1.466e-05/0.411, allocations: 0 / 1.365 GB, free: 12.28 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 6.954e-05/0.411, allocations: 16 kB / 1.365 GB, free: 12.27 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 1.923e-05/0.411, allocations: 7.984 kB / 1.365 GB, free: 12.26 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 2.651e-05/0.4111, allocations: 11.94 kB / 1.365 GB, free: 12.25 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.00016/0.4112, allocations: 40.05 kB / 1.365 GB, free: 12.21 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 6.993e-06/0.4112, allocations: 3.984 kB / 1.365 GB, free: 12.2 MB / 1.061 GB Notification: Performance of FrontEnd: time 2.725e-06/0.4112, allocations: 0 / 1.365 GB, free: 12.2 MB / 1.061 GB Notification: Performance of Transformations before backend: time 1.028e-05/0.4113, allocations: 4 kB / 1.365 GB, free: 12.2 MB / 1.061 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0005392/0.4118, allocations: 262.3 kB / 1.365 GB, free: 11.91 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.965e-05/0.4118, allocations: 8.031 kB / 1.365 GB, free: 11.9 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.784e-05/0.4119, allocations: 34.75 kB / 1.365 GB, free: 11.86 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.278e-05/0.4119, allocations: 8.891 kB / 1.365 GB, free: 11.85 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001146/0.412, allocations: 102.5 kB / 1.366 GB, free: 11.73 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.533e-05/0.4121, allocations: 8.375 kB / 1.366 GB, free: 11.72 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.331e-05/0.4121, allocations: 4.312 kB / 1.366 GB, free: 11.71 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002044/0.4123, allocations: 58.22 kB / 1.366 GB, free: 11.65 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.26e-05/0.4123, allocations: 3.938 kB / 1.366 GB, free: 11.65 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.12e-05/0.4123, allocations: 4 kB / 1.366 GB, free: 11.64 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.528e-06/0.4123, allocations: 0 / 1.366 GB, free: 11.64 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001892/0.4125, allocations: 47.89 kB / 1.366 GB, free: 11.6 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004217/0.4129, allocations: 228 kB / 1.366 GB, free: 11.33 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003496/0.4133, allocations: 58.53 kB / 1.366 GB, free: 11.27 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001026/0.4134, allocations: 28.89 kB / 1.366 GB, free: 11.23 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 9.403e-05/0.4135, allocations: 4 kB / 1.366 GB, free: 11.23 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.985e-05/0.4135, allocations: 34.5 kB / 1.366 GB, free: 11.19 MB / 1.061 GB Notification: Performance of pre-optimization done (n=3): time 1.283e-06/0.4135, allocations: 0 / 1.366 GB, free: 11.19 MB / 1.061 GB Notification: Performance of matching and sorting (n=3): time 0.0004178/0.4139, allocations: 97.62 kB / 1.366 GB, free: 11.09 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.27e-05/0.414, allocations: 51.41 kB / 1.366 GB, free: 11.02 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.387e-05/0.414, allocations: 97.86 kB / 1.366 GB, free: 10.92 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 2.108e-05/0.4141, allocations: 29.7 kB / 1.366 GB, free: 10.88 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 7.247e-05/0.4141, allocations: 84.12 kB / 1.366 GB, free: 10.8 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 1.755e-05/0.4141, allocations: 3.953 kB / 1.366 GB, free: 10.79 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.454e-05/0.4142, allocations: 17.72 kB / 1.366 GB, free: 10.77 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001541/0.4143, allocations: 314.8 kB / 1.367 GB, free: 10.45 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.642e-05/0.4144, allocations: 23.97 kB / 1.367 GB, free: 10.43 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.946e-05/0.4145, allocations: 27.86 kB / 1.367 GB, free: 10.4 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001828/0.4147, allocations: 49.22 kB / 1.367 GB, free: 10.35 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.4147, allocations: 0 / 1.367 GB, free: 10.35 MB / 1.061 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002538/0.415, allocations: 77.59 kB / 1.367 GB, free: 10.27 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 2.008e-05/0.415, allocations: 8 kB / 1.367 GB, free: 10.26 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.112e-06/0.415, allocations: 4 kB / 1.367 GB, free: 10.26 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.922e-05/0.415, allocations: 0 / 1.367 GB, free: 10.26 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.825e-05/0.4151, allocations: 11.98 kB / 1.367 GB, free: 10.25 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.075e-06/0.4151, allocations: 0 / 1.367 GB, free: 10.25 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.23e-05/0.4152, allocations: 11.92 kB / 1.367 GB, free: 10.23 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.091e-06/0.4152, allocations: 0 / 1.367 GB, free: 10.23 MB / 1.061 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 (rea2Int.y,fac.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 0.0001054/0.4153, allocations: 121.7 kB / 1.367 GB, free: 10.11 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.476e-05/0.4153, allocations: 0 / 1.367 GB, free: 10.11 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002899/0.4156, allocations: 89.27 kB / 1.367 GB, free: 10 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.335e-06/0.4156, allocations: 4 kB / 1.367 GB, free: 10 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.322e-06/0.4156, allocations: 3.984 kB / 1.367 GB, free: 9.996 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.126e-06/0.4156, allocations: 0 / 1.367 GB, free: 9.996 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001832/0.4158, allocations: 136.7 kB / 1.367 GB, free: 9.82 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.4158, allocations: 0 / 1.367 GB, free: 9.82 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.159e-05/0.4159, allocations: 15.98 kB / 1.367 GB, free: 9.805 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.316e-06/0.4159, allocations: 0 / 1.367 GB, free: 9.805 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.995e-06/0.4159, allocations: 0 / 1.367 GB, free: 9.805 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.245e-06/0.4159, allocations: 0 / 1.367 GB, free: 9.805 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.4159, allocations: 4 kB / 1.367 GB, free: 9.801 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003035/0.4162, allocations: 175.4 kB / 1.367 GB, free: 9.613 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 1.378e-05/0.4162, allocations: 11.94 kB / 1.367 GB, free: 9.602 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.302e-05/0.4162, allocations: 0 / 1.367 GB, free: 9.602 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.186e-05/0.4163, allocations: 4 kB / 1.367 GB, free: 9.598 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.1e-05/0.4164, allocations: 7.984 kB / 1.367 GB, free: 9.59 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.302e-06/0.4164, allocations: 4 kB / 1.367 GB, free: 9.586 MB / 1.061 GB Notification: Performance of sorting global known variables: time 4.508e-05/0.4164, allocations: 75.28 kB / 1.368 GB, free: 9.512 MB / 1.061 GB Notification: Performance of sort global known variables: time 9e-08/0.4164, allocations: 4 kB / 1.368 GB, free: 9.508 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002363/0.4166, allocations: 11.98 kB / 1.368 GB, free: 9.496 MB / 1.061 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.y,rea2Int.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.0006384/0.4173, allocations: 0.7085 MB / 1.368 GB, free: 8.758 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.000236/0.4175, allocations: 44.28 kB / 1.368 GB, free: 8.715 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.4175, allocations: 0 / 1.368 GB, free: 8.715 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 9.763e-05/0.4176, allocations: 23.98 kB / 1.368 GB, free: 8.691 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002871/0.4179, allocations: 4 kB / 1.368 GB, free: 8.688 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005191/0.4184, allocations: 159.2 kB / 1.368 GB, free: 8.492 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.648e-05/0.4185, allocations: 63.34 kB / 1.369 GB, free: 8.41 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 3.113e-05/0.4185, allocations: 0 / 1.369 GB, free: 8.41 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.642e-05/0.4186, allocations: 15.42 kB / 1.369 GB, free: 8.395 MB / 1.061 GB Notification: Performance of SimCode: time 7.32e-07/0.4186, allocations: 0 / 1.369 GB, free: 8.395 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03161/0.4502, allocations: 2.146 MB / 1.371 GB, free: 6.383 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.28/11.73, allocations: 1.5 kB / 1.371 GB, free: 6.383 MB / 1.061 GB " [Timeout remaining time 288] (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Utilities.Math.Examples.Factorial_res.csv --start-time 0 --stop-time 13 --timeout 800 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0052 Buildings_latest_Buildings_Utilities_Math_Examples_Factorial.fmu > Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.Factorial_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_Factorial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "Error: Could not read variable fac.y in file Buildings_latest_Buildings.Utilities.Math.Examples.Factorial_res.csv. Warning: Get data of variable fac.y from file Buildings_latest_Buildings.Utilities.Math.Examples.Factorial_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 19.267956329043955]