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.001253/0.001253, allocations: 101.5 kB / 19.73 MB, free: 2.23 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.00148/0.00148, allocations: 214.8 kB / 23.04 MB, free: 5.07 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.399/1.399, allocations: 230.6 MB / 256.8 MB, free: 7.988 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.002518/0.002518, allocations: 291.6 kB / 313.5 MB, free: 2.793 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.204/1.204, allocations: 180.6 MB / 0.5377 GB, free: 13 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.Factorial,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_Factorial",fmuType="cs",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.002853/0.002853, allocations: 101.8 kB / 0.7404 GB, free: 28.29 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.197/0.1998, allocations: 95.38 MB / 0.8335 GB, free: 8.609 MB / 0.5762 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.Factorial): time 0.003017/0.2029, allocations: 1.561 MB / 0.835 GB, free: 7.039 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.0003882/0.2032, allocations: 128.4 kB / 0.8351 GB, free: 6.91 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.43e-05/0.2033, allocations: 0 / 0.8351 GB, free: 6.91 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 2.968e-05/0.2033, allocations: 0 / 0.8351 GB, free: 6.91 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 4.233e-05/0.2034, allocations: 7.922 kB / 0.8352 GB, free: 6.902 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002386/0.2036, allocations: 27.91 kB / 0.8352 GB, free: 6.875 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 7.665e-05/0.2037, allocations: 27.98 kB / 0.8352 GB, free: 6.848 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 9.523e-05/0.2038, allocations: 11.94 kB / 0.8352 GB, free: 6.836 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 5.007e-05/0.2038, allocations: 15.92 kB / 0.8352 GB, free: 6.82 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 5.341e-05/0.2039, allocations: 15.97 kB / 0.8352 GB, free: 6.805 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 1.376e-05/0.2039, allocations: 4 kB / 0.8353 GB, free: 6.801 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 5.997e-05/0.2039, allocations: 12 kB / 0.8353 GB, free: 6.789 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 2.215e-05/0.204, allocations: 15.92 kB / 0.8353 GB, free: 6.773 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 2.98e-05/0.204, allocations: 11.94 kB / 0.8353 GB, free: 6.762 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0001213/0.2041, allocations: 40.09 kB / 0.8353 GB, free: 6.723 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.017e-06/0.2041, allocations: 0 / 0.8353 GB, free: 6.723 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.192e-06/0.2041, allocations: 0 / 0.8353 GB, free: 6.723 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 9.007e-06/0.2041, allocations: 4 kB / 0.8353 GB, free: 6.719 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.00046/0.2046, allocations: 262.3 kB / 0.8356 GB, free: 6.43 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.216e-05/0.2046, allocations: 9.344 kB / 0.8356 GB, free: 6.422 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.419e-05/0.2046, allocations: 4.188 kB / 0.8356 GB, free: 6.418 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.178e-05/0.2047, allocations: 34.75 kB / 0.8356 GB, free: 6.375 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.786e-05/0.2047, allocations: 4.891 kB / 0.8356 GB, free: 6.371 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001023/0.2048, allocations: 106.5 kB / 0.8357 GB, free: 6.242 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.227e-05/0.2048, allocations: 8.359 kB / 0.8357 GB, free: 6.234 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.513e-05/0.2048, allocations: 4.375 kB / 0.8357 GB, free: 6.23 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001899/0.205, allocations: 65.92 kB / 0.8358 GB, free: 6.16 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.105e-06/0.205, allocations: 0 / 0.8358 GB, free: 6.16 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.34e-05/0.2051, allocations: 4 kB / 0.8358 GB, free: 6.156 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.489e-06/0.2051, allocations: 0 / 0.8358 GB, free: 6.156 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001792/0.2052, allocations: 35.95 kB / 0.8358 GB, free: 6.121 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003844/0.2056, allocations: 244 kB / 0.8361 GB, free: 5.84 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003214/0.2059, allocations: 54.47 kB / 0.8361 GB, free: 5.777 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001005/0.206, allocations: 30.56 kB / 0.8362 GB, free: 5.746 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 7.615e-05/0.2061, allocations: 4 kB / 0.8362 GB, free: 5.742 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.927e-05/0.2062, allocations: 38.56 kB / 0.8362 GB, free: 5.695 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=3): time 9.02e-07/0.2062, allocations: 0 / 0.8362 GB, free: 5.695 MB / 0.5762 GB Notification: Performance of matching and sorting (n=3): time 0.0003753/0.2065, allocations: 89.62 kB / 0.8363 GB, free: 5.602 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.145e-05/0.2066, allocations: 55.34 kB / 0.8363 GB, free: 5.535 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.533e-05/0.2067, allocations: 102 kB / 0.8364 GB, free: 5.426 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.668e-05/0.2067, allocations: 29.64 kB / 0.8365 GB, free: 5.391 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 5.644e-05/0.2067, allocations: 88.12 kB / 0.8365 GB, free: 5.301 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 1.43e-05/0.2067, allocations: 11.89 kB / 0.8366 GB, free: 5.289 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.255e-05/0.2068, allocations: 13.72 kB / 0.8366 GB, free: 5.27 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001407/0.2069, allocations: 326.8 kB / 0.8369 GB, free: 4.941 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.686e-05/0.207, allocations: 11.98 kB / 0.8369 GB, free: 4.93 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.235e-05/0.2071, allocations: 20.17 kB / 0.8369 GB, free: 4.91 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001765/0.2073, allocations: 52.89 kB / 0.837 GB, free: 4.855 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.2073, allocations: 0 / 0.837 GB, free: 4.855 MB / 0.5762 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002126/0.2075, allocations: 77.61 kB / 0.837 GB, free: 4.773 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.302e-05/0.2075, allocations: 7.938 kB / 0.837 GB, free: 4.766 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.377e-06/0.2075, allocations: 7.984 kB / 0.8371 GB, free: 4.758 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.085e-05/0.2075, allocations: 0 / 0.8371 GB, free: 4.758 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.626e-05/0.2076, allocations: 8 kB / 0.8371 GB, free: 4.75 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.073e-06/0.2076, allocations: 3.984 kB / 0.8371 GB, free: 4.746 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.531e-05/0.2076, allocations: 8 kB / 0.8371 GB, free: 4.738 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.659e-06/0.2077, allocations: 0 / 0.8371 GB, free: 4.738 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 9.282e-05/0.2077, allocations: 114.4 kB / 0.8372 GB, free: 4.617 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.718e-05/0.2078, allocations: 7.984 kB / 0.8372 GB, free: 4.609 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002587/0.208, allocations: 81.33 kB / 0.8373 GB, free: 4.516 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.533e-06/0.208, allocations: 0 / 0.8373 GB, free: 4.516 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.098e-06/0.208, allocations: 0 / 0.8373 GB, free: 4.516 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.338e-06/0.208, allocations: 8 kB / 0.8373 GB, free: 4.508 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001685/0.2082, allocations: 128.7 kB / 0.8374 GB, free: 4.34 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.196e-06/0.2082, allocations: 7.922 kB / 0.8374 GB, free: 4.332 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.031e-05/0.2083, allocations: 8 kB / 0.8374 GB, free: 4.324 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.934e-06/0.2083, allocations: 0 / 0.8374 GB, free: 4.324 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.264e-05/0.2083, allocations: 7.984 kB / 0.8374 GB, free: 4.316 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.62e-07/0.2083, allocations: 0 / 0.8374 GB, free: 4.316 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.81e-07/0.2083, allocations: 0 / 0.8374 GB, free: 4.316 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002838/0.2086, allocations: 183.5 kB / 0.8376 GB, free: 4.121 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 7.865e-06/0.2086, allocations: 3.953 kB / 0.8376 GB, free: 4.117 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.232e-05/0.2086, allocations: 0 / 0.8376 GB, free: 4.117 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.307e-05/0.2087, allocations: 7.984 kB / 0.8376 GB, free: 4.109 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.238e-05/0.2087, allocations: 11.98 kB / 0.8376 GB, free: 4.098 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.788e-06/0.2087, allocations: 0 / 0.8376 GB, free: 4.098 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 4.261e-05/0.2088, allocations: 79.28 kB / 0.8377 GB, free: 4.02 MB / 0.5762 GB Notification: Performance of sort global known variables: time 7e-08/0.2088, allocations: 0 / 0.8377 GB, free: 4.02 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0002144/0.209, allocations: 15.94 kB / 0.8377 GB, free: 4.004 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.0006405/0.2096, allocations: 0.7048 MB / 0.8384 GB, free: 3.27 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0002482/0.2099, allocations: 59.91 kB / 0.8385 GB, free: 3.211 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.2099, allocations: 0 / 0.8385 GB, free: 3.211 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 9.964e-05/0.21, allocations: 23.92 kB / 0.8385 GB, free: 3.188 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002715/0.2103, allocations: 4 kB / 0.8385 GB, free: 3.184 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004358/0.2107, allocations: 147.2 kB / 0.8386 GB, free: 3 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003318/0.211, allocations: 0.6846 MB / 0.8393 GB, free: 2.289 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 2.591e-05/0.2111, allocations: 4 kB / 0.8393 GB, free: 2.285 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.593e-05/0.2111, allocations: 11.44 kB / 0.8393 GB, free: 2.273 MB / 0.5762 GB Notification: Performance of SimCode: time 2.81e-07/0.2111, allocations: 0 / 0.8393 GB, free: 2.273 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0221/0.2332, allocations: 1.734 MB / 0.841 GB, free: 0.6875 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.91/11.14, allocations: 4.562 kB / 0.841 GB, free: 0.6836 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Examples_Factorial_fmu --startTime=0 --stopTime=13 --stepSize=0.0052 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Math_Examples_Factorial.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 15.324697047006339] Failed to read output from testmodel.py, exit status != 0: 11.305067154986318 11.333966589 11.124829329 Calling exit ...