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.001262/0.001262, allocations: 105 kB / 20.49 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.001397/0.001397, allocations: 215.9 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.564/1.564, allocations: 230.6 MB / 257.6 MB, free: 7.996 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.9694/0.9694, allocations: 150 MB / 464 MB, free: 10.54 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_Math_Functions_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.002035/0.002035, allocations: 70.05 kB / 0.6421 GB, free: 10.41 MB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.179/0.1811, allocations: 89.17 MB / 0.7291 GB, free: 1.305 MB / 0.545 GB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Math.Functions.Examples.Factorial): time 0.001743/0.1828, allocations: 0.5823 MB / 0.7297 GB, free: 0.7266 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.0002475/0.1831, allocations: 47.84 kB / 0.7298 GB, free: 0.6797 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.376e-05/0.1831, allocations: 0 / 0.7298 GB, free: 0.6797 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 1.597e-05/0.1831, allocations: 7.938 kB / 0.7298 GB, free: 0.6719 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 5.249e-06/0.1831, allocations: 0 / 0.7298 GB, free: 0.6719 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002095/0.1833, allocations: 15.98 kB / 0.7298 GB, free: 0.6562 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 3.934e-05/0.1834, allocations: 3.938 kB / 0.7298 GB, free: 0.6523 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 3.918e-05/0.1834, allocations: 4 kB / 0.7298 GB, free: 0.6484 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 1.34e-05/0.1834, allocations: 8 kB / 0.7298 GB, free: 0.6406 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 1.886e-05/0.1834, allocations: 0 / 0.7298 GB, free: 0.6406 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 7.915e-06/0.1834, allocations: 0 / 0.7298 GB, free: 0.6406 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 6.89e-05/0.1835, allocations: 11.98 kB / 0.7298 GB, free: 0.6289 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 1.212e-05/0.1835, allocations: 7.984 kB / 0.7298 GB, free: 0.6211 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 1.413e-05/0.1835, allocations: 0 / 0.7298 GB, free: 0.6211 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 7.674e-05/0.1836, allocations: 11.92 kB / 0.7298 GB, free: 0.6094 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.1836, allocations: 4 kB / 0.7298 GB, free: 0.6055 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.543e-06/0.1836, allocations: 0 / 0.7298 GB, free: 0.6055 MB / 0.545 GB Notification: Performance of Transformations before backend: time 9.397e-06/0.1836, allocations: 0 / 0.7298 GB, free: 0.6055 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.0003099/0.1839, allocations: 238.7 kB / 0.7301 GB, free: 348 kB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.995e-05/0.184, allocations: 15.97 kB / 0.7301 GB, free: 332 kB / 0.545 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.083e-05/0.184, allocations: 192 / 0.7301 GB, free: 332 kB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.61e-05/0.184, allocations: 30.75 kB / 0.7301 GB, free: 292 kB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.895e-05/0.184, allocations: 0.9375 kB / 0.7301 GB, free: 292 kB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.639e-05/0.1841, allocations: 110.5 kB / 0.7302 GB, free: 156 kB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.027e-05/0.1841, allocations: 8.312 kB / 0.7302 GB, free: 148 kB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.706e-06/0.1841, allocations: 384 / 0.7302 GB, free: 148 kB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.044e-05/0.1842, allocations: 38 kB / 0.7303 GB, free: 104 kB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.583e-06/0.1842, allocations: 4 kB / 0.7303 GB, free: 100 kB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.031e-06/0.1842, allocations: 0 / 0.7303 GB, free: 100 kB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.617e-06/0.1842, allocations: 0 / 0.7303 GB, free: 100 kB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.07e-05/0.1843, allocations: 7.984 kB / 0.7303 GB, free: 92 kB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001448/0.1844, allocations: 124.7 kB / 0.7304 GB, free: 15.93 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 4.569e-05/0.1845, allocations: 18.61 kB / 0.7304 GB, free: 15.9 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.205e-05/0.1845, allocations: 12.92 kB / 0.7304 GB, free: 15.88 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001121/0.1846, allocations: 11.98 kB / 0.7304 GB, free: 15.87 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.934e-05/0.1846, allocations: 34.5 kB / 0.7305 GB, free: 15.83 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=2): time 9.12e-07/0.1846, allocations: 0 / 0.7305 GB, free: 15.83 MB / 0.5606 GB Notification: Performance of matching and sorting (n=2): time 0.0001248/0.1847, allocations: 45.62 kB / 0.7305 GB, free: 15.78 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.921e-05/0.1848, allocations: 55.41 kB / 0.7306 GB, free: 15.71 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.505e-05/0.1848, allocations: 89.86 kB / 0.7306 GB, free: 15.61 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.659e-05/0.1848, allocations: 25.7 kB / 0.7307 GB, free: 15.58 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 3.176e-05/0.1849, allocations: 80.14 kB / 0.7307 GB, free: 15.5 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 1.421e-05/0.1849, allocations: 8.078 kB / 0.7308 GB, free: 15.49 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.008e-05/0.1849, allocations: 17.72 kB / 0.7308 GB, free: 15.47 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001236/0.185, allocations: 310.8 kB / 0.7311 GB, free: 15.16 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.758e-06/0.1851, allocations: 0 / 0.7311 GB, free: 15.16 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.219e-05/0.1851, allocations: 7.984 kB / 0.7311 GB, free: 15.15 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.017e-05/0.1851, allocations: 16.8 kB / 0.7311 GB, free: 15.13 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.1851, allocations: 0 / 0.7311 GB, free: 15.13 MB / 0.5606 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.175e-05/0.1852, allocations: 41.7 kB / 0.7311 GB, free: 15.08 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.415e-05/0.1852, allocations: 11.94 kB / 0.7311 GB, free: 15.07 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.186e-06/0.1852, allocations: 0 / 0.7311 GB, free: 15.07 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.629e-06/0.1852, allocations: 0 / 0.7311 GB, free: 15.07 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.756e-05/0.1852, allocations: 3.984 kB / 0.7311 GB, free: 15.07 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.258e-06/0.1852, allocations: 4 kB / 0.7312 GB, free: 15.06 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.259e-05/0.1853, allocations: 0 / 0.7312 GB, free: 15.06 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.146e-06/0.1853, allocations: 0 / 0.7312 GB, free: 15.06 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.087e-05/0.1853, allocations: 109.8 kB / 0.7313 GB, free: 14.95 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.009e-05/0.1853, allocations: 11.97 kB / 0.7313 GB, free: 14.93 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.126e-05/0.1854, allocations: 40.84 kB / 0.7313 GB, free: 14.89 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.498e-06/0.1854, allocations: 7.938 kB / 0.7313 GB, free: 14.88 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.306e-06/0.1854, allocations: 0 / 0.7313 GB, free: 14.88 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.964e-06/0.1854, allocations: 0 / 0.7313 GB, free: 14.88 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.146e-05/0.1855, allocations: 116.8 kB / 0.7314 GB, free: 14.72 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.484e-06/0.1855, allocations: 3.984 kB / 0.7314 GB, free: 14.72 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.315e-05/0.1855, allocations: 4 kB / 0.7314 GB, free: 14.71 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.166e-06/0.1855, allocations: 7.875 kB / 0.7314 GB, free: 14.71 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.651e-06/0.1856, allocations: 0 / 0.7314 GB, free: 14.71 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.41e-07/0.1856, allocations: 8.031 kB / 0.7314 GB, free: 14.7 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.41e-07/0.1856, allocations: 0 / 0.7314 GB, free: 14.7 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.699e-05/0.1856, allocations: 61.12 kB / 0.7315 GB, free: 14.62 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 6.292e-06/0.1856, allocations: 3.953 kB / 0.7315 GB, free: 14.62 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.981e-05/0.1857, allocations: 3.938 kB / 0.7315 GB, free: 14.61 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.442e-05/0.1857, allocations: 8 kB / 0.7315 GB, free: 14.61 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.604e-05/0.1857, allocations: 4 kB / 0.7315 GB, free: 14.6 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.165e-06/0.1857, allocations: 4.031 kB / 0.7315 GB, free: 14.6 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 3.196e-05/0.1857, allocations: 75.28 kB / 0.7316 GB, free: 14.52 MB / 0.5606 GB Notification: Performance of sort global known variables: time 8e-08/0.1857, allocations: 3.938 kB / 0.7316 GB, free: 14.52 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0001784/0.1859, allocations: 4 kB / 0.7316 GB, free: 14.52 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.0004073/0.1863, allocations: 0.6124 MB / 0.7322 GB, free: 13.87 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 6.823e-05/0.1864, allocations: 11.94 kB / 0.7322 GB, free: 13.86 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.512e-06/0.1864, allocations: 0 / 0.7322 GB, free: 13.86 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 1.94e-05/0.1864, allocations: 7.938 kB / 0.7322 GB, free: 13.85 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001226/0.1865, allocations: 6.5 kB / 0.7322 GB, free: 13.85 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003085/0.1868, allocations: 114.6 kB / 0.7323 GB, free: 13.7 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003236/0.1872, allocations: 0.669 MB / 0.733 GB, free: 13 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 1.461e-05/0.1872, allocations: 3.984 kB / 0.733 GB, free: 13 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.578e-05/0.1872, allocations: 15.56 kB / 0.733 GB, free: 12.98 MB / 0.5606 GB Notification: Performance of SimCode: time 2.9e-07/0.1872, allocations: 0 / 0.733 GB, free: 12.98 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02081/0.208, allocations: 1.197 MB / 0.7342 GB, free: 11.94 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.11/11.32, allocations: 8.047 kB / 0.7342 GB, free: 11.93 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 os._exit(0), Time elapsed: 15.213684613001533] Failed to read output from testmodel.py, exit status != 0: 11.485153589979745 11.511870075 11.323479094 Calling exit ...