Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.Utilities.Math.Functions.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.001221/0.001221, allocations: 119.2 kB / 19.7 MB, free: 2.188 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.001486/0.001486, allocations: 219.8 kB / 23.01 MB, free: 5.004 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.341/1.341, 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/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.9906/0.9906, allocations: 150 MB / 463.2 MB, free: 10.55 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.Functions.Examples.Factorial,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_Math_Functions_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_Math_Functions_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.002081/0.002081, allocations: 66.02 kB / 0.6413 GB, free: 10.41 MB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1767/0.1787, allocations: 89.18 MB / 0.7284 GB, free: 1.297 MB / 0.545 GB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Math.Functions.Examples.Factorial): time 0.001873/0.1806, allocations: 0.5897 MB / 0.729 GB, free: 0.7109 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.0002948/0.1809, allocations: 43.86 kB / 0.729 GB, free: 0.668 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.82e-05/0.1809, allocations: 0 / 0.729 GB, free: 0.668 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 1.358e-05/0.1809, allocations: 0 / 0.729 GB, free: 0.668 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 6.712e-06/0.1809, allocations: 0 / 0.729 GB, free: 0.668 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002492/0.1812, allocations: 23.91 kB / 0.729 GB, free: 0.6445 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 4.955e-05/0.1812, allocations: 3.938 kB / 0.729 GB, free: 0.6406 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 4.352e-05/0.1813, allocations: 4 kB / 0.729 GB, free: 0.6367 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 1.559e-05/0.1813, allocations: 4 kB / 0.729 GB, free: 0.6328 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 1.97e-05/0.1813, allocations: 0 / 0.729 GB, free: 0.6328 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 9.558e-06/0.1813, allocations: 4 kB / 0.729 GB, free: 0.6289 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 8.522e-05/0.1814, allocations: 15.98 kB / 0.7291 GB, free: 0.6133 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 1.002e-05/0.1814, allocations: 0 / 0.7291 GB, free: 0.6133 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 2.183e-05/0.1815, allocations: 3.984 kB / 0.7291 GB, free: 0.6094 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 8.656e-05/0.1815, allocations: 11.92 kB / 0.7291 GB, free: 0.5977 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.048e-06/0.1815, allocations: 0 / 0.7291 GB, free: 0.5977 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.773e-06/0.1815, allocations: 0 / 0.7291 GB, free: 0.5977 MB / 0.545 GB Notification: Performance of Transformations before backend: time 4.91e-06/0.1815, allocations: 0 / 0.7291 GB, free: 0.5977 MB / 0.545 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.000323/0.1819, allocations: 238.7 kB / 0.7293 GB, free: 340 kB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.505e-05/0.1819, allocations: 12.03 kB / 0.7293 GB, free: 328 kB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.918e-05/0.182, allocations: 38.73 kB / 0.7293 GB, free: 280 kB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.475e-05/0.182, allocations: 0.9375 kB / 0.7293 GB, free: 280 kB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001/0.1821, allocations: 102.5 kB / 0.7294 GB, free: 152 kB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.323e-05/0.1821, allocations: 4.375 kB / 0.7295 GB, free: 148 kB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.797e-06/0.1821, allocations: 8.312 kB / 0.7295 GB, free: 140 kB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001174/0.1822, allocations: 30.27 kB / 0.7295 GB, free: 104 kB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.459e-05/0.1822, allocations: 7.922 kB / 0.7295 GB, free: 96 kB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.818e-06/0.1822, allocations: 0 / 0.7295 GB, free: 96 kB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.17e-06/0.1822, allocations: 0 / 0.7295 GB, free: 96 kB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.764e-05/0.1823, allocations: 7.984 kB / 0.7295 GB, free: 88 kB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002003/0.1825, allocations: 124.8 kB / 0.7296 GB, free: 15.92 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 5.612e-05/0.1826, allocations: 18.61 kB / 0.7296 GB, free: 15.89 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.958e-05/0.1826, allocations: 20.84 kB / 0.7297 GB, free: 15.87 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001524/0.1827, allocations: 4 kB / 0.7297 GB, free: 15.87 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.435e-05/0.1828, allocations: 30.56 kB / 0.7297 GB, free: 15.83 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=2): time 1.443e-06/0.1828, allocations: 3.938 kB / 0.7297 GB, free: 15.82 MB / 0.5606 GB Notification: Performance of matching and sorting (n=2): time 0.0001718/0.1829, allocations: 49.62 kB / 0.7297 GB, free: 15.77 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.387e-05/0.183, allocations: 51.41 kB / 0.7298 GB, free: 15.71 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.369e-05/0.1831, allocations: 93.86 kB / 0.7299 GB, free: 15.61 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.573e-05/0.1831, allocations: 25.7 kB / 0.7299 GB, free: 15.57 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 5.993e-05/0.1831, allocations: 80.14 kB / 0.73 GB, free: 15.49 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 2.235e-05/0.1831, allocations: 3.953 kB / 0.73 GB, free: 15.49 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.939e-05/0.1832, allocations: 13.72 kB / 0.73 GB, free: 15.47 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.000167/0.1834, allocations: 319 kB / 0.7303 GB, free: 15.15 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.796e-05/0.1834, allocations: 7.922 kB / 0.7303 GB, free: 15.14 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.006e-05/0.1834, allocations: 4 kB / 0.7303 GB, free: 15.14 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.848e-05/0.1834, allocations: 12.86 kB / 0.7303 GB, free: 15.12 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.1834, allocations: 3.938 kB / 0.7303 GB, free: 15.12 MB / 0.5606 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.909e-05/0.1835, allocations: 33.7 kB / 0.7304 GB, free: 15.08 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.21e-05/0.1835, allocations: 10.02 kB / 0.7304 GB, free: 15.07 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.02e-05/0.1835, allocations: 7.938 kB / 0.7304 GB, free: 15.06 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.548e-05/0.1835, allocations: 96 / 0.7304 GB, free: 15.06 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.945e-05/0.1836, allocations: 4 kB / 0.7304 GB, free: 15.06 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.021e-06/0.1836, allocations: 4 kB / 0.7304 GB, free: 15.05 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.344e-05/0.1836, allocations: 0 / 0.7304 GB, free: 15.05 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.068e-06/0.1836, allocations: 3.938 kB / 0.7304 GB, free: 15.05 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 (n,fac) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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.074e-05/0.1837, allocations: 109.8 kB / 0.7305 GB, free: 14.93 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.784e-06/0.1837, allocations: 0 / 0.7305 GB, free: 14.93 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.25e-05/0.1838, allocations: 44.78 kB / 0.7305 GB, free: 14.88 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.733e-06/0.1838, allocations: 0 / 0.7305 GB, free: 14.88 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.847e-06/0.1838, allocations: 8.031 kB / 0.7305 GB, free: 14.88 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.485e-06/0.1838, allocations: 0 / 0.7305 GB, free: 14.88 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001191/0.1839, allocations: 120.8 kB / 0.7307 GB, free: 14.71 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.1839, allocations: 0 / 0.7307 GB, free: 14.71 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.595e-05/0.184, allocations: 4 kB / 0.7307 GB, free: 14.71 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.813e-06/0.184, allocations: 0 / 0.7307 GB, free: 14.71 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.145e-06/0.184, allocations: 3.938 kB / 0.7307 GB, free: 14.71 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.507e-06/0.184, allocations: 4 kB / 0.7307 GB, free: 14.7 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.11e-07/0.184, allocations: 0 / 0.7307 GB, free: 14.7 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001005/0.1841, allocations: 69.06 kB / 0.7307 GB, free: 14.62 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 7.144e-06/0.1841, allocations: 3.953 kB / 0.7307 GB, free: 14.61 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.098e-05/0.1841, allocations: 3.938 kB / 0.7307 GB, free: 14.61 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.254e-05/0.1841, allocations: 4 kB / 0.7308 GB, free: 14.61 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.84e-05/0.1842, allocations: 7.984 kB / 0.7308 GB, free: 14.6 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.139e-06/0.1842, allocations: 4 kB / 0.7308 GB, free: 14.59 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 4.242e-05/0.1842, allocations: 75.28 kB / 0.7308 GB, free: 14.52 MB / 0.5606 GB Notification: Performance of sort global known variables: time 8.1e-08/0.1842, allocations: 0 / 0.7308 GB, free: 14.52 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0001982/0.1844, allocations: 11.97 kB / 0.7308 GB, free: 14.51 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,n) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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.0005005/0.1849, allocations: 0.6084 MB / 0.7314 GB, free: 13.87 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 7.548e-05/0.185, allocations: 8 kB / 0.7314 GB, free: 13.86 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.185, allocations: 3.938 kB / 0.7315 GB, free: 13.86 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 1.706e-05/0.185, allocations: 12.08 kB / 0.7315 GB, free: 13.84 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001279/0.1851, allocations: 4 kB / 0.7315 GB, free: 13.84 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000326/0.1854, allocations: 110.6 kB / 0.7316 GB, free: 13.69 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004028/0.1859, allocations: 0.6806 MB / 0.7322 GB, free: 12.98 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 1.231e-05/0.1859, allocations: 0 / 0.7322 GB, free: 12.98 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.437e-05/0.1859, allocations: 7.438 kB / 0.7322 GB, free: 12.98 MB / 0.5606 GB Notification: Performance of SimCode: time 3.2e-07/0.1859, allocations: 4 kB / 0.7322 GB, free: 12.97 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03046/0.2164, allocations: 1.164 MB / 0.7334 GB, free: 11.95 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.05/11.26, allocations: 64 / 0.7334 GB, free: 11.95 MB / 0.5606 GB " [Timeout remaining time 649] (rm -f IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.Factorial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Utilities_Math_Functions_Examples_Factorial_fmu --startTime=0 --stopTime=12.9 --stepSize=0.00516 --timeout=50 --tolerance=1e-06 IBPSA_latest_IBPSA_Utilities_Math_Functions_Examples_Factorial.fmu > IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 15.003702567890286] Failed to read output from testmodel.py, exit status != 0: 11.368568666046485 11.384651471 11.200120306 Calling exit ...