Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.Utilities.Math.Examples.FallingFactorial.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.FallingFactorial,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_Math_Examples_FallingFactorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Utilities.Math.Examples.FallingFactorial,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_Math_Examples_FallingFactorial",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.001295/0.001295, allocations: 107.6 kB / 16.41 MB, free: 6.5 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.001293/0.001293, allocations: 185.2 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.444/1.444, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.8382/0.8382, allocations: 126.7 MB / 417.9 MB, free: 12.24 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001962/0.001962, allocations: 65.33 kB / 0.5735 GB, free: 26.95 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1467/0.1487, allocations: 78.86 MB / 0.6506 GB, free: 3.586 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Math.Examples.FallingFactorial): time 0.002963/0.1517, allocations: 1.52 MB / 0.652 GB, free: 2.055 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004159/0.1521, allocations: 146.2 kB / 0.6522 GB, free: 1.91 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.786e-05/0.1522, allocations: 3.938 kB / 0.6522 GB, free: 1.906 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 2.819e-05/0.1522, allocations: 0 / 0.6522 GB, free: 1.906 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.961e-05/0.1523, allocations: 7.922 kB / 0.6522 GB, free: 1.898 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002728/0.1525, allocations: 27.91 kB / 0.6522 GB, free: 1.871 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 7.343e-05/0.1526, allocations: 35.92 kB / 0.6523 GB, free: 1.836 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.519e-05/0.1527, allocations: 12 kB / 0.6523 GB, free: 1.824 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.206e-05/0.1528, allocations: 23.91 kB / 0.6523 GB, free: 1.801 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.494e-05/0.1528, allocations: 19.92 kB / 0.6523 GB, free: 1.781 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.478e-05/0.1528, allocations: 4 kB / 0.6523 GB, free: 1.777 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.251e-05/0.1529, allocations: 19.98 kB / 0.6523 GB, free: 1.758 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.544e-05/0.1529, allocations: 7.984 kB / 0.6523 GB, free: 1.75 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 3.062e-05/0.153, allocations: 15.88 kB / 0.6524 GB, free: 1.734 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001297/0.1531, allocations: 52.08 kB / 0.6524 GB, free: 1.684 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.956e-06/0.1531, allocations: 0 / 0.6524 GB, free: 1.684 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.1531, allocations: 0 / 0.6524 GB, free: 1.684 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.839e-06/0.1531, allocations: 0 / 0.6524 GB, free: 1.684 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004935/0.1536, allocations: 355.4 kB / 0.6527 GB, free: 1.285 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.419e-05/0.1537, allocations: 8.031 kB / 0.6527 GB, free: 1.277 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.5e-05/0.1537, allocations: 34.69 kB / 0.6528 GB, free: 1.234 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.933e-05/0.1537, allocations: 8.891 kB / 0.6528 GB, free: 1.227 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001317/0.1539, allocations: 168.3 kB / 0.6529 GB, free: 1.023 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.956e-05/0.1539, allocations: 8.375 kB / 0.653 GB, free: 1.016 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.051e-05/0.1539, allocations: 4.312 kB / 0.653 GB, free: 1.012 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000188/0.1541, allocations: 66.22 kB / 0.653 GB, free: 0.9414 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.586e-06/0.1541, allocations: 7.938 kB / 0.653 GB, free: 0.9336 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.147e-06/0.1541, allocations: 0 / 0.653 GB, free: 0.9336 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.057e-06/0.1542, allocations: 0 / 0.653 GB, free: 0.9336 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001946/0.1544, allocations: 43.95 kB / 0.6531 GB, free: 0.8906 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003899/0.1548, allocations: 280.7 kB / 0.6533 GB, free: 0.5664 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003216/0.1551, allocations: 66.52 kB / 0.6534 GB, free: 0.4922 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001001/0.1552, allocations: 24.91 kB / 0.6534 GB, free: 476 kB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004717/0.1557, allocations: 401.5 kB / 0.6538 GB, free: 15.98 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.74e-05/0.1557, allocations: 34.5 kB / 0.6538 GB, free: 15.94 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=3): time 1.183e-06/0.1557, allocations: 3.938 kB / 0.6538 GB, free: 15.93 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3): time 0.0003895/0.1561, allocations: 97.64 kB / 0.6539 GB, free: 15.83 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.371e-05/0.1562, allocations: 51.41 kB / 0.654 GB, free: 15.77 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.784e-05/0.1563, allocations: 109.8 kB / 0.6541 GB, free: 15.65 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.806e-05/0.1563, allocations: 25.7 kB / 0.6541 GB, free: 15.62 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.00012/0.1564, allocations: 92.12 kB / 0.6542 GB, free: 15.53 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 1.315e-05/0.1564, allocations: 3.953 kB / 0.6542 GB, free: 15.52 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.823e-05/0.1565, allocations: 17.72 kB / 0.6542 GB, free: 15.5 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0002551/0.1567, allocations: 322.8 kB / 0.6545 GB, free: 15.18 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.452e-05/0.1568, allocations: 19.98 kB / 0.6546 GB, free: 15.16 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.757e-05/0.1569, allocations: 19.98 kB / 0.6546 GB, free: 15.14 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001787/0.1571, allocations: 48.75 kB / 0.6546 GB, free: 15.09 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.1571, allocations: 0 / 0.6546 GB, free: 15.09 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002768/0.1574, allocations: 73.66 kB / 0.6547 GB, free: 15.01 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.298e-05/0.1574, allocations: 4 kB / 0.6547 GB, free: 15 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.34e-06/0.1574, allocations: 7.984 kB / 0.6547 GB, free: 15 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.264e-05/0.1575, allocations: 0 / 0.6547 GB, free: 15 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.961e-05/0.1575, allocations: 8 kB / 0.6547 GB, free: 14.99 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.973e-06/0.1576, allocations: 3.984 kB / 0.6547 GB, free: 14.98 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.743e-05/0.1576, allocations: 8 kB / 0.6547 GB, free: 14.98 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.45e-06/0.1576, allocations: 0 / 0.6547 GB, free: 14.98 MB / 0.4981 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 (falFac.y,rea2Int.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.0001014/0.1577, allocations: 121.7 kB / 0.6548 GB, free: 14.85 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.84e-05/0.1578, allocations: 11.88 kB / 0.6548 GB, free: 14.84 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002645/0.158, allocations: 85.55 kB / 0.6549 GB, free: 14.74 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.063e-06/0.1581, allocations: 0 / 0.6549 GB, free: 14.74 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.104e-06/0.1581, allocations: 4 kB / 0.6549 GB, free: 14.74 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.494e-06/0.1581, allocations: 0 / 0.6549 GB, free: 14.74 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001865/0.1583, allocations: 165.6 kB / 0.6551 GB, free: 14.53 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.72e-07/0.1583, allocations: 0 / 0.6551 GB, free: 14.53 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.023e-05/0.1584, allocations: 19.98 kB / 0.6551 GB, free: 14.51 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.553e-06/0.1584, allocations: 0 / 0.6551 GB, free: 14.51 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.193e-06/0.1584, allocations: 3.938 kB / 0.6551 GB, free: 14.5 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.232e-06/0.1584, allocations: 0 / 0.6551 GB, free: 14.5 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/0.1584, allocations: 0 / 0.6551 GB, free: 14.5 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002824/0.1587, allocations: 183.7 kB / 0.6553 GB, free: 14.31 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.802e-05/0.1587, allocations: 85.09 kB / 0.6554 GB, free: 14.21 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.311e-05/0.1588, allocations: 4 kB / 0.6554 GB, free: 14.2 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.619e-05/0.1588, allocations: 7.984 kB / 0.6554 GB, free: 14.2 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.69e-05/0.1589, allocations: 8 kB / 0.6554 GB, free: 14.19 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.118e-06/0.1589, allocations: 0 / 0.6554 GB, free: 14.19 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 5.647e-05/0.159, allocations: 95.56 kB / 0.6555 GB, free: 14.09 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.159, allocations: 0 / 0.6555 GB, free: 14.09 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002239/0.1592, allocations: 8 kB / 0.6555 GB, free: 14.09 MB / 0.4981 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 (rea2Int.y,falFac.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.0007512/0.16, allocations: 0.7163 MB / 0.6562 GB, free: 13.34 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0002363/0.1602, allocations: 39.95 kB / 0.6562 GB, free: 13.3 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.1602, allocations: 4 kB / 0.6562 GB, free: 13.3 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001023/0.1603, allocations: 27.97 kB / 0.6563 GB, free: 13.27 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002891/0.1606, allocations: 12.44 kB / 0.6563 GB, free: 13.27 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00154/0.1622, allocations: 1.28 MB / 0.6575 GB, free: 11.91 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003277/0.1625, allocations: 0.6846 MB / 0.6582 GB, free: 11.2 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 3.614e-05/0.1626, allocations: 8 kB / 0.6582 GB, free: 11.19 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.632e-05/0.1626, allocations: 15.44 kB / 0.6582 GB, free: 11.17 MB / 0.4981 GB Notification: Performance of SimCode: time 2.1e-07/0.1626, allocations: 0 / 0.6582 GB, free: 11.17 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02307/0.1857, allocations: 1.676 MB / 0.6598 GB, free: 9.57 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.191/8.376, allocations: 5.234 kB / 0.6599 GB, free: 9.566 MB / 0.4981 GB (rm -f IBPSA_latest_IBPSA.Utilities.Math.Examples.FallingFactorial.pipe ; mkfifo IBPSA_latest_IBPSA.Utilities.Math.Examples.FallingFactorial.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Utilities.Math.Examples.FallingFactorial.pipe >> ../files/IBPSA_latest_IBPSA.Utilities.Math.Examples.FallingFactorial.sim & python3 -m fmpy simulate --output-file IBPSA_latest_IBPSA.Utilities.Math.Examples.FallingFactorial_res.csv --start-time 0 --stop-time 11 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0044 IBPSA_latest_IBPSA_Utilities_Math_Examples_FallingFactorial.fmu > IBPSA_latest_IBPSA.Utilities.Math.Examples.FallingFactorial.pipe 2>&1)