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.001347/0.001347, allocations: 108.3 kB / 19.7 MB, free: 1.918 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.001731/0.001731, allocations: 216.5 kB / 22.99 MB, free: 4.977 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.452/1.452, allocations: 230.6 MB / 256.8 MB, free: 7.777 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.9518/0.9518, allocations: 149.9 MB / 463 MB, free: 10.33 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.00213/0.00213, allocations: 70.02 kB / 0.6411 GB, free: 10.03 MB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1682/0.1703, allocations: 89.16 MB / 0.7282 GB, free: 0.9297 MB / 0.545 GB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Math.Functions.Examples.Factorial): time 0.001953/0.1723, allocations: 0.5988 MB / 0.7288 GB, free: 344 kB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.0003048/0.1726, allocations: 39.88 kB / 0.7288 GB, free: 304 kB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.959e-05/0.1726, allocations: 0 / 0.7288 GB, free: 304 kB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 1.765e-05/0.1726, allocations: 0 / 0.7288 GB, free: 304 kB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 7.254e-06/0.1726, allocations: 0 / 0.7288 GB, free: 304 kB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002489/0.1729, allocations: 15.92 kB / 0.7288 GB, free: 288 kB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 6.005e-05/0.1729, allocations: 15.98 kB / 0.7288 GB, free: 272 kB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 5.097e-05/0.173, allocations: 0 / 0.7288 GB, free: 272 kB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 1.442e-05/0.173, allocations: 3.938 kB / 0.7288 GB, free: 268 kB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 2.207e-05/0.173, allocations: 4 kB / 0.7288 GB, free: 264 kB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 1.048e-05/0.173, allocations: 0 / 0.7288 GB, free: 264 kB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 9.093e-05/0.1731, allocations: 11.98 kB / 0.7289 GB, free: 252 kB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 9.097e-06/0.1731, allocations: 0 / 0.7289 GB, free: 252 kB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 1.752e-05/0.1731, allocations: 0 / 0.7289 GB, free: 252 kB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0001003/0.1732, allocations: 11.97 kB / 0.7289 GB, free: 240 kB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.1732, allocations: 0 / 0.7289 GB, free: 240 kB / 0.545 GB Notification: Performance of FrontEnd: time 2.014e-06/0.1732, allocations: 4 kB / 0.7289 GB, free: 236 kB / 0.545 GB Notification: Performance of Transformations before backend: time 1.155e-05/0.1732, allocations: 4 kB / 0.7289 GB, free: 232 kB / 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.0003681/0.1736, allocations: 242.6 kB / 0.7291 GB, free: 15.96 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.334e-05/0.1737, allocations: 8.031 kB / 0.7291 GB, free: 15.95 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.731e-05/0.1737, allocations: 30.75 kB / 0.7291 GB, free: 15.91 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.77e-05/0.1737, allocations: 8.922 kB / 0.7292 GB, free: 15.9 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.078e-05/0.1738, allocations: 102.5 kB / 0.7293 GB, free: 15.78 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.354e-05/0.1738, allocations: 4.312 kB / 0.7293 GB, free: 15.77 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.231e-05/0.1738, allocations: 384 / 0.7293 GB, free: 15.77 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001156/0.174, allocations: 34.27 kB / 0.7293 GB, free: 15.73 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.473e-05/0.174, allocations: 7.922 kB / 0.7293 GB, free: 15.73 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.235e-06/0.174, allocations: 4 kB / 0.7293 GB, free: 15.72 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.077e-06/0.174, allocations: 4 kB / 0.7293 GB, free: 15.72 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.416e-05/0.174, allocations: 3.984 kB / 0.7293 GB, free: 15.71 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001651/0.1742, allocations: 120.8 kB / 0.7294 GB, free: 15.55 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 7.217e-05/0.1743, allocations: 22.55 kB / 0.7294 GB, free: 15.52 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.187e-05/0.1743, allocations: 12.86 kB / 0.7295 GB, free: 15.51 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001306/0.1744, allocations: 11.98 kB / 0.7295 GB, free: 15.5 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.842e-05/0.1744, allocations: 30.56 kB / 0.7295 GB, free: 15.46 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=2): time 9.91e-07/0.1744, allocations: 0 / 0.7295 GB, free: 15.46 MB / 0.5606 GB Notification: Performance of matching and sorting (n=2): time 0.0001515/0.1746, allocations: 45.62 kB / 0.7295 GB, free: 15.41 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.509e-05/0.1746, allocations: 59.41 kB / 0.7296 GB, free: 15.34 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.292e-05/0.1747, allocations: 89.86 kB / 0.7297 GB, free: 15.24 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.482e-05/0.1747, allocations: 25.7 kB / 0.7297 GB, free: 15.21 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 3.458e-05/0.1747, allocations: 80.14 kB / 0.7298 GB, free: 15.12 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 2.005e-05/0.1748, allocations: 3.953 kB / 0.7298 GB, free: 15.12 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.382e-05/0.1748, allocations: 13.72 kB / 0.7298 GB, free: 15.1 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001429/0.1749, allocations: 318.8 kB / 0.7301 GB, free: 14.78 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.328e-05/0.1749, allocations: 4 kB / 0.7301 GB, free: 14.78 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.057e-06/0.175, allocations: 3.984 kB / 0.7301 GB, free: 14.77 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.874e-05/0.175, allocations: 13.05 kB / 0.7301 GB, free: 14.76 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.382e-06/0.175, allocations: 0 / 0.7301 GB, free: 14.76 MB / 0.5606 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.967e-05/0.175, allocations: 37.7 kB / 0.7302 GB, free: 14.71 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.511e-05/0.1751, allocations: 9.875 kB / 0.7302 GB, free: 14.71 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.312e-06/0.1751, allocations: 3.938 kB / 0.7302 GB, free: 14.7 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.311e-05/0.1751, allocations: 0 / 0.7302 GB, free: 14.7 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.885e-05/0.1751, allocations: 11.92 kB / 0.7302 GB, free: 14.69 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.913e-06/0.1751, allocations: 3.938 kB / 0.7302 GB, free: 14.69 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.28e-05/0.1752, allocations: 0 / 0.7302 GB, free: 14.69 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.406e-06/0.1752, allocations: 0 / 0.7302 GB, free: 14.69 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 7.245e-05/0.1752, allocations: 113.9 kB / 0.7303 GB, free: 14.57 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.333e-05/0.1753, allocations: 4 kB / 0.7303 GB, free: 14.56 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.627e-05/0.1753, allocations: 44.78 kB / 0.7303 GB, free: 14.51 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-06/0.1753, allocations: 0 / 0.7303 GB, free: 14.51 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.476e-06/0.1753, allocations: 0 / 0.7303 GB, free: 14.51 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.414e-06/0.1753, allocations: 0 / 0.7303 GB, free: 14.51 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.753e-05/0.1754, allocations: 124.8 kB / 0.7305 GB, free: 14.35 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.1754, allocations: 0 / 0.7305 GB, free: 14.35 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.321e-05/0.1755, allocations: 7.984 kB / 0.7305 GB, free: 14.34 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.393e-06/0.1755, allocations: 0 / 0.7305 GB, free: 14.34 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.893e-06/0.1755, allocations: 7.969 kB / 0.7305 GB, free: 14.33 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.92e-07/0.1755, allocations: 0 / 0.7305 GB, free: 14.33 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.342e-06/0.1755, allocations: 3.938 kB / 0.7305 GB, free: 14.33 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.06e-05/0.1756, allocations: 65.12 kB / 0.7305 GB, free: 14.25 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 6.342e-06/0.1756, allocations: 3.953 kB / 0.7306 GB, free: 14.24 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.264e-05/0.1756, allocations: 3.938 kB / 0.7306 GB, free: 14.24 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.007e-05/0.1756, allocations: 0 / 0.7306 GB, free: 14.24 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.794e-05/0.1756, allocations: 4 kB / 0.7306 GB, free: 14.23 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.144e-06/0.1756, allocations: 3.938 kB / 0.7306 GB, free: 14.23 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 3.349e-05/0.1757, allocations: 75.28 kB / 0.7306 GB, free: 14.16 MB / 0.5606 GB Notification: Performance of sort global known variables: time 9e-08/0.1757, allocations: 4.031 kB / 0.7306 GB, free: 14.15 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0001943/0.1758, allocations: 8 kB / 0.7306 GB, free: 14.14 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.0004423/0.1763, allocations: 0.6084 MB / 0.7312 GB, free: 13.5 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 7.328e-05/0.1764, allocations: 4 kB / 0.7312 GB, free: 13.5 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.1764, allocations: 4 kB / 0.7312 GB, free: 13.5 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 1.76e-05/0.1764, allocations: 4 kB / 0.7313 GB, free: 13.49 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000128/0.1765, allocations: 4 kB / 0.7313 GB, free: 13.49 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003243/0.1768, allocations: 122.6 kB / 0.7314 GB, free: 13.33 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.244e-05/0.1769, allocations: 55.36 kB / 0.7314 GB, free: 13.25 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 1.468e-05/0.1769, allocations: 4 kB / 0.7314 GB, free: 13.25 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.64e-05/0.1769, allocations: 11.42 kB / 0.7314 GB, free: 13.24 MB / 0.5606 GB Notification: Performance of SimCode: time 2.9e-07/0.1769, allocations: 0 / 0.7314 GB, free: 13.24 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02753/0.2045, allocations: 1.57 MB / 0.733 GB, free: 11.81 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.25/11.46, allocations: 1.719 kB / 0.733 GB, free: 11.81 MB / 0.5606 GB " [Timeout remaining time 648] (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.13194694602862] Failed to read output from testmodel.py, exit status != 0: 11.565491734072566 11.591320077 11.413430852 Calling exit ...