Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.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.001834/0.001834, allocations: 100.3 kB / 19.69 MB, free: 1.805 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.002319/0.002319, allocations: 212.5 kB / 22.99 MB, free: 4.605 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.473/1.473, allocations: 230.6 MB / 256.8 MB, free: 7.805 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA master/package.mo): time 0.9771/0.9771, allocations: 149.9 MB / 463 MB, free: 10.39 MB / 366.1 MB " [Timeout remaining time 179] Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 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(IBPSA.Utilities.Math.Examples.Factorial,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Utilities.Math.Examples.Factorial,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: IBPSA 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.002297/0.002297, allocations: 66.78 kB / 0.6411 GB, free: 10.16 MB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.18/0.1823, allocations: 89.18 MB / 0.7282 GB, free: 1.047 MB / 0.545 GB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Math.Examples.Factorial): time 0.00306/0.1853, allocations: 1.53 MB / 0.7297 GB, free: 15.5 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0003822/0.1857, allocations: 119.7 kB / 0.7298 GB, free: 15.39 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.396e-05/0.1857, allocations: 4 kB / 0.7298 GB, free: 15.38 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 2.64e-05/0.1858, allocations: 3.938 kB / 0.7298 GB, free: 15.38 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 4.102e-05/0.1858, allocations: 3.938 kB / 0.7298 GB, free: 15.38 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002232/0.186, allocations: 31.95 kB / 0.7298 GB, free: 15.34 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 6.828e-05/0.1861, allocations: 27.92 kB / 0.7298 GB, free: 15.32 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 8.168e-05/0.1862, allocations: 4 kB / 0.7298 GB, free: 15.31 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 4.547e-05/0.1862, allocations: 19.92 kB / 0.7299 GB, free: 15.29 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 4.892e-05/0.1863, allocations: 15.97 kB / 0.7299 GB, free: 15.28 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.2e-05/0.1863, allocations: 0 / 0.7299 GB, free: 15.28 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 6.122e-05/0.1864, allocations: 12 kB / 0.7299 GB, free: 15.27 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 1.344e-05/0.1864, allocations: 7.922 kB / 0.7299 GB, free: 15.26 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 2.407e-05/0.1864, allocations: 11.94 kB / 0.7299 GB, free: 15.25 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0001552/0.1865, allocations: 36.11 kB / 0.7299 GB, free: 15.21 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 6.382e-06/0.1866, allocations: 7.984 kB / 0.73 GB, free: 15.2 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.543e-06/0.1866, allocations: 4 kB / 0.73 GB, free: 15.2 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 5.65e-06/0.1866, allocations: 0 / 0.73 GB, free: 15.2 MB / 0.5606 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.0004588/0.187, allocations: 270.2 kB / 0.7302 GB, free: 14.9 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.546e-05/0.1871, allocations: 8.031 kB / 0.7302 GB, free: 14.89 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.48e-05/0.1871, allocations: 42.75 kB / 0.7303 GB, free: 14.84 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.233e-05/0.1871, allocations: 0.9375 kB / 0.7303 GB, free: 14.84 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001007/0.1872, allocations: 110.5 kB / 0.7304 GB, free: 14.71 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.736e-05/0.1873, allocations: 384 / 0.7304 GB, free: 14.71 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.906e-06/0.1873, allocations: 384 / 0.7304 GB, free: 14.71 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001889/0.1874, allocations: 66.22 kB / 0.7304 GB, free: 14.64 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.568e-06/0.1875, allocations: 3.938 kB / 0.7304 GB, free: 14.64 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.476e-06/0.1875, allocations: 0 / 0.7304 GB, free: 14.64 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.429e-06/0.1875, allocations: 0 / 0.7304 GB, free: 14.64 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001904/0.1877, allocations: 51.83 kB / 0.7305 GB, free: 14.59 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003722/0.188, allocations: 224 kB / 0.7307 GB, free: 14.32 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003176/0.1884, allocations: 54.53 kB / 0.7308 GB, free: 14.26 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.904e-05/0.1884, allocations: 32.89 kB / 0.7308 GB, free: 14.23 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 7.906e-05/0.1885, allocations: 4 kB / 0.7308 GB, free: 14.22 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.295e-05/0.1886, allocations: 34.56 kB / 0.7308 GB, free: 14.18 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=3): time 1.132e-06/0.1886, allocations: 3.938 kB / 0.7308 GB, free: 14.18 MB / 0.5606 GB Notification: Performance of matching and sorting (n=3): time 0.0003884/0.189, allocations: 89.62 kB / 0.7309 GB, free: 14.08 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.768e-05/0.189, allocations: 55.41 kB / 0.731 GB, free: 14.02 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.47e-05/0.1891, allocations: 101.8 kB / 0.7311 GB, free: 13.91 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.64e-05/0.1891, allocations: 29.7 kB / 0.7311 GB, free: 13.87 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 5.688e-05/0.1892, allocations: 88.12 kB / 0.7312 GB, free: 13.78 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 2.013e-05/0.1892, allocations: 7.953 kB / 0.7312 GB, free: 13.77 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.669e-05/0.1892, allocations: 13.72 kB / 0.7312 GB, free: 13.75 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.000132/0.1893, allocations: 314.8 kB / 0.7315 GB, free: 13.44 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.347e-05/0.1894, allocations: 19.97 kB / 0.7315 GB, free: 13.42 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.195e-05/0.1895, allocations: 15.98 kB / 0.7315 GB, free: 13.4 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001758/0.1897, allocations: 64.62 kB / 0.7316 GB, free: 13.34 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.1897, allocations: 0 / 0.7316 GB, free: 13.34 MB / 0.5606 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002151/0.1899, allocations: 70.12 kB / 0.7317 GB, free: 13.26 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.426e-05/0.1899, allocations: 8 kB / 0.7317 GB, free: 13.25 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.998e-06/0.1899, allocations: 0 / 0.7317 GB, free: 13.25 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.582e-05/0.1899, allocations: 3.984 kB / 0.7317 GB, free: 13.25 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.033e-05/0.19, allocations: 8 kB / 0.7317 GB, free: 13.24 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.198e-06/0.19, allocations: 0 / 0.7317 GB, free: 13.24 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.807e-05/0.1901, allocations: 8.031 kB / 0.7317 GB, free: 13.23 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.929e-06/0.1901, allocations: 7.984 kB / 0.7317 GB, free: 13.23 MB / 0.5606 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.526e-05/0.1902, allocations: 113.8 kB / 0.7318 GB, free: 13.11 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.186e-05/0.1902, allocations: 3.953 kB / 0.7318 GB, free: 13.1 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002767/0.1905, allocations: 93.2 kB / 0.7319 GB, free: 13 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.571e-06/0.1905, allocations: 3.984 kB / 0.7319 GB, free: 13 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.838e-06/0.1905, allocations: 0 / 0.7319 GB, free: 13 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.805e-06/0.1905, allocations: 0 / 0.7319 GB, free: 13 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001644/0.1907, allocations: 132.7 kB / 0.732 GB, free: 12.82 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.976e-06/0.1907, allocations: 8 kB / 0.732 GB, free: 12.82 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.697e-05/0.1908, allocations: 11.98 kB / 0.732 GB, free: 12.8 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.195e-06/0.1908, allocations: 0 / 0.732 GB, free: 12.8 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.643e-06/0.1908, allocations: 0 / 0.732 GB, free: 12.8 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.452e-06/0.1908, allocations: 0 / 0.732 GB, free: 12.8 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.1908, allocations: 0 / 0.732 GB, free: 12.8 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002801/0.1911, allocations: 171.4 kB / 0.7322 GB, free: 12.62 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 1.244e-05/0.1911, allocations: 11.98 kB / 0.7322 GB, free: 12.61 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.304e-05/0.1911, allocations: 3.938 kB / 0.7322 GB, free: 12.61 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.605e-05/0.1912, allocations: 8 kB / 0.7322 GB, free: 12.6 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.423e-05/0.1912, allocations: 3.984 kB / 0.7322 GB, free: 12.59 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.338e-06/0.1912, allocations: 4 kB / 0.7322 GB, free: 12.59 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 5.374e-05/0.1913, allocations: 87.27 kB / 0.7323 GB, free: 12.5 MB / 0.5606 GB Notification: Performance of sort global known variables: time 8e-08/0.1913, allocations: 0 / 0.7323 GB, free: 12.5 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002321/0.1915, allocations: 8 kB / 0.7323 GB, free: 12.5 MB / 0.5606 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.0006457/0.1921, allocations: 0.7084 MB / 0.733 GB, free: 11.76 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0002245/0.1924, allocations: 47.89 kB / 0.7331 GB, free: 11.71 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.1924, allocations: 0 / 0.7331 GB, free: 11.71 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0001017/0.1925, allocations: 23.98 kB / 0.7331 GB, free: 11.69 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002795/0.1928, allocations: 0 / 0.7331 GB, free: 11.69 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004521/0.1932, allocations: 151.1 kB / 0.7332 GB, free: 11.5 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.037e-05/0.1933, allocations: 71.27 kB / 0.7333 GB, free: 11.41 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 2.882e-05/0.1933, allocations: 4 kB / 0.7333 GB, free: 11.41 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.024e-05/0.1933, allocations: 15.91 kB / 0.7333 GB, free: 11.39 MB / 0.5606 GB Notification: Performance of SimCode: time 2.9e-07/0.1933, allocations: 0 / 0.7333 GB, free: 11.39 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03856/0.2319, allocations: 2.122 MB / 0.7354 GB, free: 9.398 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.15/11.38, allocations: 7.75 kB / 0.7354 GB, free: 9.395 MB / 0.5606 GB " [Timeout remaining time 649] (rm -f IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial.pipe ; mkfifo IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial.pipe >> ../files/IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Utilities_Math_Examples_Factorial_fmu --startTime=0 --stopTime=13 --stepSize=0.0052 --timeout=50 --tolerance=1e-06 IBPSA_latest_IBPSA_Utilities_Math_Examples_Factorial.fmu > IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 15.172619876917452] Failed to read output from testmodel.py, exit status != 0: 11.491429494693875 11.516731105 11.325388111 Calling exit ...