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.00126/0.00126, 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.001375/0.001375, allocations: 194.1 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.287/1.287, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002062/0.002062, allocations: 287.1 kB / 290.7 MB, free: 1.988 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.918/0.918, allocations: 169.3 MB / 0.4982 GB, free: 13.88 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001623/0.001623, allocations: 98.09 kB / 0.5953 GB, free: 27.88 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1359/0.1376, allocations: 86.98 MB / 0.6803 GB, free: 0.5625 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.Factorial): time 0.002479/0.1401, allocations: 1.505 MB / 0.6818 GB, free: 15.06 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003034/0.1404, allocations: 124.5 kB / 0.6819 GB, free: 14.93 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.354e-05/0.1404, allocations: 0 / 0.6819 GB, free: 14.93 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 2.526e-05/0.1405, allocations: 4.656 kB / 0.6819 GB, free: 14.93 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 3.737e-05/0.1405, allocations: 4 kB / 0.6819 GB, free: 14.93 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001846/0.1407, allocations: 20.61 kB / 0.6819 GB, free: 14.91 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 6.138e-05/0.1408, allocations: 27.92 kB / 0.6819 GB, free: 14.88 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.873e-05/0.1409, allocations: 14.05 kB / 0.6819 GB, free: 14.87 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.758e-05/0.1409, allocations: 15.92 kB / 0.682 GB, free: 14.85 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.308e-05/0.141, allocations: 15.98 kB / 0.682 GB, free: 14.84 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.123e-05/0.141, allocations: 4 kB / 0.682 GB, free: 14.83 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.394e-05/0.141, allocations: 11.98 kB / 0.682 GB, free: 14.82 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.17e-05/0.1411, allocations: 7.938 kB / 0.682 GB, free: 14.81 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.791e-05/0.1411, allocations: 11.94 kB / 0.682 GB, free: 14.8 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001011/0.1412, allocations: 43.81 kB / 0.6821 GB, free: 14.76 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.236e-06/0.1412, allocations: 0 / 0.6821 GB, free: 14.76 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.062e-06/0.1412, allocations: 0 / 0.6821 GB, free: 14.76 MB / 494.1 MB Notification: Performance of Transformations before backend: time 8.005e-06/0.1412, allocations: 0 / 0.6821 GB, free: 14.76 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.0003859/0.1416, allocations: 339.5 kB / 0.6824 GB, free: 14.38 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.301e-05/0.1417, allocations: 16.03 kB / 0.6824 GB, free: 14.36 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.029e-05/0.1417, allocations: 38.73 kB / 0.6824 GB, free: 14.31 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.332e-05/0.1417, allocations: 0.9375 kB / 0.6824 GB, free: 14.31 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.535e-05/0.1418, allocations: 164.4 kB / 0.6826 GB, free: 14.11 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.869e-05/0.1418, allocations: 384 / 0.6826 GB, free: 14.11 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.117e-05/0.1419, allocations: 8.312 kB / 0.6826 GB, free: 14.11 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001694/0.142, allocations: 58.22 kB / 0.6826 GB, free: 14.04 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.997e-06/0.1421, allocations: 3.938 kB / 0.6827 GB, free: 14.04 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.075e-06/0.1421, allocations: 0 / 0.6827 GB, free: 14.04 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.089e-06/0.1421, allocations: 8 kB / 0.6827 GB, free: 14.03 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000186/0.1423, allocations: 35.95 kB / 0.6827 GB, free: 14 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003053/0.1426, allocations: 268.8 kB / 0.683 GB, free: 13.68 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002921/0.1429, allocations: 66.47 kB / 0.683 GB, free: 13.61 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.426e-05/0.143, allocations: 20.91 kB / 0.683 GB, free: 13.59 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001055/0.1431, allocations: 89.09 kB / 0.6831 GB, free: 13.48 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.602e-05/0.1431, allocations: 30.56 kB / 0.6831 GB, free: 13.44 MB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 1.343e-06/0.1431, allocations: 0 / 0.6831 GB, free: 13.44 MB / 494.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003566/0.1435, allocations: 93.77 kB / 0.6832 GB, free: 13.34 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.68e-05/0.1435, allocations: 55.39 kB / 0.6833 GB, free: 13.28 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.611e-05/0.1436, allocations: 105.8 kB / 0.6834 GB, free: 13.16 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.123e-05/0.1436, allocations: 29.64 kB / 0.6834 GB, free: 13.13 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.609e-05/0.1437, allocations: 84.14 kB / 0.6835 GB, free: 13.04 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.675e-05/0.1437, allocations: 11.89 kB / 0.6835 GB, free: 13.03 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.983e-05/0.1437, allocations: 13.66 kB / 0.6835 GB, free: 13.01 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 8.257e-05/0.1438, allocations: 318.8 kB / 0.6838 GB, free: 12.69 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.761e-05/0.1439, allocations: 19.97 kB / 0.6838 GB, free: 12.67 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.928e-05/0.144, allocations: 19.98 kB / 0.6839 GB, free: 12.65 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001638/0.1441, allocations: 48.75 kB / 0.6839 GB, free: 12.6 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.373e-06/0.1442, allocations: 4 kB / 0.6839 GB, free: 12.6 MB / 494.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002054/0.1444, allocations: 73.59 kB / 0.684 GB, free: 12.52 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.085e-05/0.1444, allocations: 8 kB / 0.684 GB, free: 12.51 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.789e-06/0.1444, allocations: 4 kB / 0.684 GB, free: 12.51 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.125e-05/0.1444, allocations: 0 / 0.684 GB, free: 12.51 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.037e-05/0.1445, allocations: 15.98 kB / 0.684 GB, free: 12.49 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.379e-06/0.1445, allocations: 0 / 0.684 GB, free: 12.49 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.692e-05/0.1446, allocations: 11.89 kB / 0.684 GB, free: 12.48 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.16e-06/0.1446, allocations: 0 / 0.684 GB, free: 12.48 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 6.4e-05/0.1447, allocations: 110.4 kB / 0.6841 GB, free: 12.36 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.459e-05/0.1447, allocations: 8 kB / 0.6841 GB, free: 12.36 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002393/0.1449, allocations: 81.14 kB / 0.6842 GB, free: 12.27 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.934e-06/0.1449, allocations: 3.938 kB / 0.6842 GB, free: 12.26 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.226e-06/0.1449, allocations: 0 / 0.6842 GB, free: 12.26 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.204e-06/0.145, allocations: 4 kB / 0.6842 GB, free: 12.26 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001525/0.1451, allocations: 165.6 kB / 0.6844 GB, free: 12.05 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.1451, allocations: 0 / 0.6844 GB, free: 12.05 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.253e-05/0.1452, allocations: 11.98 kB / 0.6844 GB, free: 12.04 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.834e-06/0.1452, allocations: 4 kB / 0.6844 GB, free: 12.03 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.172e-06/0.1452, allocations: 0 / 0.6844 GB, free: 12.03 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.056e-06/0.1452, allocations: 4 kB / 0.6844 GB, free: 12.03 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.1452, allocations: 0 / 0.6844 GB, free: 12.03 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002406/0.1455, allocations: 175.4 kB / 0.6846 GB, free: 11.84 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.859e-05/0.1455, allocations: 81.02 kB / 0.6846 GB, free: 11.74 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.249e-05/0.1455, allocations: 0 / 0.6846 GB, free: 11.74 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.291e-05/0.1456, allocations: 11.98 kB / 0.6847 GB, free: 11.73 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.381e-05/0.1457, allocations: 11.98 kB / 0.6847 GB, free: 11.72 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.509e-06/0.1457, allocations: 432 / 0.6847 GB, free: 11.72 MB / 494.1 MB Notification: Performance of sorting global known variables: time 3.597e-05/0.1457, allocations: 87.2 kB / 0.6848 GB, free: 11.63 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1457, allocations: 0 / 0.6848 GB, free: 11.63 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.000219/0.1459, allocations: 11.94 kB / 0.6848 GB, free: 11.62 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.0005153/0.1465, allocations: 0.7085 MB / 0.6855 GB, free: 10.88 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0002185/0.1467, allocations: 51.83 kB / 0.6855 GB, free: 10.83 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 4.038e-06/0.1467, allocations: 4 kB / 0.6855 GB, free: 10.83 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 9.421e-05/0.1468, allocations: 23.97 kB / 0.6855 GB, free: 10.8 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002536/0.1471, allocations: 8 kB / 0.6855 GB, free: 10.8 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003956/0.1475, allocations: 151.2 kB / 0.6857 GB, free: 10.61 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001926/0.1477, allocations: 0.6768 MB / 0.6863 GB, free: 9.906 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 2.934e-05/0.1477, allocations: 7.969 kB / 0.6864 GB, free: 9.898 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.236e-05/0.1478, allocations: 15.44 kB / 0.6864 GB, free: 9.883 MB / 494.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1478, allocations: 0 / 0.6864 GB, free: 9.883 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0165/0.1643, allocations: 1.559 MB / 0.6879 GB, free: 8.391 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.982/7.146, allocations: 10.11 kB / 0.6879 GB, free: 8.387 MB / 494.1 MB (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)