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.001079/0.001079, allocations: 108.6 kB / 16.41 MB, free: 6.445 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.001286/0.001286, allocations: 191.9 kB / 17.34 MB, free: 5.738 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.379/1.379, allocations: 222.9 MB / 241 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7839/0.7839, allocations: 122.9 MB / 414.1 MB, free: 15.84 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001282/0.001282, allocations: 70.06 kB / 0.568 GB, free: 28.86 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1587/0.16, allocations: 77.93 MB / 0.6441 GB, free: 9.543 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Math.Examples.Factorial): time 0.002595/0.1627, allocations: 1.507 MB / 0.6455 GB, free: 8.031 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003792/0.1631, allocations: 124.5 kB / 0.6457 GB, free: 7.906 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.66e-05/0.1631, allocations: 0 / 0.6457 GB, free: 7.906 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 3.206e-05/0.1632, allocations: 3.938 kB / 0.6457 GB, free: 7.902 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 5.142e-05/0.1633, allocations: 11.86 kB / 0.6457 GB, free: 7.891 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002411/0.1635, allocations: 27.91 kB / 0.6457 GB, free: 7.863 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 8.827e-05/0.1636, allocations: 23.98 kB / 0.6457 GB, free: 7.84 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001073/0.1637, allocations: 4 kB / 0.6457 GB, free: 7.836 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.049e-05/0.1638, allocations: 15.98 kB / 0.6457 GB, free: 7.82 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.257e-05/0.1638, allocations: 19.91 kB / 0.6458 GB, free: 7.801 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.409e-05/0.1639, allocations: 7.938 kB / 0.6458 GB, free: 7.793 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.813e-05/0.1639, allocations: 8 kB / 0.6458 GB, free: 7.785 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.652e-05/0.1639, allocations: 11.94 kB / 0.6458 GB, free: 7.773 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 3e-05/0.164, allocations: 11.92 kB / 0.6458 GB, free: 7.762 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001146/0.1641, allocations: 40.11 kB / 0.6458 GB, free: 7.723 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.1641, allocations: 0 / 0.6458 GB, free: 7.723 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.123e-06/0.1641, allocations: 0 / 0.6458 GB, free: 7.723 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.11e-06/0.1641, allocations: 0 / 0.6458 GB, free: 7.723 MB / 494.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.0004685/0.1646, allocations: 347.4 kB / 0.6462 GB, free: 7.332 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.665e-05/0.1646, allocations: 8.625 kB / 0.6462 GB, free: 7.324 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.816e-05/0.1647, allocations: 34.75 kB / 0.6462 GB, free: 7.281 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.677e-05/0.1647, allocations: 4.938 kB / 0.6462 GB, free: 7.277 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001026/0.1648, allocations: 168.3 kB / 0.6464 GB, free: 7.074 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.137e-05/0.1649, allocations: 4.375 kB / 0.6464 GB, free: 7.07 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.06e-05/0.1649, allocations: 384 / 0.6464 GB, free: 7.07 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001951/0.1651, allocations: 66.16 kB / 0.6464 GB, free: 7 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.167e-06/0.1651, allocations: 7.938 kB / 0.6464 GB, free: 6.992 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.426e-06/0.1651, allocations: 0 / 0.6464 GB, free: 6.992 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.469e-06/0.1651, allocations: 0 / 0.6464 GB, free: 6.992 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001852/0.1653, allocations: 39.95 kB / 0.6465 GB, free: 6.953 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003242/0.1656, allocations: 264.9 kB / 0.6467 GB, free: 6.645 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003165/0.166, allocations: 58.48 kB / 0.6468 GB, free: 6.578 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.94e-05/0.1661, allocations: 28.89 kB / 0.6468 GB, free: 6.547 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001009/0.1662, allocations: 77.11 kB / 0.6469 GB, free: 6.453 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.183e-05/0.1662, allocations: 38.56 kB / 0.6469 GB, free: 6.406 MB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 1.113e-06/0.1662, allocations: 0 / 0.6469 GB, free: 6.406 MB / 494.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003839/0.1666, allocations: 97.58 kB / 0.647 GB, free: 6.305 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.056e-05/0.1666, allocations: 51.41 kB / 0.6471 GB, free: 6.242 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.38e-05/0.1667, allocations: 101.8 kB / 0.6472 GB, free: 6.133 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.64e-05/0.1667, allocations: 25.7 kB / 0.6472 GB, free: 6.102 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.978e-05/0.1668, allocations: 84.14 kB / 0.6473 GB, free: 6.016 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.515e-05/0.1668, allocations: 11.89 kB / 0.6473 GB, free: 6.004 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.214e-05/0.1668, allocations: 13.72 kB / 0.6473 GB, free: 5.984 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.346e-05/0.1669, allocations: 322.8 kB / 0.6476 GB, free: 5.66 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.263e-05/0.167, allocations: 15.98 kB / 0.6476 GB, free: 5.645 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.685e-05/0.1671, allocations: 19.97 kB / 0.6476 GB, free: 5.625 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001644/0.1673, allocations: 56.64 kB / 0.6477 GB, free: 5.566 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.1673, allocations: 0 / 0.6477 GB, free: 5.566 MB / 494.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002148/0.1675, allocations: 78.11 kB / 0.6478 GB, free: 5.484 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.264e-05/0.1676, allocations: 4 kB / 0.6478 GB, free: 5.48 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.338e-06/0.1676, allocations: 0 / 0.6478 GB, free: 5.48 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.14e-05/0.1676, allocations: 48 / 0.6478 GB, free: 5.48 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.441e-05/0.1677, allocations: 23.91 kB / 0.6478 GB, free: 5.457 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.118e-06/0.1677, allocations: 0 / 0.6478 GB, free: 5.457 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.581e-05/0.1677, allocations: 4 kB / 0.6478 GB, free: 5.453 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.855e-06/0.1678, allocations: 4 kB / 0.6478 GB, free: 5.449 MB / 494.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 0.0001296/0.1679, allocations: 118.6 kB / 0.6479 GB, free: 5.324 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.708e-05/0.1679, allocations: 7.953 kB / 0.6479 GB, free: 5.316 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002726/0.1682, allocations: 85.14 kB / 0.648 GB, free: 5.223 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.695e-06/0.1682, allocations: 0 / 0.648 GB, free: 5.223 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.616e-06/0.1682, allocations: 0 / 0.648 GB, free: 5.223 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.585e-06/0.1682, allocations: 0 / 0.648 GB, free: 5.223 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000177/0.1684, allocations: 173.5 kB / 0.6482 GB, free: 5.004 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.1684, allocations: 0 / 0.6482 GB, free: 5.004 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.934e-05/0.1685, allocations: 11.98 kB / 0.6482 GB, free: 4.992 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.414e-06/0.1685, allocations: 7.938 kB / 0.6482 GB, free: 4.984 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.584e-06/0.1685, allocations: 0 / 0.6482 GB, free: 4.984 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.814e-06/0.1685, allocations: 0 / 0.6482 GB, free: 4.984 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.1685, allocations: 0 / 0.6482 GB, free: 4.984 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002714/0.1688, allocations: 171.5 kB / 0.6484 GB, free: 4.801 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.402e-05/0.1689, allocations: 81.09 kB / 0.6484 GB, free: 4.703 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.312e-05/0.1689, allocations: 4 kB / 0.6484 GB, free: 4.699 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.158e-05/0.169, allocations: 4 kB / 0.6484 GB, free: 4.695 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.957e-05/0.169, allocations: 7.984 kB / 0.6484 GB, free: 4.688 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.038e-06/0.169, allocations: 0 / 0.6484 GB, free: 4.688 MB / 494.1 MB Notification: Performance of sorting global known variables: time 3.773e-05/0.1691, allocations: 83.28 kB / 0.6485 GB, free: 4.605 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1691, allocations: 0 / 0.6485 GB, free: 4.605 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002277/0.1693, allocations: 11.95 kB / 0.6485 GB, free: 4.594 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.0005681/0.1699, allocations: 0.7124 MB / 0.6492 GB, free: 3.852 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0002333/0.1701, allocations: 47.88 kB / 0.6493 GB, free: 3.805 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.1701, allocations: 0 / 0.6493 GB, free: 3.805 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001037/0.1702, allocations: 31.92 kB / 0.6493 GB, free: 3.773 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002969/0.1706, allocations: 8 kB / 0.6493 GB, free: 3.766 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004892/0.171, allocations: 143.6 kB / 0.6495 GB, free: 3.586 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002413/0.1713, allocations: 0.6806 MB / 0.6501 GB, free: 2.879 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 3.274e-05/0.1713, allocations: 4 kB / 0.6501 GB, free: 2.875 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.289e-05/0.1714, allocations: 15.44 kB / 0.6501 GB, free: 2.859 MB / 494.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1714, allocations: 4 kB / 0.6501 GB, free: 2.855 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01965/0.1911, allocations: 1.575 MB / 0.6517 GB, free: 1.348 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.408/7.599, allocations: 8.578 kB / 0.6517 GB, free: 1.34 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 & python3 -m fmpy simulate --output-file IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial_res.csv --start-time 0 --stop-time 13 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0052 IBPSA_latest_IBPSA_Utilities_Math_Examples_Factorial.fmu > IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial.pipe 2>&1)