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.001322/0.001322, allocations: 105 kB / 20.48 MB, free: 1.488 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: 214.8 kB / 23.79 MB, free: 4.703 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.448/1.448, allocations: 230.6 MB / 257.6 MB, free: 8.027 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.9794/0.9794, allocations: 150 MB / 464 MB, free: 10.49 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Utilities.Math.Examples.Factorial,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_Math_Examples_Factorial",fmuType="cs",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.002142/0.002142, allocations: 71.23 kB / 0.642 GB, free: 10.42 MB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1719/0.1741, allocations: 89.16 MB / 0.7291 GB, free: 1.32 MB / 0.545 GB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Math.Examples.Factorial): time 0.003137/0.1772, allocations: 1.547 MB / 0.7306 GB, free: 15.76 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0003592/0.1776, allocations: 127.6 kB / 0.7307 GB, free: 15.64 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.529e-05/0.1776, allocations: 0 / 0.7307 GB, free: 15.64 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 2.781e-05/0.1776, allocations: 7.938 kB / 0.7308 GB, free: 15.63 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 3.55e-05/0.1777, allocations: 4 kB / 0.7308 GB, free: 15.62 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002103/0.1779, allocations: 23.91 kB / 0.7308 GB, free: 15.6 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 7.472e-05/0.178, allocations: 31.91 kB / 0.7308 GB, free: 15.57 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 9.406e-05/0.1781, allocations: 8 kB / 0.7308 GB, free: 15.56 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 4.85e-05/0.1781, allocations: 15.92 kB / 0.7308 GB, free: 15.55 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 4.591e-05/0.1781, allocations: 8 kB / 0.7308 GB, free: 15.54 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.546e-05/0.1782, allocations: 4 kB / 0.7308 GB, free: 15.54 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 6.225e-05/0.1782, allocations: 15.98 kB / 0.7309 GB, free: 15.52 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 1.501e-05/0.1782, allocations: 7.938 kB / 0.7309 GB, free: 15.51 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 3.192e-05/0.1783, allocations: 23.91 kB / 0.7309 GB, free: 15.49 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0001167/0.1784, allocations: 36.12 kB / 0.7309 GB, free: 15.45 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.997e-06/0.1784, allocations: 0 / 0.7309 GB, free: 15.45 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.163e-06/0.1784, allocations: 0 / 0.7309 GB, free: 15.45 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 4.659e-06/0.1784, allocations: 0 / 0.7309 GB, free: 15.45 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.000498/0.1789, allocations: 270.3 kB / 0.7312 GB, free: 15.16 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.932e-05/0.1789, allocations: 12.03 kB / 0.7312 GB, free: 15.14 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.477e-05/0.1789, allocations: 192 / 0.7312 GB, free: 15.14 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.288e-05/0.179, allocations: 38.75 kB / 0.7312 GB, free: 15.1 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.801e-05/0.179, allocations: 8.875 kB / 0.7312 GB, free: 15.09 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001038/0.1791, allocations: 106.5 kB / 0.7313 GB, free: 14.96 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.112e-05/0.1791, allocations: 4.375 kB / 0.7313 GB, free: 14.96 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.927e-06/0.1791, allocations: 384 / 0.7313 GB, free: 14.96 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002051/0.1793, allocations: 65.97 kB / 0.7314 GB, free: 14.89 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.753e-06/0.1794, allocations: 0 / 0.7314 GB, free: 14.89 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.715e-06/0.1794, allocations: 0 / 0.7314 GB, free: 14.89 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.676e-06/0.1794, allocations: 0 / 0.7314 GB, free: 14.89 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002093/0.1796, allocations: 47.95 kB / 0.7315 GB, free: 14.84 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004027/0.18, allocations: 235.9 kB / 0.7317 GB, free: 14.57 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003377/0.1803, allocations: 66.45 kB / 0.7317 GB, free: 14.49 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001125/0.1804, allocations: 24.91 kB / 0.7318 GB, free: 14.46 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 8.241e-05/0.1805, allocations: 7.984 kB / 0.7318 GB, free: 14.46 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.239e-05/0.1805, allocations: 34.56 kB / 0.7318 GB, free: 14.41 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=3): time 1.142e-06/0.1805, allocations: 0 / 0.7318 GB, free: 14.41 MB / 0.5606 GB Notification: Performance of matching and sorting (n=3): time 0.0003996/0.1809, allocations: 93.56 kB / 0.7319 GB, free: 14.32 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.837e-05/0.181, allocations: 51.41 kB / 0.7319 GB, free: 14.25 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.414e-05/0.1811, allocations: 105.8 kB / 0.732 GB, free: 14.14 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.609e-05/0.1811, allocations: 29.64 kB / 0.7321 GB, free: 14.11 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 6.113e-05/0.1812, allocations: 88.14 kB / 0.7322 GB, free: 14.02 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 1.681e-05/0.1812, allocations: 7.938 kB / 0.7322 GB, free: 14.01 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.031e-05/0.1812, allocations: 17.72 kB / 0.7322 GB, free: 13.98 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.000137/0.1813, allocations: 314.8 kB / 0.7325 GB, free: 13.67 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.942e-05/0.1814, allocations: 23.97 kB / 0.7325 GB, free: 13.64 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.413e-05/0.1815, allocations: 15.98 kB / 0.7325 GB, free: 13.63 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001811/0.1817, allocations: 48.81 kB / 0.7326 GB, free: 13.58 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.1817, allocations: 3.938 kB / 0.7326 GB, free: 13.57 MB / 0.5606 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002591/0.182, allocations: 69.66 kB / 0.7326 GB, free: 13.5 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.256e-05/0.182, allocations: 8 kB / 0.7326 GB, free: 13.49 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.697e-06/0.182, allocations: 0 / 0.7326 GB, free: 13.49 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.166e-05/0.182, allocations: 0 / 0.7326 GB, free: 13.49 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.436e-05/0.1821, allocations: 15.98 kB / 0.7327 GB, free: 13.48 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.599e-06/0.1821, allocations: 0 / 0.7327 GB, free: 13.48 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.84e-05/0.1821, allocations: 7.984 kB / 0.7327 GB, free: 13.47 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.209e-06/0.1822, allocations: 0 / 0.7327 GB, free: 13.47 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 9.211e-05/0.1822, allocations: 117.8 kB / 0.7328 GB, free: 13.34 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.729e-05/0.1823, allocations: 3.953 kB / 0.7328 GB, free: 13.34 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002961/0.1826, allocations: 93.2 kB / 0.7329 GB, free: 13.24 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.014e-06/0.1826, allocations: 0 / 0.7329 GB, free: 13.24 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.122e-06/0.1826, allocations: 4 kB / 0.7329 GB, free: 13.23 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.715e-06/0.1826, allocations: 0.5625 kB / 0.7329 GB, free: 13.23 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002308/0.1828, allocations: 136.7 kB / 0.733 GB, free: 13.06 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.1828, allocations: 0 / 0.733 GB, free: 13.06 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.032e-05/0.1829, allocations: 15.98 kB / 0.733 GB, free: 13.04 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.445e-06/0.1829, allocations: 0 / 0.733 GB, free: 13.04 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.344e-06/0.1829, allocations: 0 / 0.733 GB, free: 13.04 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.1829, allocations: 0 / 0.733 GB, free: 13.04 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.1829, allocations: 4 kB / 0.733 GB, free: 13.04 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002941/0.1832, allocations: 179.4 kB / 0.7332 GB, free: 12.85 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 6.503e-06/0.1832, allocations: 0 / 0.7332 GB, free: 12.85 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.556e-05/0.1832, allocations: 4 kB / 0.7332 GB, free: 12.84 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.66e-05/0.1833, allocations: 3.984 kB / 0.7332 GB, free: 12.84 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.353e-05/0.1834, allocations: 19.86 kB / 0.7332 GB, free: 12.82 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.088e-06/0.1834, allocations: 4 kB / 0.7332 GB, free: 12.82 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 4.647e-05/0.1834, allocations: 79.28 kB / 0.7333 GB, free: 12.74 MB / 0.5606 GB Notification: Performance of sort global known variables: time 7e-08/0.1834, allocations: 0 / 0.7333 GB, free: 12.74 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002326/0.1836, allocations: 8 kB / 0.7333 GB, free: 12.73 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.000645/0.1843, allocations: 0.7124 MB / 0.734 GB, free: 11.99 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.000233/0.1845, allocations: 47.89 kB / 0.7341 GB, free: 11.94 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.1845, allocations: 0 / 0.7341 GB, free: 11.94 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0001036/0.1846, allocations: 27.97 kB / 0.7341 GB, free: 11.91 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002904/0.1849, allocations: 4 kB / 0.7341 GB, free: 11.91 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000473/0.1854, allocations: 151.1 kB / 0.7342 GB, free: 11.72 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003197/0.1857, allocations: 0.6807 MB / 0.7349 GB, free: 11.02 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 2.692e-05/0.1857, allocations: 0 / 0.7349 GB, free: 11.02 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.633e-05/0.1858, allocations: 11.44 kB / 0.7349 GB, free: 11.01 MB / 0.5606 GB Notification: Performance of SimCode: time 4.01e-07/0.1858, allocations: 0 / 0.7349 GB, free: 11.01 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02235/0.2081, allocations: 1.734 MB / 0.7366 GB, free: 9.422 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.11/11.32, allocations: 7.625 kB / 0.7366 GB, free: 9.418 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 os._exit(0), Time elapsed: 15.128895700036082] Failed to read output from testmodel.py, exit status != 0: 11.486253528972156 11.517120389 11.332958509000001 Calling exit ...