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.001027/0.001027, allocations: 103.8 kB / 16.4 MB, free: 6.492 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.001129/0.001129, allocations: 193.2 kB / 17.34 MB, free: 5.73 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.662/1.662, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7938/0.7938, allocations: 115.3 MB / 406.5 MB, free: 6.156 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001194/0.001194, allocations: 68.72 kB / 0.5572 GB, free: 32.5 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1689/0.1701, allocations: 76.17 MB / 0.6316 GB, free: 4.918 MB / 478.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Math.Examples.Factorial): time 0.002926/0.1731, allocations: 1.508 MB / 0.6331 GB, free: 3.395 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003867/0.1735, allocations: 124.4 kB / 0.6332 GB, free: 3.27 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.125e-05/0.1736, allocations: 4 kB / 0.6332 GB, free: 3.266 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 3.274e-05/0.1736, allocations: 3.984 kB / 0.6332 GB, free: 3.262 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 4.313e-05/0.1737, allocations: 7.938 kB / 0.6332 GB, free: 3.254 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002327/0.1739, allocations: 15.98 kB / 0.6332 GB, free: 3.238 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 7.707e-05/0.174, allocations: 35.91 kB / 0.6332 GB, free: 3.203 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000101/0.1741, allocations: 7.984 kB / 0.6332 GB, free: 3.195 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.415e-05/0.1742, allocations: 15.94 kB / 0.6333 GB, free: 3.18 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.96e-05/0.1742, allocations: 11.98 kB / 0.6333 GB, free: 3.168 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 1.534e-05/0.1743, allocations: 4 kB / 0.6333 GB, free: 3.164 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.07e-05/0.1743, allocations: 11.98 kB / 0.6333 GB, free: 3.152 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 1.799e-05/0.1743, allocations: 11.94 kB / 0.6333 GB, free: 3.141 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 2.954e-05/0.1744, allocations: 15.92 kB / 0.6333 GB, free: 3.125 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001165/0.1745, allocations: 35.83 kB / 0.6334 GB, free: 3.09 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.1745, allocations: 7.938 kB / 0.6334 GB, free: 3.082 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.1745, allocations: 0 / 0.6334 GB, free: 3.082 MB / 478.1 MB Notification: Performance of Transformations before backend: time 5.66e-06/0.1745, allocations: 0 / 0.6334 GB, free: 3.082 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.0004744/0.175, allocations: 342.3 kB / 0.6337 GB, free: 2.699 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.024e-05/0.1751, allocations: 8.031 kB / 0.6337 GB, free: 2.691 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.932e-05/0.1751, allocations: 30.75 kB / 0.6337 GB, free: 2.652 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.8e-05/0.1751, allocations: 8.922 kB / 0.6337 GB, free: 2.645 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001181/0.1753, allocations: 164.4 kB / 0.6339 GB, free: 2.445 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.159e-05/0.1753, allocations: 4.375 kB / 0.6339 GB, free: 2.441 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.456e-05/0.1753, allocations: 4.375 kB / 0.6339 GB, free: 2.438 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001785/0.1755, allocations: 54.23 kB / 0.6339 GB, free: 2.379 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.578e-06/0.1755, allocations: 3.938 kB / 0.634 GB, free: 2.375 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.598e-06/0.1755, allocations: 4 kB / 0.634 GB, free: 2.371 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.114e-06/0.1755, allocations: 7.969 kB / 0.634 GB, free: 2.363 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001754/0.1757, allocations: 39.91 kB / 0.634 GB, free: 2.324 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003629/0.1761, allocations: 273.6 kB / 0.6343 GB, free: 2.008 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003006/0.1764, allocations: 58.59 kB / 0.6343 GB, free: 1.941 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.966e-05/0.1765, allocations: 20.84 kB / 0.6343 GB, free: 1.918 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001187/0.1766, allocations: 89.09 kB / 0.6344 GB, free: 1.812 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.899e-05/0.1767, allocations: 34.5 kB / 0.6345 GB, free: 1.77 MB / 478.1 MB Notification: Performance of pre-optimization done (n=3): time 1.132e-06/0.1767, allocations: 4 kB / 0.6345 GB, free: 1.766 MB / 478.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003758/0.177, allocations: 89.64 kB / 0.6345 GB, free: 1.672 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.955e-05/0.1771, allocations: 51.41 kB / 0.6346 GB, free: 1.609 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.01e-05/0.1772, allocations: 101.8 kB / 0.6347 GB, free: 1.5 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 1.411e-05/0.1772, allocations: 29.7 kB / 0.6347 GB, free: 1.465 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.153e-05/0.1772, allocations: 84.08 kB / 0.6348 GB, free: 1.379 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.661e-05/0.1773, allocations: 7.906 kB / 0.6348 GB, free: 1.371 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.477e-05/0.1773, allocations: 25.64 kB / 0.6348 GB, free: 1.34 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001044/0.1774, allocations: 310.8 kB / 0.6351 GB, free: 1.027 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.166e-05/0.1775, allocations: 23.97 kB / 0.6352 GB, free: 1.004 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.75e-05/0.1776, allocations: 19.92 kB / 0.6352 GB, free: 0.9844 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001699/0.1778, allocations: 56.75 kB / 0.6352 GB, free: 0.9258 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.1778, allocations: 0 / 0.6352 GB, free: 0.9258 MB / 478.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000201/0.178, allocations: 69.56 kB / 0.6353 GB, free: 0.8516 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.487e-05/0.178, allocations: 9.875 kB / 0.6353 GB, free: 0.8438 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.108e-06/0.178, allocations: 0 / 0.6353 GB, free: 0.8438 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.447e-05/0.178, allocations: 0 / 0.6353 GB, free: 0.8438 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.657e-05/0.1781, allocations: 11.98 kB / 0.6353 GB, free: 0.832 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.641e-06/0.1781, allocations: 4 kB / 0.6353 GB, free: 0.8281 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.283e-05/0.1782, allocations: 7.984 kB / 0.6353 GB, free: 0.8203 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.595e-06/0.1782, allocations: 4 kB / 0.6353 GB, free: 0.8164 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.99e-05/0.1783, allocations: 117.7 kB / 0.6354 GB, free: 0.6914 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.246e-05/0.1783, allocations: 3.938 kB / 0.6354 GB, free: 0.6875 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002547/0.1786, allocations: 81.66 kB / 0.6355 GB, free: 0.5977 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.483e-06/0.1786, allocations: 8 kB / 0.6355 GB, free: 0.5898 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.03e-06/0.1786, allocations: 0 / 0.6355 GB, free: 0.5898 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/0.1786, allocations: 0 / 0.6355 GB, free: 0.5898 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001567/0.1788, allocations: 165.6 kB / 0.6357 GB, free: 388 kB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.71e-07/0.1788, allocations: 4 kB / 0.6357 GB, free: 384 kB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.874e-05/0.1789, allocations: 8.031 kB / 0.6357 GB, free: 376 kB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.751e-06/0.1789, allocations: 7.984 kB / 0.6357 GB, free: 368 kB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.005e-06/0.1789, allocations: 0 / 0.6357 GB, free: 368 kB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.002e-06/0.1789, allocations: 0 / 0.6357 GB, free: 368 kB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.1789, allocations: 0 / 0.6357 GB, free: 368 kB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002549/0.1792, allocations: 179.4 kB / 0.6359 GB, free: 172 kB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.636e-05/0.1792, allocations: 81.02 kB / 0.636 GB, free: 72 kB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.421e-05/0.1792, allocations: 4 kB / 0.636 GB, free: 68 kB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.945e-05/0.1793, allocations: 7.984 kB / 0.636 GB, free: 60 kB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.144e-05/0.1794, allocations: 4 kB / 0.636 GB, free: 56 kB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.42e-06/0.1794, allocations: 3.984 kB / 0.636 GB, free: 52 kB / 478.1 MB Notification: Performance of sorting global known variables: time 5.555e-05/0.1794, allocations: 87.28 kB / 0.6361 GB, free: 15.96 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1794, allocations: 0 / 0.6361 GB, free: 15.96 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002152/0.1797, allocations: 11.94 kB / 0.6361 GB, free: 15.95 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.0005613/0.1802, allocations: 0.7163 MB / 0.6368 GB, free: 15.21 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0002214/0.1805, allocations: 39.95 kB / 0.6368 GB, free: 15.17 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.1805, allocations: 0 / 0.6368 GB, free: 15.17 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 9.594e-05/0.1806, allocations: 27.97 kB / 0.6368 GB, free: 15.14 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002764/0.1809, allocations: 0 / 0.6368 GB, free: 15.14 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004244/0.1813, allocations: 143.1 kB / 0.637 GB, free: 14.96 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002379/0.1815, allocations: 0.6846 MB / 0.6376 GB, free: 14.25 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 2.676e-05/0.1816, allocations: 0 / 0.6376 GB, free: 14.25 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.025e-05/0.1816, allocations: 19.42 kB / 0.6377 GB, free: 14.23 MB / 494.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1816, allocations: 0 / 0.6377 GB, free: 14.23 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.572/0.7536, allocations: 1.587 MB / 0.6392 GB, free: 12.71 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.53/14.29, allocations: 18.58 kB / 0.6392 GB, free: 12.7 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)