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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001651/0.001652, allocations: 105 kB / 16.4 MB, free: 6.508 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001963/0.001963, allocations: 193.2 kB / 17.34 MB, free: 5.742 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.38/1.38, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7367/0.7367, allocations: 115.3 MB / 406.5 MB, free: 6.164 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00125/0.00125, allocations: 63.09 kB / 0.5572 GB, free: 32.51 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1706/0.1719, allocations: 76.18 MB / 0.6316 GB, free: 4.898 MB / 478.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Math.Examples.Factorial): time 0.002975/0.1749, allocations: 1.504 MB / 0.6331 GB, free: 3.379 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004069/0.1753, allocations: 124.5 kB / 0.6332 GB, free: 3.254 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.301e-05/0.1754, allocations: 0 / 0.6332 GB, free: 3.254 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 3.358e-05/0.1754, allocations: 3.938 kB / 0.6332 GB, free: 3.25 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 4.235e-05/0.1755, allocations: 0 / 0.6332 GB, free: 3.25 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002431/0.1758, allocations: 27.92 kB / 0.6332 GB, free: 3.223 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 7.469e-05/0.1759, allocations: 31.86 kB / 0.6332 GB, free: 3.191 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001001/0.176, allocations: 11.98 kB / 0.6333 GB, free: 3.18 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.538e-05/0.176, allocations: 19.97 kB / 0.6333 GB, free: 3.16 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.645e-05/0.1761, allocations: 11.94 kB / 0.6333 GB, free: 3.148 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 1.57e-05/0.1761, allocations: 4 kB / 0.6333 GB, free: 3.145 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.853e-05/0.1762, allocations: 11.98 kB / 0.6333 GB, free: 3.133 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 1.715e-05/0.1762, allocations: 8 kB / 0.6333 GB, free: 3.125 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 2.796e-05/0.1762, allocations: 11.92 kB / 0.6333 GB, free: 3.113 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001304/0.1764, allocations: 35.89 kB / 0.6333 GB, free: 3.078 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.429e-06/0.1764, allocations: 0 / 0.6333 GB, free: 3.078 MB / 478.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.1764, allocations: 0 / 0.6333 GB, free: 3.078 MB / 478.1 MB Notification: Performance of Transformations before backend: time 7.033e-06/0.1764, allocations: 0 / 0.6333 GB, free: 3.078 MB / 478.1 MB 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.0004571/0.1769, allocations: 354.2 kB / 0.6337 GB, free: 2.684 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.92e-05/0.1769, allocations: 8.031 kB / 0.6337 GB, free: 2.676 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.964e-05/0.177, allocations: 30.75 kB / 0.6337 GB, free: 2.637 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.522e-05/0.177, allocations: 4.938 kB / 0.6337 GB, free: 2.633 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001191/0.1771, allocations: 164.3 kB / 0.6339 GB, free: 2.434 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.348e-05/0.1771, allocations: 8.375 kB / 0.6339 GB, free: 2.426 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.847e-06/0.1772, allocations: 384 / 0.6339 GB, free: 2.426 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001812/0.1773, allocations: 58.22 kB / 0.6339 GB, free: 2.363 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.477e-06/0.1774, allocations: 11.94 kB / 0.634 GB, free: 2.352 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.777e-06/0.1774, allocations: 0 / 0.634 GB, free: 2.352 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.078e-06/0.1774, allocations: 0 / 0.634 GB, free: 2.352 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001844/0.1776, allocations: 43.95 kB / 0.634 GB, free: 2.309 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003907/0.178, allocations: 269.5 kB / 0.6343 GB, free: 1.996 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003168/0.1783, allocations: 62.53 kB / 0.6343 GB, free: 1.926 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.392e-05/0.1784, allocations: 28.89 kB / 0.6343 GB, free: 1.895 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001155/0.1785, allocations: 77.11 kB / 0.6344 GB, free: 1.801 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.581e-05/0.1786, allocations: 34.56 kB / 0.6345 GB, free: 1.758 MB / 478.1 MB Notification: Performance of pre-optimization done (n=3): time 1.102e-06/0.1786, allocations: 0 / 0.6345 GB, free: 1.758 MB / 478.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003623/0.1789, allocations: 101.6 kB / 0.6346 GB, free: 1.652 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.287e-05/0.179, allocations: 51.41 kB / 0.6346 GB, free: 1.59 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.566e-05/0.1791, allocations: 97.86 kB / 0.6347 GB, free: 1.484 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 1.483e-05/0.1791, allocations: 25.7 kB / 0.6347 GB, free: 1.453 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.032e-05/0.1792, allocations: 92.06 kB / 0.6348 GB, free: 1.359 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.596e-05/0.1792, allocations: 3.906 kB / 0.6348 GB, free: 1.355 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.765e-05/0.1792, allocations: 17.72 kB / 0.6348 GB, free: 1.332 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001088/0.1794, allocations: 314.8 kB / 0.6351 GB, free: 1.016 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.719e-05/0.1794, allocations: 23.98 kB / 0.6351 GB, free: 0.9922 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.352e-05/0.1795, allocations: 16.36 kB / 0.6352 GB, free: 0.9766 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001628/0.1797, allocations: 52.83 kB / 0.6352 GB, free: 0.9219 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.664e-06/0.1797, allocations: 0 / 0.6352 GB, free: 0.9219 MB / 478.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002149/0.1799, allocations: 81.5 kB / 0.6353 GB, free: 0.8359 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.493e-05/0.18, allocations: 8 kB / 0.6353 GB, free: 0.8281 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.071e-06/0.18, allocations: 7.922 kB / 0.6353 GB, free: 0.8203 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.354e-05/0.18, allocations: 0 / 0.6353 GB, free: 0.8203 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.045e-05/0.1801, allocations: 8 kB / 0.6353 GB, free: 0.8125 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.195e-06/0.1801, allocations: 3.984 kB / 0.6353 GB, free: 0.8086 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.571e-05/0.1801, allocations: 4 kB / 0.6353 GB, free: 0.8047 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.912e-06/0.1802, allocations: 0 / 0.6353 GB, free: 0.8047 MB / 478.1 MB 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 7.966e-05/0.1802, allocations: 117.8 kB / 0.6354 GB, free: 0.6797 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.713e-05/0.1803, allocations: 7.984 kB / 0.6354 GB, free: 0.6719 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002478/0.1805, allocations: 85.08 kB / 0.6355 GB, free: 0.5781 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.334e-06/0.1805, allocations: 0 / 0.6355 GB, free: 0.5781 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.478e-06/0.1805, allocations: 0 / 0.6355 GB, free: 0.5781 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.246e-06/0.1806, allocations: 0 / 0.6355 GB, free: 0.5781 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001571/0.1807, allocations: 169.6 kB / 0.6357 GB, free: 372 kB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.607e-06/0.1807, allocations: 3.984 kB / 0.6357 GB, free: 368 kB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.527e-05/0.1808, allocations: 8 kB / 0.6357 GB, free: 360 kB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.765e-06/0.1808, allocations: 4 kB / 0.6357 GB, free: 356 kB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.187e-06/0.1808, allocations: 3.984 kB / 0.6357 GB, free: 352 kB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.342e-06/0.1808, allocations: 0 / 0.6357 GB, free: 352 kB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.92e-07/0.1808, allocations: 0 / 0.6357 GB, free: 352 kB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003156/0.1812, allocations: 171.5 kB / 0.6359 GB, free: 164 kB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.018e-05/0.1812, allocations: 81.02 kB / 0.6359 GB, free: 64 kB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.956e-05/0.1813, allocations: 7.984 kB / 0.636 GB, free: 56 kB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001278/0.1814, allocations: 11.94 kB / 0.636 GB, free: 44 kB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.127e-05/0.1814, allocations: 11.92 kB / 0.636 GB, free: 32 kB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.34e-06/0.1815, allocations: 0 / 0.636 GB, free: 32 kB / 478.1 MB Notification: Performance of sorting global known variables: time 6.635e-05/0.1815, allocations: 83.28 kB / 0.6361 GB, free: 15.95 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.1815, allocations: 0 / 0.6361 GB, free: 15.95 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0003679/0.1819, allocations: 8 kB / 0.6361 GB, free: 15.94 MB / 494.1 MB 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.0005623/0.1825, allocations: 0.7109 MB / 0.6368 GB, free: 15.2 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0002201/0.1827, allocations: 51.92 kB / 0.6368 GB, free: 15.15 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.834e-06/0.1827, allocations: 0 / 0.6368 GB, free: 15.15 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 9.595e-05/0.1828, allocations: 31.97 kB / 0.6368 GB, free: 15.12 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000261/0.1831, allocations: 5.25 kB / 0.6368 GB, free: 15.12 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004225/0.1835, allocations: 147.1 kB / 0.637 GB, free: 14.93 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002116/0.1838, allocations: 0.6768 MB / 0.6376 GB, free: 14.23 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 2.793e-05/0.1838, allocations: 4 kB / 0.6376 GB, free: 14.23 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.685e-05/0.1838, allocations: 11.44 kB / 0.6377 GB, free: 14.21 MB / 494.1 MB Notification: Performance of SimCode: time 3.51e-07/0.1838, allocations: 4 kB / 0.6377 GB, free: 14.21 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01718/0.201, allocations: 1.594 MB / 0.6392 GB, free: 12.69 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.593/7.794, allocations: 6.578 kB / 0.6392 GB, free: 12.68 MB / 494.1 MB (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 --timeout=50 --tolerance=1e-06 IBPSA_latest_IBPSA_Utilities_Math_Examples_Factorial.fmu > IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial.pipe 2>&1)