Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001587/0.001587, allocations: 108.9 kB / 16.46 MB, free: 6.453 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.001766/0.001766, allocations: 216.2 kB / 19.43 MB, free: 3.625 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.571/1.571, allocations: 230.6 MB / 252.8 MB, free: 8.938 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.355/3.355, allocations: 0.49 GB / 0.7916 GB, free: 33.46 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.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_12_Buildings_Utilities_Math_Functions_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="Buildings_12_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.002062/0.002062, allocations: 73.03 kB / 1.149 GB, free: 26.49 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3777/0.3797, allocations: 176.1 MB / 1.321 GB, free: 3.418 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.002066/0.3818, allocations: 0.5903 MB / 1.321 GB, free: 2.832 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.0002944/0.3821, allocations: 55.78 kB / 1.321 GB, free: 2.777 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.894e-05/0.3821, allocations: 0 / 1.321 GB, free: 2.777 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 1.474e-05/0.3821, allocations: 0 / 1.321 GB, free: 2.777 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 6.302e-06/0.3821, allocations: 0 / 1.321 GB, free: 2.777 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002333/0.3824, allocations: 15.98 kB / 1.321 GB, free: 2.762 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 4.833e-05/0.3824, allocations: 0 / 1.321 GB, free: 2.762 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 4.189e-05/0.3824, allocations: 4 kB / 1.321 GB, free: 2.758 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 1.304e-05/0.3825, allocations: 0 / 1.321 GB, free: 2.758 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 2.002e-05/0.3825, allocations: 0 / 1.321 GB, free: 2.758 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 1.185e-05/0.3825, allocations: 3.984 kB / 1.321 GB, free: 2.754 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 8.102e-05/0.3826, allocations: 15.98 kB / 1.322 GB, free: 2.738 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 1.112e-05/0.3826, allocations: 7.938 kB / 1.322 GB, free: 2.73 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 2.259e-05/0.3826, allocations: 3.938 kB / 1.322 GB, free: 2.727 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 9.119e-05/0.3827, allocations: 11.98 kB / 1.322 GB, free: 2.715 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.3827, allocations: 0 / 1.322 GB, free: 2.715 MB / 1.014 GB Notification: Performance of FrontEnd: time 2.304e-06/0.3827, allocations: 0 / 1.322 GB, free: 2.715 MB / 1.014 GB Notification: Performance of Transformations before backend: time 9.118e-06/0.3827, allocations: 0 / 1.322 GB, free: 2.715 MB / 1.014 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.0003281/0.383, allocations: 311.8 kB / 1.322 GB, free: 2.359 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 4.467e-05/0.3831, allocations: 15.98 kB / 1.322 GB, free: 2.344 MB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.965e-05/0.3831, allocations: 38.73 kB / 1.322 GB, free: 2.297 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.786e-05/0.3832, allocations: 0.9375 kB / 1.322 GB, free: 2.297 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001137/0.3833, allocations: 164.4 kB / 1.322 GB, free: 2.098 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.134e-05/0.3833, allocations: 384 / 1.322 GB, free: 2.098 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.092e-05/0.3833, allocations: 384 / 1.322 GB, free: 2.098 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.857e-05/0.3834, allocations: 30.27 kB / 1.322 GB, free: 2.062 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.035e-05/0.3834, allocations: 3.938 kB / 1.322 GB, free: 2.059 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.875e-06/0.3834, allocations: 0 / 1.322 GB, free: 2.059 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.255e-05/0.3834, allocations: 7.984 kB / 1.322 GB, free: 2.051 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.552e-05/0.3835, allocations: 3.938 kB / 1.322 GB, free: 2.047 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000168/0.3836, allocations: 149.7 kB / 1.322 GB, free: 1.852 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 6.373e-05/0.3837, allocations: 34.53 kB / 1.322 GB, free: 1.809 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.835e-05/0.3837, allocations: 8.797 kB / 1.322 GB, free: 1.797 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001807/0.3839, allocations: 81.17 kB / 1.322 GB, free: 1.699 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.134e-05/0.3839, allocations: 30.97 kB / 1.322 GB, free: 1.66 MB / 1.014 GB Notification: Performance of pre-optimization done (n=2): time 1.122e-06/0.3839, allocations: 0 / 1.322 GB, free: 1.66 MB / 1.014 GB Notification: Performance of matching and sorting (n=2): time 0.0001601/0.3841, allocations: 53.56 kB / 1.322 GB, free: 1.602 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.277e-05/0.3841, allocations: 55.53 kB / 1.322 GB, free: 1.535 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.903e-05/0.3842, allocations: 93.81 kB / 1.323 GB, free: 1.434 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 1.413e-05/0.3842, allocations: 25.7 kB / 1.323 GB, free: 1.402 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 3.324e-05/0.3842, allocations: 80.14 kB / 1.323 GB, free: 1.32 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 1.66e-05/0.3842, allocations: 0 / 1.323 GB, free: 1.32 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.927e-05/0.3843, allocations: 17.72 kB / 1.323 GB, free: 1.297 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001302/0.3844, allocations: 314.8 kB / 1.323 GB, free: 0.9805 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.357e-05/0.3844, allocations: 4 kB / 1.323 GB, free: 0.9766 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.325e-06/0.3844, allocations: 4 kB / 1.323 GB, free: 0.9727 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.982e-05/0.3845, allocations: 12.86 kB / 1.323 GB, free: 0.957 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.37e-06/0.3845, allocations: 8 kB / 1.323 GB, free: 0.9492 MB / 1.014 GB Notification: Performance of matching and sorting (n=2) (initialization): time 7.099e-05/0.3845, allocations: 45.61 kB / 1.323 GB, free: 0.8984 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 1.327e-05/0.3846, allocations: 4 kB / 1.323 GB, free: 0.8945 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.733e-06/0.3846, allocations: 3.938 kB / 1.323 GB, free: 0.8906 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.284e-05/0.3846, allocations: 0 / 1.323 GB, free: 0.8906 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.926e-05/0.3846, allocations: 4 kB / 1.323 GB, free: 0.8867 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.14e-06/0.3846, allocations: 0 / 1.323 GB, free: 0.8867 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.415e-05/0.3847, allocations: 4.094 kB / 1.323 GB, free: 0.8828 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.288e-06/0.3847, allocations: 0 / 1.323 GB, free: 0.8828 MB / 1.014 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 9.686e-05/0.3848, allocations: 113.8 kB / 1.323 GB, free: 0.7617 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.484e-06/0.3848, allocations: 0 / 1.323 GB, free: 0.7617 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.808e-05/0.3849, allocations: 52.69 kB / 1.323 GB, free: 0.7031 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.974e-06/0.3849, allocations: 0 / 1.323 GB, free: 0.7031 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.877e-06/0.3849, allocations: 0 / 1.323 GB, free: 0.7031 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.445e-06/0.3849, allocations: 0 / 1.323 GB, free: 0.7031 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001148/0.385, allocations: 157.7 kB / 1.323 GB, free: 0.5 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.385, allocations: 0 / 1.323 GB, free: 0.5 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.112e-05/0.385, allocations: 0 / 1.323 GB, free: 0.5 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.178e-06/0.385, allocations: 4 kB / 1.323 GB, free: 0.4961 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.875e-06/0.385, allocations: 3.938 kB / 1.323 GB, free: 0.4922 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/0.385, allocations: 0 / 1.323 GB, free: 0.4922 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.385, allocations: 3.938 kB / 1.323 GB, free: 500 kB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.908e-05/0.3851, allocations: 65.08 kB / 1.323 GB, free: 416 kB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 4.069e-05/0.3852, allocations: 81.14 kB / 1.324 GB, free: 316 kB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.34e-05/0.3852, allocations: 7.938 kB / 1.324 GB, free: 308 kB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.735e-05/0.3852, allocations: 8 kB / 1.324 GB, free: 300 kB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.978e-05/0.3852, allocations: 11.86 kB / 1.324 GB, free: 288 kB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.525e-06/0.3852, allocations: 0 / 1.324 GB, free: 288 kB / 1.014 GB Notification: Performance of sorting global known variables: time 3.061e-05/0.3852, allocations: 75.28 kB / 1.324 GB, free: 212 kB / 1.014 GB Notification: Performance of sort global known variables: time 6.1e-08/0.3852, allocations: 0 / 1.324 GB, free: 212 kB / 1.014 GB Notification: Performance of remove unused functions: time 0.0001901/0.3854, allocations: 4 kB / 1.324 GB, free: 208 kB / 1.014 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.0004738/0.3859, allocations: 0.6085 MB / 1.324 GB, free: 15.56 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 8.979e-05/0.386, allocations: 15.94 kB / 1.324 GB, free: 15.55 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.443e-06/0.386, allocations: 0 / 1.324 GB, free: 15.55 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 1.894e-05/0.386, allocations: 7.984 kB / 1.324 GB, free: 15.54 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001302/0.3861, allocations: 0 / 1.324 GB, free: 15.54 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003415/0.3865, allocations: 122.6 kB / 1.324 GB, free: 15.38 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002821/0.3868, allocations: 0.6729 MB / 1.325 GB, free: 14.68 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 1.584e-05/0.3868, allocations: 4 kB / 1.325 GB, free: 14.68 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.551e-05/0.3868, allocations: 11.44 kB / 1.325 GB, free: 14.66 MB / 1.029 GB Notification: Performance of SimCode: time 4.6e-07/0.3868, allocations: 0 / 1.325 GB, free: 14.66 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02393/0.4107, allocations: 1.068 MB / 1.326 GB, free: 13.69 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.951/8.362, allocations: 8.906 kB / 1.326 GB, free: 13.68 MB / 1.029 GB " [Timeout remaining time 292] (rm -f Buildings_12_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo Buildings_12_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/Buildings_12_Buildings.Utilities.Math.Functions.Examples.Factorial.sim & python3 -m fmpy simulate --output-file Buildings_12_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_12_Buildings_Utilities_Math_Functions_Examples_Factorial.fmu > Buildings_12_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Utilities.Math.Functions.Examples.Factorial_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_Math_Functions_Examples_Factorial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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.583640743046999]