Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.00185/0.00185, 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.002872/0.002872, 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.607/1.607, allocations: 230.6 MB / 252.8 MB, free: 9.121 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.35/3.35, allocations: 0.505 GB / 0.8066 GB, free: 23.06 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.Factorial,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Functions_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="Buildings_latest_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.002148/0.002148, allocations: 78.25 kB / 1.172 GB, free: 17.65 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3944/0.3966, allocations: 180.2 MB / 1.348 GB, free: 10.05 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.00179/0.3984, allocations: 0.5875 MB / 1.348 GB, free: 9.461 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.0002915/0.3987, allocations: 59.72 kB / 1.348 GB, free: 9.402 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.06e-05/0.3987, allocations: 0 / 1.348 GB, free: 9.402 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 1.376e-05/0.3987, allocations: 0 / 1.348 GB, free: 9.402 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 6.553e-06/0.3987, allocations: 0 / 1.348 GB, free: 9.402 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002665/0.399, allocations: 8 kB / 1.348 GB, free: 9.395 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 5.354e-05/0.399, allocations: 4 kB / 1.348 GB, free: 9.391 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 5.07e-05/0.3991, allocations: 7.922 kB / 1.348 GB, free: 9.383 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 1.483e-05/0.3991, allocations: 0 / 1.348 GB, free: 9.383 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 2.782e-05/0.3991, allocations: 11.98 kB / 1.348 GB, free: 9.371 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 9.277e-06/0.3991, allocations: 0 / 1.348 GB, free: 9.371 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 8.241e-05/0.3992, allocations: 8 kB / 1.348 GB, free: 9.363 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 1.07e-05/0.3992, allocations: 0 / 1.348 GB, free: 9.363 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 1.842e-05/0.3992, allocations: 0 / 1.348 GB, free: 9.363 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 9.23e-05/0.3993, allocations: 15.92 kB / 1.348 GB, free: 9.348 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.3993, allocations: 0 / 1.348 GB, free: 9.348 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.433e-06/0.3993, allocations: 0 / 1.348 GB, free: 9.348 MB / 1.045 GB Notification: Performance of Transformations before backend: time 5.681e-06/0.3993, allocations: 0 / 1.348 GB, free: 9.348 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0003543/0.3997, allocations: 319.8 kB / 1.349 GB, free: 8.984 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.168e-05/0.3997, allocations: 15.98 kB / 1.349 GB, free: 8.969 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.788e-05/0.3998, allocations: 34.75 kB / 1.349 GB, free: 8.926 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.608e-05/0.3998, allocations: 0.9375 kB / 1.349 GB, free: 8.926 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001164/0.3999, allocations: 160.4 kB / 1.349 GB, free: 8.73 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.114e-05/0.3999, allocations: 4.375 kB / 1.349 GB, free: 8.727 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.077e-06/0.3999, allocations: 384 / 1.349 GB, free: 8.727 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001045/0.4, allocations: 34.25 kB / 1.349 GB, free: 8.688 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.526e-05/0.4001, allocations: 7.938 kB / 1.349 GB, free: 8.68 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.814e-06/0.4001, allocations: 0 / 1.349 GB, free: 8.68 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.661e-06/0.4001, allocations: 7.922 kB / 1.349 GB, free: 8.672 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.002e-05/0.4001, allocations: 12 kB / 1.349 GB, free: 8.66 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001588/0.4003, allocations: 149.6 kB / 1.349 GB, free: 8.465 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 5.759e-05/0.4003, allocations: 26.55 kB / 1.349 GB, free: 8.43 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.828e-05/0.4004, allocations: 8.922 kB / 1.349 GB, free: 8.418 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001659/0.4005, allocations: 81.11 kB / 1.349 GB, free: 8.32 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.568e-05/0.4005, allocations: 34.95 kB / 1.349 GB, free: 8.277 MB / 1.045 GB Notification: Performance of pre-optimization done (n=2): time 1.142e-06/0.4005, allocations: 4 kB / 1.349 GB, free: 8.273 MB / 1.045 GB Notification: Performance of matching and sorting (n=2): time 0.0001446/0.4007, allocations: 45.58 kB / 1.349 GB, free: 8.223 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.217e-05/0.4007, allocations: 51.41 kB / 1.349 GB, free: 8.16 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.488e-05/0.4008, allocations: 89.86 kB / 1.35 GB, free: 8.062 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 1.469e-05/0.4008, allocations: 25.7 kB / 1.35 GB, free: 8.031 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 3.538e-05/0.4008, allocations: 84.14 kB / 1.35 GB, free: 7.945 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 1.982e-05/0.4008, allocations: 7.922 kB / 1.35 GB, free: 7.938 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.221e-05/0.4009, allocations: 17.7 kB / 1.35 GB, free: 7.914 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001326/0.401, allocations: 319 kB / 1.35 GB, free: 7.594 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.111e-05/0.401, allocations: 0 / 1.35 GB, free: 7.594 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.066e-05/0.401, allocations: 4 kB / 1.35 GB, free: 7.59 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.412e-05/0.4011, allocations: 16.8 kB / 1.35 GB, free: 7.57 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.4011, allocations: 0 / 1.35 GB, free: 7.57 MB / 1.045 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.324e-05/0.4011, allocations: 37.69 kB / 1.35 GB, free: 7.527 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.329e-05/0.4011, allocations: 6.031 kB / 1.35 GB, free: 7.523 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.662e-06/0.4012, allocations: 3.938 kB / 1.35 GB, free: 7.52 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.687e-05/0.4012, allocations: 8.094 kB / 1.35 GB, free: 7.512 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.244e-05/0.4012, allocations: 0 / 1.35 GB, free: 7.512 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.909e-06/0.4012, allocations: 0 / 1.35 GB, free: 7.512 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.55e-05/0.4012, allocations: 4 kB / 1.35 GB, free: 7.508 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.258e-06/0.4012, allocations: 0 / 1.35 GB, free: 7.508 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: 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 8.046e-05/0.4013, allocations: 113.8 kB / 1.35 GB, free: 7.387 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.632e-06/0.4013, allocations: 0 / 1.35 GB, free: 7.387 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.339e-05/0.4014, allocations: 52.66 kB / 1.35 GB, free: 7.324 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.728e-06/0.4014, allocations: 8.016 kB / 1.35 GB, free: 7.316 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.496e-06/0.4014, allocations: 0 / 1.35 GB, free: 7.316 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.384e-06/0.4014, allocations: 0 / 1.35 GB, free: 7.316 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001171/0.4016, allocations: 145.7 kB / 1.35 GB, free: 7.125 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/0.4016, allocations: 0 / 1.35 GB, free: 7.125 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.314e-05/0.4016, allocations: 4 kB / 1.35 GB, free: 7.121 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.794e-06/0.4016, allocations: 0 / 1.35 GB, free: 7.121 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.017e-06/0.4016, allocations: 7.922 kB / 1.35 GB, free: 7.113 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.02e-07/0.4016, allocations: 0 / 1.35 GB, free: 7.113 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.4016, allocations: 0 / 1.35 GB, free: 7.113 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.695e-05/0.4017, allocations: 69.08 kB / 1.35 GB, free: 7.027 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 4.781e-05/0.4017, allocations: 85.09 kB / 1.35 GB, free: 6.926 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.274e-05/0.4017, allocations: 3.938 kB / 1.35 GB, free: 6.922 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.731e-05/0.4018, allocations: 8 kB / 1.351 GB, free: 6.914 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.962e-05/0.4018, allocations: 3.938 kB / 1.351 GB, free: 6.91 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.378e-06/0.4018, allocations: 4 kB / 1.351 GB, free: 6.906 MB / 1.045 GB Notification: Performance of sorting global known variables: time 3.243e-05/0.4018, allocations: 75.28 kB / 1.351 GB, free: 6.832 MB / 1.045 GB Notification: Performance of sort global known variables: time 8e-08/0.4018, allocations: 0 / 1.351 GB, free: 6.832 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0002034/0.402, allocations: 11.97 kB / 1.351 GB, free: 6.82 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: 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.0004672/0.4025, allocations: 0.6007 MB / 1.351 GB, free: 6.188 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 8.836e-05/0.4026, allocations: 19.92 kB / 1.351 GB, free: 6.168 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 4.138e-06/0.4026, allocations: 4.094 kB / 1.351 GB, free: 6.164 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 1.451e-05/0.4026, allocations: 4 kB / 1.351 GB, free: 6.16 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001327/0.4027, allocations: 1.547 kB / 1.351 GB, free: 6.16 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003349/0.4031, allocations: 130.4 kB / 1.351 GB, free: 5.992 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002967/0.4034, allocations: 0.669 MB / 1.352 GB, free: 5.297 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 1.41e-05/0.4034, allocations: 4 kB / 1.352 GB, free: 5.293 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.127e-05/0.4034, allocations: 7.438 kB / 1.352 GB, free: 5.289 MB / 1.045 GB Notification: Performance of SimCode: time 2.8e-07/0.4034, allocations: 0 / 1.352 GB, free: 5.289 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02547/0.4289, allocations: 1.073 MB / 1.353 GB, free: 4.309 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.926/8.355, allocations: 13.81 kB / 1.353 GB, free: 4.297 MB / 1.045 GB " [Timeout remaining time 292] (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial_res.csv --start-time 0 --stop-time 12.9 --timeout 800 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00516 Buildings_latest_Buildings_Utilities_Math_Functions_Examples_Factorial.fmu > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Functions_Examples_Factorial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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.69439124991186]