Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Utilities.Math.Examples.Factorial,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.Factorial,fileNamePrefix="BuildingSystems_BuildingSystems_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.001287/0.001287, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001391/0.001391, allocations: 193.8 kB / 16.53 MB, free: 6.391 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.352/1.352, allocations: 222.9 MB / 240.2 MB, free: 4.273 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002428/0.002428, allocations: 286.3 kB / 290.7 MB, free: 1.879 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.017/1.017, allocations: 178.6 MB / 0.5073 GB, free: 4.594 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002803/0.002803, allocations: 103.5 kB / 0.6065 GB, free: 24.59 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1546/0.1574, allocations: 89.15 MB / 0.6936 GB, free: 4.258 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.Factorial): time 0.002896/0.1604, allocations: 1.51 MB / 0.6951 GB, free: 2.742 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003474/0.1607, allocations: 132.3 kB / 0.6952 GB, free: 2.609 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.48e-05/0.1608, allocations: 0 / 0.6952 GB, free: 2.609 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 3.152e-05/0.1608, allocations: 7.922 kB / 0.6952 GB, free: 2.602 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 3.456e-05/0.1608, allocations: 0 / 0.6952 GB, free: 2.602 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002126/0.1611, allocations: 26.17 kB / 0.6952 GB, free: 2.578 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 6.577e-05/0.1611, allocations: 31.91 kB / 0.6953 GB, free: 2.547 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.412e-05/0.1612, allocations: 4 kB / 0.6953 GB, free: 2.543 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.226e-05/0.1613, allocations: 15.92 kB / 0.6953 GB, free: 2.527 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.344e-05/0.1613, allocations: 15.98 kB / 0.6953 GB, free: 2.512 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.429e-05/0.1613, allocations: 4 kB / 0.6953 GB, free: 2.508 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.357e-05/0.1614, allocations: 12 kB / 0.6953 GB, free: 2.496 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.727e-05/0.1614, allocations: 11.92 kB / 0.6953 GB, free: 2.484 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.916e-05/0.1615, allocations: 15.92 kB / 0.6953 GB, free: 2.469 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001015/0.1616, allocations: 31.91 kB / 0.6954 GB, free: 2.438 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.913e-06/0.1616, allocations: 3.984 kB / 0.6954 GB, free: 2.434 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.1616, allocations: 0 / 0.6954 GB, free: 2.434 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.318e-06/0.1616, allocations: 0 / 0.6954 GB, free: 2.434 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.0004955/0.1621, allocations: 347.7 kB / 0.6957 GB, free: 2.043 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.266e-05/0.1621, allocations: 8.031 kB / 0.6957 GB, free: 2.035 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.089e-05/0.1622, allocations: 34.75 kB / 0.6957 GB, free: 1.992 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.236e-05/0.1622, allocations: 0.9375 kB / 0.6957 GB, free: 1.992 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001379/0.1624, allocations: 172.2 kB / 0.6959 GB, free: 1.785 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.469e-05/0.1624, allocations: 12.36 kB / 0.6959 GB, free: 1.773 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.215e-06/0.1624, allocations: 384 / 0.6959 GB, free: 1.773 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001795/0.1626, allocations: 54.23 kB / 0.696 GB, free: 1.715 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.068e-05/0.1626, allocations: 3.938 kB / 0.696 GB, free: 1.711 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.788e-06/0.1626, allocations: 8 kB / 0.696 GB, free: 1.703 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.627e-06/0.1626, allocations: 0 / 0.696 GB, free: 1.703 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001867/0.1628, allocations: 39.95 kB / 0.696 GB, free: 1.664 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003839/0.1632, allocations: 268.9 kB / 0.6963 GB, free: 1.352 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003067/0.1635, allocations: 58.48 kB / 0.6963 GB, free: 1.285 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00011/0.1637, allocations: 28.89 kB / 0.6964 GB, free: 1.254 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000127/0.1638, allocations: 81.11 kB / 0.6964 GB, free: 1.156 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.087e-05/0.1638, allocations: 34.56 kB / 0.6965 GB, free: 1.113 MB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 1.162e-06/0.1638, allocations: 0 / 0.6965 GB, free: 1.113 MB / 494.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003897/0.1642, allocations: 97.56 kB / 0.6966 GB, free: 1.012 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.558e-05/0.1643, allocations: 51.41 kB / 0.6966 GB, free: 0.9492 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.971e-05/0.1644, allocations: 105.8 kB / 0.6967 GB, free: 0.8359 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.803e-05/0.1644, allocations: 25.7 kB / 0.6967 GB, free: 0.8047 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.098e-05/0.1645, allocations: 87.98 kB / 0.6968 GB, free: 0.7148 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.405e-05/0.1645, allocations: 4 kB / 0.6968 GB, free: 0.7109 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.6e-05/0.1645, allocations: 13.72 kB / 0.6968 GB, free: 0.6914 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001449/0.1647, allocations: 326.8 kB / 0.6972 GB, free: 372 kB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.23e-05/0.1648, allocations: 19.92 kB / 0.6972 GB, free: 352 kB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.31e-05/0.1649, allocations: 24.34 kB / 0.6972 GB, free: 328 kB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001727/0.165, allocations: 48.84 kB / 0.6972 GB, free: 276 kB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.1651, allocations: 0 / 0.6972 GB, free: 276 kB / 494.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002319/0.1653, allocations: 85.48 kB / 0.6973 GB, free: 184 kB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.27e-05/0.1653, allocations: 4 kB / 0.6973 GB, free: 180 kB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.657e-06/0.1653, allocations: 0 / 0.6973 GB, free: 180 kB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.193e-05/0.1653, allocations: 0 / 0.6973 GB, free: 180 kB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.76e-05/0.1654, allocations: 11.98 kB / 0.6973 GB, free: 168 kB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.05e-06/0.1654, allocations: 0 / 0.6973 GB, free: 168 kB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.53e-05/0.1655, allocations: 8 kB / 0.6973 GB, free: 160 kB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.244e-06/0.1655, allocations: 4 kB / 0.6973 GB, free: 156 kB / 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 8.554e-05/0.1656, allocations: 118.4 kB / 0.6975 GB, free: 28 kB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.574e-05/0.1656, allocations: 4 kB / 0.6975 GB, free: 24 kB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002828/0.1659, allocations: 89.06 kB / 0.6976 GB, free: 15.93 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.014e-06/0.1659, allocations: 0 / 0.6976 GB, free: 15.93 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.337e-06/0.1659, allocations: 0 / 0.6976 GB, free: 15.93 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.364e-06/0.1659, allocations: 0 / 0.6976 GB, free: 15.93 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002014/0.1661, allocations: 165.6 kB / 0.6977 GB, free: 15.72 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.72e-07/0.1661, allocations: 0 / 0.6977 GB, free: 15.72 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.553e-05/0.1662, allocations: 15.98 kB / 0.6977 GB, free: 15.7 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.513e-06/0.1662, allocations: 0 / 0.6977 GB, free: 15.7 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.262e-06/0.1662, allocations: 0 / 0.6977 GB, free: 15.7 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.767e-06/0.1663, allocations: 4 kB / 0.6977 GB, free: 15.7 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.1663, allocations: 0 / 0.6977 GB, free: 15.7 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002763/0.1665, allocations: 175.4 kB / 0.6979 GB, free: 15.51 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.377e-05/0.1666, allocations: 81.09 kB / 0.698 GB, free: 15.41 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.32e-05/0.1666, allocations: 8 kB / 0.698 GB, free: 15.41 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.152e-05/0.1667, allocations: 4 kB / 0.698 GB, free: 15.4 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.171e-05/0.1668, allocations: 7.922 kB / 0.698 GB, free: 15.39 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.551e-06/0.1668, allocations: 4 kB / 0.698 GB, free: 15.39 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 4.337e-05/0.1668, allocations: 79.28 kB / 0.6981 GB, free: 15.31 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.1668, allocations: 0 / 0.6981 GB, free: 15.31 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002155/0.167, allocations: 11.98 kB / 0.6981 GB, free: 15.3 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 (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.0006596/0.1677, allocations: 0.7126 MB / 0.6988 GB, free: 14.56 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0002385/0.168, allocations: 55.92 kB / 0.6988 GB, free: 14.5 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.168, allocations: 0 / 0.6988 GB, free: 14.5 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001043/0.1681, allocations: 27.98 kB / 0.6989 GB, free: 14.48 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002488/0.1683, allocations: 7.938 kB / 0.6989 GB, free: 14.47 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004207/0.1688, allocations: 143.2 kB / 0.699 GB, free: 14.29 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003023/0.1691, allocations: 0.6807 MB / 0.6997 GB, free: 13.58 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 2.98e-05/0.1691, allocations: 4 kB / 0.6997 GB, free: 13.58 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.768e-05/0.1692, allocations: 15.44 kB / 0.6997 GB, free: 13.56 MB / 0.4981 GB Notification: Performance of SimCode: time 2.4e-07/0.1692, allocations: 0 / 0.6997 GB, free: 13.56 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02236/0.1915, allocations: 1.564 MB / 0.7012 GB, free: 12.07 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.395/7.587, allocations: 3.984 kB / 0.7012 GB, free: 12.07 MB / 0.4981 GB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.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 BuildingSystems_BuildingSystems_Utilities_Math_Examples_Factorial.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.pipe 2>&1)