Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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.001893/0.001893, 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.002603/0.002603, allocations: 211.8 kB / 22.24 MB, free: 4.859 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.617/1.617, allocations: 230.6 MB / 256 MB, free: 7.785 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo): time 0.002563/0.002563, allocations: 285.7 kB / 312.7 MB, free: 2.613 MB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo): time 1.274/1.274, allocations: 180.6 MB / 0.5369 GB, free: 14.61 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 master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 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.Examples.Factorial,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.Factorial,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_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.002928/0.002928, allocations: 106 kB / 0.7395 GB, free: 28.09 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1911/0.194, allocations: 95.39 MB / 0.8327 GB, free: 8.289 MB / 0.5762 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.Factorial): time 0.003174/0.1972, allocations: 1.535 MB / 0.8342 GB, free: 6.742 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.0004343/0.1976, allocations: 124.4 kB / 0.8343 GB, free: 6.617 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.367e-05/0.1977, allocations: 0 / 0.8343 GB, free: 6.617 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 3.407e-05/0.1977, allocations: 3.984 kB / 0.8343 GB, free: 6.613 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 4.523e-05/0.1978, allocations: 3.938 kB / 0.8343 GB, free: 6.609 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002825/0.198, allocations: 31.91 kB / 0.8343 GB, free: 6.578 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 8.183e-05/0.1981, allocations: 27.92 kB / 0.8343 GB, free: 6.551 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001142/0.1982, allocations: 11.94 kB / 0.8343 GB, free: 6.539 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 4.673e-05/0.1983, allocations: 7.984 kB / 0.8344 GB, free: 6.531 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 5.947e-05/0.1983, allocations: 15.92 kB / 0.8344 GB, free: 6.516 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 1.665e-05/0.1984, allocations: 4 kB / 0.8344 GB, free: 6.512 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 6.916e-05/0.1984, allocations: 15.98 kB / 0.8344 GB, free: 6.496 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 1.812e-05/0.1984, allocations: 11.98 kB / 0.8344 GB, free: 6.484 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 2.499e-05/0.1985, allocations: 7.938 kB / 0.8344 GB, free: 6.477 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0001443/0.1986, allocations: 40.11 kB / 0.8344 GB, free: 6.438 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.1986, allocations: 0 / 0.8344 GB, free: 6.438 MB / 0.5762 GB Notification: Performance of FrontEnd: time 2.043e-06/0.1986, allocations: 0 / 0.8344 GB, free: 6.438 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 6.723e-06/0.1986, allocations: 0 / 0.8344 GB, free: 6.438 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0005339/0.1992, allocations: 268.5 kB / 0.8347 GB, free: 6.145 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.628e-05/0.1992, allocations: 9.344 kB / 0.8347 GB, free: 6.137 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.102e-05/0.1992, allocations: 34.75 kB / 0.8347 GB, free: 6.094 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.879e-05/0.1993, allocations: 8.891 kB / 0.8348 GB, free: 6.086 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001352/0.1994, allocations: 118.5 kB / 0.8349 GB, free: 5.945 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.901e-05/0.1994, allocations: 384 / 0.8349 GB, free: 5.945 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.641e-05/0.1994, allocations: 4.375 kB / 0.8349 GB, free: 5.941 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001933/0.1996, allocations: 58.17 kB / 0.8349 GB, free: 5.879 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.077e-05/0.1996, allocations: 3.938 kB / 0.8349 GB, free: 5.875 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.1e-05/0.1997, allocations: 4 kB / 0.8349 GB, free: 5.871 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.703e-06/0.1997, allocations: 4 kB / 0.8349 GB, free: 5.867 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001898/0.1999, allocations: 39.95 kB / 0.835 GB, free: 5.828 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003915/0.2002, allocations: 236 kB / 0.8352 GB, free: 5.555 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003185/0.2006, allocations: 58.42 kB / 0.8353 GB, free: 5.488 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001019/0.2007, allocations: 30.56 kB / 0.8353 GB, free: 5.457 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 8.533e-05/0.2008, allocations: 4 kB / 0.8353 GB, free: 5.453 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.363e-05/0.2008, allocations: 30.56 kB / 0.8353 GB, free: 5.414 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=3): time 9.42e-07/0.2008, allocations: 0 / 0.8353 GB, free: 5.414 MB / 0.5762 GB Notification: Performance of matching and sorting (n=3): time 0.0003847/0.2012, allocations: 97.62 kB / 0.8354 GB, free: 5.312 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.189e-05/0.2012, allocations: 55.41 kB / 0.8355 GB, free: 5.246 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.369e-05/0.2013, allocations: 110 kB / 0.8356 GB, free: 5.129 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.736e-05/0.2013, allocations: 25.7 kB / 0.8356 GB, free: 5.098 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 5.53e-05/0.2014, allocations: 84.14 kB / 0.8357 GB, free: 5.012 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 1.403e-05/0.2014, allocations: 7.891 kB / 0.8357 GB, free: 5.004 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.667e-05/0.2014, allocations: 17.72 kB / 0.8357 GB, free: 4.98 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001364/0.2015, allocations: 314.8 kB / 0.836 GB, free: 4.664 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.95e-05/0.2016, allocations: 19.98 kB / 0.836 GB, free: 4.645 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.036e-05/0.2017, allocations: 23.97 kB / 0.836 GB, free: 4.621 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000161/0.2019, allocations: 44.77 kB / 0.8361 GB, free: 4.574 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.2019, allocations: 0 / 0.8361 GB, free: 4.574 MB / 0.5762 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002139/0.2021, allocations: 81.59 kB / 0.8362 GB, free: 4.488 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.41e-05/0.2021, allocations: 4 kB / 0.8362 GB, free: 4.484 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.248e-06/0.2021, allocations: 0 / 0.8362 GB, free: 4.484 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.542e-05/0.2021, allocations: 7.938 kB / 0.8362 GB, free: 4.477 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.872e-05/0.2022, allocations: 11.98 kB / 0.8362 GB, free: 4.465 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.982e-06/0.2022, allocations: 0 / 0.8362 GB, free: 4.465 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.404e-05/0.2023, allocations: 4 kB / 0.8362 GB, free: 4.461 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.009e-06/0.2023, allocations: 0 / 0.8362 GB, free: 4.461 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 (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.0001034/0.2024, allocations: 126.4 kB / 0.8363 GB, free: 4.328 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.247e-05/0.2024, allocations: 0 / 0.8363 GB, free: 4.328 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002715/0.2027, allocations: 89.31 kB / 0.8364 GB, free: 4.227 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.823e-06/0.2027, allocations: 0 / 0.8364 GB, free: 4.227 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.019e-06/0.2027, allocations: 0 / 0.8364 GB, free: 4.227 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.575e-06/0.2027, allocations: 0 / 0.8364 GB, free: 4.227 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001735/0.2029, allocations: 136.7 kB / 0.8365 GB, free: 4.051 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.2029, allocations: 0 / 0.8365 GB, free: 4.051 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.468e-05/0.2029, allocations: 15.92 kB / 0.8365 GB, free: 4.035 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.073e-06/0.2029, allocations: 3.938 kB / 0.8365 GB, free: 4.031 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.496e-06/0.2029, allocations: 0 / 0.8365 GB, free: 4.031 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.2029, allocations: 0 / 0.8365 GB, free: 4.031 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.2029, allocations: 0 / 0.8365 GB, free: 4.031 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002901/0.2032, allocations: 183.4 kB / 0.8367 GB, free: 3.836 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 8.736e-06/0.2032, allocations: 3.953 kB / 0.8367 GB, free: 3.832 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.597e-05/0.2033, allocations: 4 kB / 0.8367 GB, free: 3.828 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.069e-05/0.2033, allocations: 4 kB / 0.8367 GB, free: 3.824 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.885e-05/0.2034, allocations: 11.98 kB / 0.8367 GB, free: 3.812 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.867e-06/0.2034, allocations: 0 / 0.8367 GB, free: 3.812 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 5.008e-05/0.2034, allocations: 83.69 kB / 0.8368 GB, free: 3.73 MB / 0.5762 GB Notification: Performance of sort global known variables: time 9e-08/0.2034, allocations: 0 / 0.8368 GB, free: 3.73 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.000237/0.2037, allocations: 12 kB / 0.8368 GB, free: 3.719 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.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.0007505/0.2044, allocations: 0.7086 MB / 0.8375 GB, free: 2.98 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0002386/0.2047, allocations: 47.95 kB / 0.8376 GB, free: 2.934 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.2047, allocations: 0 / 0.8376 GB, free: 2.934 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0001024/0.2048, allocations: 31.84 kB / 0.8376 GB, free: 2.902 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003222/0.2051, allocations: 8 kB / 0.8376 GB, free: 2.895 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004756/0.2056, allocations: 143.2 kB / 0.8377 GB, free: 2.715 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.255e-05/0.2056, allocations: 59.34 kB / 0.8378 GB, free: 2.637 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 3.973e-05/0.2057, allocations: 4 kB / 0.8378 GB, free: 2.633 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.405e-05/0.2057, allocations: 15.42 kB / 0.8378 GB, free: 2.617 MB / 0.5762 GB Notification: Performance of SimCode: time 4.71e-07/0.2057, allocations: 0 / 0.8378 GB, free: 2.617 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02841/0.2341, allocations: 2.14 MB / 0.8399 GB, free: 0.6133 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.19/11.42, allocations: 9.234 kB / 0.8399 GB, free: 0.6094 MB / 0.5762 GB " [Timeout remaining time 648] (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial_res.csv --start-time 0 --stop-time 13 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0052 BuildingSystems_BuildingSystems_Utilities_Math_Examples_Factorial.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 16.045625609811395] Failed to read output from testmodel.py, exit status != 0: 11.528577433899045 11.545058706 11.343358029000001 Calling exit ...