Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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.001645/0.001645, allocations: 110 kB / 16.46 MB, free: 6.508 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.001851/0.001851, allocations: 216.2 kB / 19.43 MB, free: 3.648 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.478/1.478, allocations: 230.6 MB / 252.8 MB, free: 9.113 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.003505/0.003505, allocations: 284 kB / 309.1 MB, free: 4 MB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.246/1.246, allocations: 180.9 MB / 0.5333 GB, free: 13.77 MB / 382.1 MB " [Timeout remaining time 179] Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: NcDataReader2 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: BuildingSystems 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.004376/0.004376, allocations: 107 kB / 0.7343 GB, free: 28.46 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2168/0.2212, allocations: 95.33 MB / 0.8274 GB, free: 9.98 MB / 0.5762 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.Factorial): time 0.00184/0.223, allocations: 0.5903 MB / 0.828 GB, free: 9.391 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.0002792/0.2233, allocations: 59.77 kB / 0.828 GB, free: 9.332 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.533e-05/0.2233, allocations: 4 kB / 0.828 GB, free: 9.328 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 1.632e-05/0.2233, allocations: 0 / 0.828 GB, free: 9.328 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 5.38e-06/0.2234, allocations: 0 / 0.828 GB, free: 9.328 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002205/0.2236, allocations: 11.94 kB / 0.828 GB, free: 9.316 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 5.033e-05/0.2236, allocations: 7.938 kB / 0.8281 GB, free: 9.309 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 5.069e-05/0.2237, allocations: 3.984 kB / 0.8281 GB, free: 9.305 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 1.389e-05/0.2237, allocations: 0 / 0.8281 GB, free: 9.305 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 2.502e-05/0.2237, allocations: 4 kB / 0.8281 GB, free: 9.301 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 1.175e-05/0.2237, allocations: 3.984 kB / 0.8281 GB, free: 9.297 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 7.836e-05/0.2238, allocations: 8 kB / 0.8281 GB, free: 9.289 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 9.858e-06/0.2238, allocations: 0 / 0.8281 GB, free: 9.289 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 1.842e-05/0.2238, allocations: 4 kB / 0.8281 GB, free: 9.285 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 9.512e-05/0.2239, allocations: 15.92 kB / 0.8281 GB, free: 9.27 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.2239, allocations: 0 / 0.8281 GB, free: 9.27 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.483e-06/0.2239, allocations: 0 / 0.8281 GB, free: 9.27 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 5.16e-06/0.2239, allocations: 0 / 0.8281 GB, free: 9.27 MB / 0.5762 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.0003869/0.2243, allocations: 319.8 kB / 0.8284 GB, free: 8.906 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.426e-05/0.2244, allocations: 8.031 kB / 0.8284 GB, free: 8.898 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.044e-05/0.2244, allocations: 34.75 kB / 0.8284 GB, free: 8.855 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.831e-05/0.2244, allocations: 0.9375 kB / 0.8284 GB, free: 8.855 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001212/0.2246, allocations: 164.4 kB / 0.8286 GB, free: 8.656 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.232e-05/0.2246, allocations: 384 / 0.8286 GB, free: 8.656 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.492e-06/0.2246, allocations: 4.375 kB / 0.8286 GB, free: 8.652 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001042/0.2247, allocations: 38.19 kB / 0.8286 GB, free: 8.609 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.08e-05/0.2247, allocations: 3.938 kB / 0.8286 GB, free: 8.605 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.735e-06/0.2247, allocations: 0 / 0.8286 GB, free: 8.605 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.639e-06/0.2247, allocations: 0 / 0.8286 GB, free: 8.605 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.151e-05/0.2247, allocations: 7.938 kB / 0.8286 GB, free: 8.598 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001819/0.2249, allocations: 149.7 kB / 0.8288 GB, free: 8.402 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 5.725e-05/0.225, allocations: 22.61 kB / 0.8288 GB, free: 8.371 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.357e-05/0.225, allocations: 12.92 kB / 0.8288 GB, free: 8.355 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001896/0.2252, allocations: 77.11 kB / 0.8289 GB, free: 8.262 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.926e-05/0.2252, allocations: 42.89 kB / 0.8289 GB, free: 8.211 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=2): time 9.52e-07/0.2252, allocations: 0 / 0.8289 GB, free: 8.211 MB / 0.5762 GB Notification: Performance of matching and sorting (n=2): time 0.0001776/0.2254, allocations: 41.64 kB / 0.829 GB, free: 8.164 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.794e-05/0.2255, allocations: 55.53 kB / 0.829 GB, free: 8.098 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.807e-05/0.2255, allocations: 89.86 kB / 0.8291 GB, free: 8 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.655e-05/0.2255, allocations: 25.7 kB / 0.8291 GB, free: 7.969 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 4.915e-05/0.2256, allocations: 80.14 kB / 0.8292 GB, free: 7.887 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 2.75e-05/0.2256, allocations: 11.94 kB / 0.8292 GB, free: 7.875 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.39e-05/0.2256, allocations: 13.72 kB / 0.8292 GB, free: 7.855 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001586/0.2258, allocations: 314.8 kB / 0.8295 GB, free: 7.539 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.299e-05/0.2258, allocations: 0 / 0.8295 GB, free: 7.539 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.199e-05/0.2258, allocations: 8 kB / 0.8295 GB, free: 7.531 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.874e-05/0.2259, allocations: 16.8 kB / 0.8296 GB, free: 7.512 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.2259, allocations: 0 / 0.8296 GB, free: 7.512 MB / 0.5762 GB Notification: Performance of matching and sorting (n=2) (initialization): time 8.014e-05/0.226, allocations: 41.62 kB / 0.8296 GB, free: 7.465 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.458e-05/0.226, allocations: 4 kB / 0.8296 GB, free: 7.461 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.514e-06/0.226, allocations: 3.938 kB / 0.8296 GB, free: 7.457 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.47e-05/0.226, allocations: 0 / 0.8296 GB, free: 7.457 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.271e-05/0.2261, allocations: 4 kB / 0.8296 GB, free: 7.453 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.941e-06/0.2261, allocations: 0 / 0.8296 GB, free: 7.453 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.44e-05/0.2261, allocations: 4.094 kB / 0.8296 GB, free: 7.449 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.808e-06/0.2261, allocations: 8 kB / 0.8296 GB, free: 7.441 MB / 0.5762 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.382e-05/0.2262, allocations: 114.5 kB / 0.8297 GB, free: 7.32 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.806e-06/0.2262, allocations: 0 / 0.8297 GB, free: 7.32 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.771e-05/0.2263, allocations: 48.7 kB / 0.8298 GB, free: 7.27 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.057e-06/0.2263, allocations: 3.984 kB / 0.8298 GB, free: 7.266 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.877e-06/0.2263, allocations: 0 / 0.8298 GB, free: 7.266 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.855e-06/0.2263, allocations: 0 / 0.8298 GB, free: 7.266 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001289/0.2264, allocations: 149.7 kB / 0.8299 GB, free: 7.07 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.02e-07/0.2264, allocations: 4.031 kB / 0.8299 GB, free: 7.066 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.254e-05/0.2264, allocations: 4 kB / 0.8299 GB, free: 7.062 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.753e-06/0.2264, allocations: 0 / 0.8299 GB, free: 7.062 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.008e-05/0.2265, allocations: 7.922 kB / 0.8299 GB, free: 7.055 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.002e-06/0.2265, allocations: 0 / 0.8299 GB, free: 7.055 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.2265, allocations: 0 / 0.8299 GB, free: 7.055 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.603e-05/0.2266, allocations: 65.06 kB / 0.83 GB, free: 6.973 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 4.472e-05/0.2266, allocations: 89.12 kB / 0.8301 GB, free: 6.867 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.396e-05/0.2266, allocations: 7.875 kB / 0.8301 GB, free: 6.859 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.301e-05/0.2266, allocations: 4 kB / 0.8301 GB, free: 6.855 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.721e-05/0.2267, allocations: 4 kB / 0.8301 GB, free: 6.852 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.619e-06/0.2267, allocations: 4 kB / 0.8301 GB, free: 6.848 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 3.504e-05/0.2267, allocations: 75.28 kB / 0.8302 GB, free: 6.773 MB / 0.5762 GB Notification: Performance of sort global known variables: time 6e-08/0.2267, allocations: 0 / 0.8302 GB, free: 6.773 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0001997/0.2269, allocations: 4 kB / 0.8302 GB, free: 6.77 MB / 0.5762 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.0005025/0.2274, allocations: 0.6123 MB / 0.8308 GB, free: 6.125 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 9.144e-05/0.2275, allocations: 11.98 kB / 0.8308 GB, free: 6.113 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.2275, allocations: 0 / 0.8308 GB, free: 6.113 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 1.542e-05/0.2275, allocations: 7.938 kB / 0.8308 GB, free: 6.105 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001349/0.2276, allocations: 3.938 kB / 0.8308 GB, free: 6.102 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003415/0.228, allocations: 122.9 kB / 0.8309 GB, free: 5.941 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003275/0.2283, allocations: 0.669 MB / 0.8316 GB, free: 5.246 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 1.544e-05/0.2283, allocations: 4 kB / 0.8316 GB, free: 5.242 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.225e-05/0.2283, allocations: 7.438 kB / 0.8316 GB, free: 5.234 MB / 0.5762 GB Notification: Performance of SimCode: time 3.01e-07/0.2283, allocations: 0 / 0.8316 GB, free: 5.234 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02439/0.2527, allocations: 1.087 MB / 0.8326 GB, free: 4.262 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.866/8.118, allocations: 7.859 kB / 0.8327 GB, free: 4.258 MB / 0.5762 GB " [Timeout remaining time 652] (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial_res.csv --start-time 0 --stop-time 12.9 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00516 BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_Factorial.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 12.40898411301896] Failed to read output from testmodel.py, exit status != 0: 8.187440178357065 8.210974065 7.982357442 Calling exit ...