Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Buildings_6.0.0_Buildings.Utilities.Math.Functions.Examples.Factorial.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package Buildings with version 6.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="Buildings_6_0_0_Buildings_Utilities_Math_Functions_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Buildings): time 4.534/4.534, allocations: 433.2 MB / 440.7 MB, free: 4.559 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 3.876e-05/3.887e-05, allocations: 7.938 kB / 0.5325 GB, free: 12.78 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2302/0.2303, allocations: 98.74 MB / 0.6289 GB, free: 9.098 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2746/0.5049, allocations: 123.1 MB / 0.7492 GB, free: 13.81 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002957/0.5053, allocations: 79.94 kB / 0.7492 GB, free: 13.73 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.001536/0.5068, allocations: 0.524 MB / 0.7497 GB, free: 13.21 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.723e-06/0.5068, allocations: 0 / 0.7497 GB, free: 13.21 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 5.851e-06/0.5069, allocations: 0 / 0.7497 GB, free: 13.21 MB / 0.6355 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.00034/0.5072, allocations: 310.6 kB / 0.75 GB, free: 12.86 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.305e-05/0.5073, allocations: 11.97 kB / 0.75 GB, free: 12.85 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.629e-05/0.5073, allocations: 3.953 kB / 0.75 GB, free: 12.84 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001271/0.5075, allocations: 167.1 kB / 0.7502 GB, free: 12.64 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.39e-05/0.5075, allocations: 0 / 0.7502 GB, free: 12.64 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.299e-05/0.5075, allocations: 4 kB / 0.7502 GB, free: 12.64 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.45e-05/0.5076, allocations: 7.938 kB / 0.7502 GB, free: 12.63 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.457e-05/0.5077, allocations: 29.69 kB / 0.7502 GB, free: 12.59 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.037e-05/0.5077, allocations: 0 / 0.7502 GB, free: 12.59 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.197e-06/0.5077, allocations: 0 / 0.7502 GB, free: 12.59 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.99e-06/0.5077, allocations: 4 kB / 0.7503 GB, free: 12.59 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001774/0.5079, allocations: 126.2 kB / 0.7504 GB, free: 12.43 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 6.349e-05/0.508, allocations: 26.61 kB / 0.7504 GB, free: 12.39 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.701e-05/0.508, allocations: 8.922 kB / 0.7504 GB, free: 12.38 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001983/0.5083, allocations: 81.09 kB / 0.7505 GB, free: 12.29 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.721e-05/0.5083, allocations: 34.56 kB / 0.7505 GB, free: 12.24 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=2): time 1.703e-06/0.5083, allocations: 0 / 0.7505 GB, free: 12.24 MB / 0.6355 GB Notification: Performance of matching and sorting (n=2): time 0.0001856/0.5085, allocations: 37.64 kB / 0.7506 GB, free: 12.2 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.982e-05/0.5086, allocations: 55.39 kB / 0.7506 GB, free: 12.13 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.835e-05/0.5087, allocations: 89 kB / 0.7507 GB, free: 12.04 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.831e-05/0.5087, allocations: 29.73 kB / 0.7507 GB, free: 12 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 4.257e-05/0.5088, allocations: 80.14 kB / 0.7508 GB, free: 11.92 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 1.984e-05/0.5088, allocations: 0 / 0.7508 GB, free: 11.92 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.016e-06/0.5088, allocations: 0 / 0.7508 GB, free: 11.92 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.000149/0.509, allocations: 310.8 kB / 0.7511 GB, free: 11.61 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.589e-05/0.509, allocations: 4 kB / 0.7511 GB, free: 11.61 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.258e-05/0.509, allocations: 7.938 kB / 0.7511 GB, free: 11.6 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.793e-05/0.5091, allocations: 4 kB / 0.7511 GB, free: 11.59 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.921e-06/0.5091, allocations: 8.016 kB / 0.7511 GB, free: 11.59 MB / 0.6355 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001014/0.5092, allocations: 41.62 kB / 0.7512 GB, free: 11.54 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 2.12e-05/0.5092, allocations: 9.344 kB / 0.7512 GB, free: 11.53 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.022e-06/0.5092, allocations: 0 / 0.7512 GB, free: 11.53 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.93e-05/0.5093, allocations: 0 / 0.7512 GB, free: 11.53 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.532e-05/0.5094, allocations: 4 kB / 0.7512 GB, free: 11.53 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.45e-06/0.5094, allocations: 0 / 0.7512 GB, free: 11.53 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.401e-05/0.5094, allocations: 3.906 kB / 0.7512 GB, free: 11.52 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.982e-06/0.5094, allocations: 0 / 0.7512 GB, free: 11.52 MB / 0.6355 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 (fac,n) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.292e-05/0.5095, allocations: 109 kB / 0.7513 GB, free: 11.41 MB / 0.6355 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001007/0.5096, allocations: 45.64 kB / 0.7513 GB, free: 11.36 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.374e-06/0.5097, allocations: 0 / 0.7513 GB, free: 11.36 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001304/0.5098, allocations: 45.38 kB / 0.7514 GB, free: 11.31 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.631e-06/0.5098, allocations: 3.984 kB / 0.7514 GB, free: 11.31 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.973e-06/0.5098, allocations: 4 kB / 0.7514 GB, free: 11.3 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.185e-06/0.5099, allocations: 0 / 0.7514 GB, free: 11.3 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001216/0.51, allocations: 130.2 kB / 0.7515 GB, free: 11.14 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.737e-06/0.51, allocations: 3.984 kB / 0.7515 GB, free: 11.14 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.64e-05/0.51, allocations: 8.062 kB / 0.7515 GB, free: 11.13 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.845e-06/0.5101, allocations: 0 / 0.7515 GB, free: 11.13 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.424e-06/0.5101, allocations: 0 / 0.7515 GB, free: 11.13 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.669e-06/0.5101, allocations: 4 kB / 0.7515 GB, free: 11.12 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.116e-06/0.5101, allocations: 0 / 0.7515 GB, free: 11.12 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001118/0.5102, allocations: 57.12 kB / 0.7516 GB, free: 11.05 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 5.195e-05/0.5103, allocations: 85.06 kB / 0.7516 GB, free: 10.95 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.288e-05/0.5103, allocations: 0 / 0.7516 GB, free: 10.95 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.547e-05/0.5103, allocations: 4.031 kB / 0.7516 GB, free: 10.95 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.693e-05/0.5104, allocations: 4 kB / 0.7517 GB, free: 10.94 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.898e-06/0.5104, allocations: 3.938 kB / 0.7517 GB, free: 10.94 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 3.916e-05/0.5104, allocations: 75.28 kB / 0.7517 GB, free: 10.86 MB / 0.6355 GB Notification: Performance of sort global known variables: time 2.735e-06/0.5105, allocations: 0 / 0.7517 GB, free: 10.86 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0002622/0.5107, allocations: 11.92 kB / 0.7517 GB, free: 10.85 MB / 0.6355 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005511/0.5113, allocations: 0.6125 MB / 0.7523 GB, free: 10.2 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 7.336e-05/0.5114, allocations: 4 kB / 0.7523 GB, free: 10.2 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 2.063e-06/0.5114, allocations: 0 / 0.7523 GB, free: 10.2 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 2.428e-05/0.5114, allocations: 7.938 kB / 0.7523 GB, free: 10.19 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001235/0.5116, allocations: 4 kB / 0.7524 GB, free: 10.19 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003347/0.5119, allocations: 77.66 kB / 0.7524 GB, free: 10.07 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000365/0.5123, allocations: 0.6847 MB / 0.7531 GB, free: 9.363 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 2.202e-05/0.5123, allocations: 0 / 0.7531 GB, free: 9.363 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.045e-05/0.5124, allocations: 11.44 kB / 0.7531 GB, free: 9.352 MB / 0.6355 GB Notification: Performance of SimCode: time 8.92e-07/0.5124, allocations: 0 / 0.7531 GB, free: 9.352 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03486/0.5473, allocations: 0.568 MB / 0.7537 GB, free: 8.789 MB / 0.6355 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002872/0.5476, allocations: 148.1 kB / 0.7538 GB, free: 8.594 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.342/2.889, allocations: 0 / 0.7538 GB, free: 8.594 MB / 0.6355 GB