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.001553/0.001553, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.001844/0.001844, allocations: 216.4 kB / 22.25 MB, free: 5.262 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.502/1.502, allocations: 230.6 MB / 256 MB, free: 7.809 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.002548/0.002548, allocations: 283.5 kB / 312.7 MB, free: 2.719 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.255/1.255, allocations: 180.6 MB / 0.5369 GB, free: 14.45 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.002913/0.002913, allocations: 97.58 kB / 0.7395 GB, free: 28.25 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.194/0.1969, allocations: 95.38 MB / 0.8327 GB, free: 8.32 MB / 0.5763 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.Factorial): time 0.00283/0.1997, allocations: 1.543 MB / 0.8342 GB, free: 6.766 MB / 0.5763 GB Notification: Performance of NFInst.instExpressions: time 0.0003906/0.2001, allocations: 120.5 kB / 0.8343 GB, free: 6.645 MB / 0.5763 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.661e-05/0.2002, allocations: 4 kB / 0.8343 GB, free: 6.641 MB / 0.5763 GB Notification: Performance of NFTyping.typeComponents: time 2.774e-05/0.2002, allocations: 0 / 0.8343 GB, free: 6.641 MB / 0.5763 GB Notification: Performance of NFTyping.typeBindings: time 4.277e-05/0.2002, allocations: 7.922 kB / 0.8343 GB, free: 6.633 MB / 0.5763 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002497/0.2005, allocations: 23.92 kB / 0.8343 GB, free: 6.609 MB / 0.5763 GB Notification: Performance of NFFlatten.flatten: time 7.802e-05/0.2006, allocations: 31.92 kB / 0.8343 GB, free: 6.578 MB / 0.5763 GB Notification: Performance of NFFlatten.resolveConnections: time 9.826e-05/0.2006, allocations: 3.984 kB / 0.8343 GB, free: 6.574 MB / 0.5763 GB Notification: Performance of NFEvalConstants.evaluate: time 4.059e-05/0.2007, allocations: 15.98 kB / 0.8344 GB, free: 6.559 MB / 0.5763 GB Notification: Performance of NFSimplifyModel.simplify: time 5.205e-05/0.2007, allocations: 15.92 kB / 0.8344 GB, free: 6.543 MB / 0.5763 GB Notification: Performance of NFPackage.collectConstants: time 1.822e-05/0.2008, allocations: 4 kB / 0.8344 GB, free: 6.539 MB / 0.5763 GB Notification: Performance of NFFlatten.collectFunctions: time 6.234e-05/0.2008, allocations: 11.98 kB / 0.8344 GB, free: 6.527 MB / 0.5763 GB Notification: Performance of NFScalarize.scalarize: time 1.537e-05/0.2008, allocations: 8 kB / 0.8344 GB, free: 6.52 MB / 0.5763 GB Notification: Performance of NFVerifyModel.verify: time 2.272e-05/0.2009, allocations: 7.938 kB / 0.8344 GB, free: 6.512 MB / 0.5763 GB Notification: Performance of NFConvertDAE.convert: time 0.0001197/0.201, allocations: 48.03 kB / 0.8344 GB, free: 6.465 MB / 0.5763 GB Notification: Performance of FrontEnd - DAE generated: time 4.579e-06/0.201, allocations: 0 / 0.8344 GB, free: 6.465 MB / 0.5763 GB Notification: Performance of FrontEnd: time 1.563e-06/0.201, allocations: 0 / 0.8344 GB, free: 6.465 MB / 0.5763 GB Notification: Performance of Transformations before backend: time 9.057e-06/0.201, allocations: 0 / 0.8344 GB, free: 6.465 MB / 0.5763 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.0004595/0.2015, allocations: 270.3 kB / 0.8347 GB, free: 6.168 MB / 0.5763 GB Notification: Performance of prepare preOptimizeDAE: time 3.827e-05/0.2015, allocations: 9.344 kB / 0.8347 GB, free: 6.16 MB / 0.5763 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.978e-05/0.2015, allocations: 34.75 kB / 0.8347 GB, free: 6.117 MB / 0.5763 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.518e-05/0.2016, allocations: 4.891 kB / 0.8348 GB, free: 6.113 MB / 0.5763 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001075/0.2017, allocations: 110.5 kB / 0.8349 GB, free: 5.98 MB / 0.5763 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.521e-05/0.2017, allocations: 8.312 kB / 0.8349 GB, free: 5.973 MB / 0.5763 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.378e-05/0.2017, allocations: 8.312 kB / 0.8349 GB, free: 5.965 MB / 0.5763 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001755/0.2019, allocations: 54.23 kB / 0.8349 GB, free: 5.906 MB / 0.5763 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.072e-05/0.2019, allocations: 3.938 kB / 0.8349 GB, free: 5.902 MB / 0.5763 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.047e-06/0.2019, allocations: 3.938 kB / 0.8349 GB, free: 5.898 MB / 0.5763 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.031e-06/0.2019, allocations: 4 kB / 0.8349 GB, free: 5.895 MB / 0.5763 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001782/0.2021, allocations: 39.95 kB / 0.835 GB, free: 5.855 MB / 0.5763 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003856/0.2025, allocations: 240 kB / 0.8352 GB, free: 5.578 MB / 0.5763 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003089/0.2028, allocations: 50.55 kB / 0.8353 GB, free: 5.52 MB / 0.5763 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001026/0.2029, allocations: 34.5 kB / 0.8353 GB, free: 5.484 MB / 0.5763 GB Notification: Performance of preOpt evalFunc (simulation): time 8.318e-05/0.203, allocations: 7.984 kB / 0.8353 GB, free: 5.477 MB / 0.5763 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.264e-05/0.203, allocations: 30.56 kB / 0.8353 GB, free: 5.438 MB / 0.5763 GB Notification: Performance of pre-optimization done (n=3): time 1.062e-06/0.203, allocations: 0 / 0.8353 GB, free: 5.438 MB / 0.5763 GB Notification: Performance of matching and sorting (n=3): time 0.0003959/0.2034, allocations: 93.62 kB / 0.8354 GB, free: 5.34 MB / 0.5763 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.291e-05/0.2034, allocations: 55.41 kB / 0.8355 GB, free: 5.273 MB / 0.5763 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.459e-05/0.2035, allocations: 101.8 kB / 0.8356 GB, free: 5.164 MB / 0.5763 GB Notification: Performance of collectPreVariables (initialization): time 1.829e-05/0.2035, allocations: 25.7 kB / 0.8356 GB, free: 5.133 MB / 0.5763 GB Notification: Performance of collectInitialEqns (initialization): time 4.977e-05/0.2036, allocations: 84.14 kB / 0.8357 GB, free: 5.047 MB / 0.5763 GB Notification: Performance of collectInitialBindings (initialization): time 1.541e-05/0.2036, allocations: 7.953 kB / 0.8357 GB, free: 5.039 MB / 0.5763 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.075e-05/0.2036, allocations: 21.7 kB / 0.8357 GB, free: 5.012 MB / 0.5763 GB Notification: Performance of setup shared object (initialization): time 0.0001366/0.2038, allocations: 310.8 kB / 0.836 GB, free: 4.699 MB / 0.5763 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.718e-05/0.2039, allocations: 23.92 kB / 0.836 GB, free: 4.676 MB / 0.5763 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.134e-05/0.2039, allocations: 19.97 kB / 0.836 GB, free: 4.656 MB / 0.5763 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001731/0.2041, allocations: 48.77 kB / 0.8361 GB, free: 4.605 MB / 0.5763 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.482e-06/0.2041, allocations: 0 / 0.8361 GB, free: 4.605 MB / 0.5763 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002194/0.2043, allocations: 81.59 kB / 0.8362 GB, free: 4.52 MB / 0.5763 GB Notification: Performance of prepare postOptimizeDAE: time 1.327e-05/0.2043, allocations: 4 kB / 0.8362 GB, free: 4.516 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.35e-06/0.2044, allocations: 4 kB / 0.8362 GB, free: 4.512 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.148e-05/0.2044, allocations: 0 / 0.8362 GB, free: 4.512 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.307e-05/0.2044, allocations: 15.98 kB / 0.8362 GB, free: 4.496 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.609e-06/0.2045, allocations: 0 / 0.8362 GB, free: 4.496 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.435e-05/0.2045, allocations: 7.938 kB / 0.8362 GB, free: 4.488 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.945e-06/0.2045, allocations: 3.984 kB / 0.8362 GB, free: 4.484 MB / 0.5763 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.151e-05/0.2046, allocations: 122.4 kB / 0.8363 GB, free: 4.355 MB / 0.5763 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.32e-05/0.2046, allocations: 0 / 0.8363 GB, free: 4.355 MB / 0.5763 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002637/0.2049, allocations: 85.27 kB / 0.8364 GB, free: 4.258 MB / 0.5763 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-06/0.2049, allocations: 0 / 0.8364 GB, free: 4.258 MB / 0.5763 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.437e-06/0.2049, allocations: 4 kB / 0.8364 GB, free: 4.254 MB / 0.5763 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.455e-06/0.2049, allocations: 0 / 0.8364 GB, free: 4.254 MB / 0.5763 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001702/0.2051, allocations: 136.7 kB / 0.8365 GB, free: 4.078 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.203e-06/0.2051, allocations: 0 / 0.8365 GB, free: 4.078 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.765e-05/0.2052, allocations: 11.98 kB / 0.8365 GB, free: 4.066 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.743e-06/0.2052, allocations: 3.938 kB / 0.8365 GB, free: 4.062 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.662e-06/0.2052, allocations: 0 / 0.8365 GB, free: 4.062 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.2052, allocations: 0 / 0.8365 GB, free: 4.062 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.2052, allocations: 3.938 kB / 0.8365 GB, free: 4.059 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002838/0.2054, allocations: 184 kB / 0.8367 GB, free: 3.863 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 9.738e-06/0.2055, allocations: 7.953 kB / 0.8367 GB, free: 3.855 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.258e-05/0.2055, allocations: 48 / 0.8367 GB, free: 3.855 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.854e-05/0.2056, allocations: 11.97 kB / 0.8367 GB, free: 3.844 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.719e-05/0.2056, allocations: 8 kB / 0.8367 GB, free: 3.836 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.911e-06/0.2056, allocations: 3.984 kB / 0.8367 GB, free: 3.832 MB / 0.5763 GB Notification: Performance of sorting global known variables: time 4.683e-05/0.2057, allocations: 79.28 kB / 0.8368 GB, free: 3.754 MB / 0.5763 GB Notification: Performance of sort global known variables: time 7e-08/0.2057, allocations: 0 / 0.8368 GB, free: 3.754 MB / 0.5763 GB Notification: Performance of remove unused functions: time 0.0002224/0.2059, allocations: 8 kB / 0.8368 GB, free: 3.746 MB / 0.5763 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.0006371/0.2065, allocations: 0.7085 MB / 0.8375 GB, free: 3.008 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.0002353/0.2068, allocations: 43.95 kB / 0.8376 GB, free: 2.965 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.2068, allocations: 0 / 0.8376 GB, free: 2.965 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.0001032/0.2069, allocations: 23.97 kB / 0.8376 GB, free: 2.941 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003022/0.2072, allocations: 11.94 kB / 0.8376 GB, free: 2.93 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004714/0.2076, allocations: 143.2 kB / 0.8377 GB, free: 2.75 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.979e-05/0.2077, allocations: 63.34 kB / 0.8378 GB, free: 2.668 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 3.176e-05/0.2077, allocations: 4 kB / 0.8378 GB, free: 2.664 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.543e-05/0.2078, allocations: 15.42 kB / 0.8378 GB, free: 2.648 MB / 0.5763 GB Notification: Performance of SimCode: time 3.31e-07/0.2078, allocations: 4 kB / 0.8378 GB, free: 2.645 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0299/0.2377, allocations: 2.149 MB / 0.8399 GB, free: 0.6328 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.91/11.15, allocations: 3.172 kB / 0.8399 GB, free: 0.6328 MB / 0.5763 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 sys.exit(0), Time elapsed: 15.450818072073162] Failed to read output from testmodel.py, exit status != 0: 11.250212900806218 11.267388448 11.063134092 Calling exit ...