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.001296/0.001296, allocations: 110.4 kB / 18.94 MB, free: 2.949 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.001506/0.001506, allocations: 220.3 kB / 22.26 MB, free: 5.125 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.484/1.484, allocations: 230.6 MB / 256 MB, free: 7.977 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.002498/0.002498, allocations: 279.8 kB / 312.7 MB, free: 2.781 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.296/1.296, allocations: 180.6 MB / 0.5369 GB, free: 12.98 MB / 382.1 MB " [Timeout remaining time 178] 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.002869/0.002869, allocations: 99.19 kB / 0.7396 GB, free: 28.11 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1981/0.201, allocations: 95.39 MB / 0.8327 GB, free: 8.602 MB / 0.5762 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.Factorial): time 0.002837/0.2038, allocations: 1.543 MB / 0.8342 GB, free: 7.047 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.0003805/0.2042, allocations: 128.4 kB / 0.8344 GB, free: 6.918 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.912e-05/0.2043, allocations: 0 / 0.8344 GB, free: 6.918 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 2.756e-05/0.2043, allocations: 3.938 kB / 0.8344 GB, free: 6.914 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 4.011e-05/0.2043, allocations: 4 kB / 0.8344 GB, free: 6.91 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002389/0.2046, allocations: 31.89 kB / 0.8344 GB, free: 6.879 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 7.447e-05/0.2046, allocations: 27.92 kB / 0.8344 GB, free: 6.852 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 9.935e-05/0.2047, allocations: 8 kB / 0.8344 GB, free: 6.844 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 5.287e-05/0.2048, allocations: 15.92 kB / 0.8345 GB, free: 6.828 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 5.124e-05/0.2048, allocations: 11.98 kB / 0.8345 GB, free: 6.816 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 1.72e-05/0.2049, allocations: 7.984 kB / 0.8345 GB, free: 6.809 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 6.687e-05/0.2049, allocations: 16 kB / 0.8345 GB, free: 6.793 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 1.812e-05/0.2049, allocations: 15.86 kB / 0.8345 GB, free: 6.777 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 2.718e-05/0.205, allocations: 11.94 kB / 0.8345 GB, free: 6.766 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0001297/0.2051, allocations: 40.11 kB / 0.8346 GB, free: 6.727 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.688e-06/0.2051, allocations: 0 / 0.8346 GB, free: 6.727 MB / 0.5762 GB Notification: Performance of FrontEnd: time 2.144e-06/0.2051, allocations: 0 / 0.8346 GB, free: 6.727 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 7.454e-06/0.2051, allocations: 0 / 0.8346 GB, free: 6.727 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.000476/0.2056, allocations: 266.3 kB / 0.8348 GB, free: 6.434 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.551e-05/0.2056, allocations: 13.34 kB / 0.8348 GB, free: 6.422 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.811e-05/0.2057, allocations: 30.75 kB / 0.8348 GB, free: 6.383 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.839e-05/0.2057, allocations: 4.891 kB / 0.8349 GB, free: 6.379 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001106/0.2058, allocations: 118.5 kB / 0.835 GB, free: 6.238 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.254e-05/0.2058, allocations: 4.375 kB / 0.835 GB, free: 6.234 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.167e-05/0.2058, allocations: 4.375 kB / 0.835 GB, free: 6.23 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000246/0.2061, allocations: 62.22 kB / 0.835 GB, free: 6.164 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.059e-05/0.2061, allocations: 3.938 kB / 0.835 GB, free: 6.16 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.269e-05/0.2061, allocations: 4 kB / 0.835 GB, free: 6.156 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.849e-06/0.2061, allocations: 0 / 0.835 GB, free: 6.156 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001801/0.2063, allocations: 35.95 kB / 0.8351 GB, free: 6.121 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003919/0.2067, allocations: 247.9 kB / 0.8353 GB, free: 5.836 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003052/0.207, allocations: 50.53 kB / 0.8354 GB, free: 5.777 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.799e-05/0.2071, allocations: 26.58 kB / 0.8354 GB, free: 5.75 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 8.015e-05/0.2072, allocations: 7.984 kB / 0.8354 GB, free: 5.742 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.115e-05/0.2072, allocations: 38.56 kB / 0.8354 GB, free: 5.695 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=3): time 1.042e-06/0.2072, allocations: 0 / 0.8354 GB, free: 5.695 MB / 0.5762 GB Notification: Performance of matching and sorting (n=3): time 0.0003753/0.2076, allocations: 93.56 kB / 0.8355 GB, free: 5.598 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.741e-05/0.2076, allocations: 51.41 kB / 0.8356 GB, free: 5.535 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.501e-05/0.2077, allocations: 101.9 kB / 0.8357 GB, free: 5.426 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.612e-05/0.2077, allocations: 25.7 kB / 0.8357 GB, free: 5.395 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 7.346e-05/0.2078, allocations: 88.12 kB / 0.8358 GB, free: 5.305 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 1.732e-05/0.2078, allocations: 11.89 kB / 0.8358 GB, free: 5.293 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.147e-05/0.2078, allocations: 13.72 kB / 0.8358 GB, free: 5.273 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001494/0.208, allocations: 318.8 kB / 0.8361 GB, free: 4.953 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.892e-05/0.2081, allocations: 15.97 kB / 0.8361 GB, free: 4.938 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.881e-05/0.2082, allocations: 19.98 kB / 0.8361 GB, free: 4.918 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001686/0.2083, allocations: 52.75 kB / 0.8362 GB, free: 4.863 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.392e-06/0.2083, allocations: 0 / 0.8362 GB, free: 4.863 MB / 0.5762 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002117/0.2085, allocations: 77.55 kB / 0.8363 GB, free: 4.781 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.497e-05/0.2086, allocations: 6.031 kB / 0.8363 GB, free: 4.777 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.987e-06/0.2086, allocations: 0 / 0.8363 GB, free: 4.777 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.421e-05/0.2086, allocations: 4.516 kB / 0.8363 GB, free: 4.773 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.162e-05/0.2087, allocations: 15.98 kB / 0.8363 GB, free: 4.758 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.53e-06/0.2087, allocations: 0 / 0.8363 GB, free: 4.758 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.628e-05/0.2087, allocations: 15.92 kB / 0.8363 GB, free: 4.742 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.079e-06/0.2087, allocations: 0 / 0.8363 GB, free: 4.742 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 8.68e-05/0.2088, allocations: 114.4 kB / 0.8364 GB, free: 4.621 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.578e-05/0.2088, allocations: 4 kB / 0.8364 GB, free: 4.617 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002742/0.2091, allocations: 89.25 kB / 0.8365 GB, free: 4.516 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.964e-06/0.2091, allocations: 0 / 0.8365 GB, free: 4.516 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.2091, allocations: 4 kB / 0.8365 GB, free: 4.512 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.181e-06/0.2091, allocations: 7.984 kB / 0.8365 GB, free: 4.504 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001621/0.2093, allocations: 128.7 kB / 0.8366 GB, free: 4.336 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.31e-07/0.2093, allocations: 0 / 0.8366 GB, free: 4.336 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.696e-05/0.2094, allocations: 11.98 kB / 0.8366 GB, free: 4.324 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.463e-06/0.2094, allocations: 0 / 0.8366 GB, free: 4.324 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.387e-05/0.2094, allocations: 4 kB / 0.8366 GB, free: 4.32 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.222e-06/0.2094, allocations: 0 / 0.8366 GB, free: 4.32 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.52e-07/0.2094, allocations: 0 / 0.8366 GB, free: 4.32 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002652/0.2096, allocations: 183.4 kB / 0.8368 GB, free: 4.125 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 8.055e-06/0.2097, allocations: 3.953 kB / 0.8368 GB, free: 4.121 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.445e-05/0.2097, allocations: 7.938 kB / 0.8368 GB, free: 4.113 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.3e-05/0.2098, allocations: 7.984 kB / 0.8368 GB, free: 4.105 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.126e-05/0.2098, allocations: 11.98 kB / 0.8369 GB, free: 4.094 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.128e-06/0.2098, allocations: 0 / 0.8369 GB, free: 4.094 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 4.551e-05/0.2099, allocations: 79.28 kB / 0.8369 GB, free: 4.016 MB / 0.5762 GB Notification: Performance of sort global known variables: time 7e-08/0.2099, allocations: 4 kB / 0.8369 GB, free: 4.012 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0002201/0.2101, allocations: 11.94 kB / 0.8369 GB, free: 4 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.0005964/0.2107, allocations: 0.7007 MB / 0.8376 GB, free: 3.27 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0002221/0.2109, allocations: 47.89 kB / 0.8377 GB, free: 3.223 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.2109, allocations: 0 / 0.8377 GB, free: 3.223 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 9.81e-05/0.211, allocations: 27.97 kB / 0.8377 GB, free: 3.195 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000269/0.2113, allocations: 4 kB / 0.8377 GB, free: 3.191 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000449/0.2117, allocations: 143.2 kB / 0.8378 GB, free: 3.012 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003255/0.212, allocations: 0.6807 MB / 0.8385 GB, free: 2.305 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 2.922e-05/0.2121, allocations: 4 kB / 0.8385 GB, free: 2.301 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.202e-05/0.2121, allocations: 15.44 kB / 0.8385 GB, free: 2.285 MB / 0.5762 GB Notification: Performance of SimCode: time 3.11e-07/0.2121, allocations: 0 / 0.8385 GB, free: 2.285 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02834/0.2404, allocations: 1.723 MB / 0.8402 GB, free: 0.6992 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.43/10.67, allocations: 7.516 kB / 0.8402 GB, free: 0.6953 MB / 0.5762 GB " [Timeout remaining time 649] (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: 15.098080585001298] Failed to read output from testmodel.py, exit status != 0: 10.772892028999195 10.790270438 10.581560506 Calling exit ...