Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/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.FallingFactorial,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_FallingFactorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.FallingFactorial,fileNamePrefix="BuildingSystems_BuildingSystems_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.001128/0.001128, allocations: 108 kB / 15.61 MB, free: 152 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.001368/0.001368, allocations: 193.8 kB / 16.53 MB, free: 6.664 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.321/1.321, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002159/0.002159, allocations: 290.4 kB / 290.7 MB, free: 2 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9137/0.9137, allocations: 169.2 MB / 0.4982 GB, free: 13.96 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00184/0.00184, allocations: 98.95 kB / 0.5953 GB, free: 27.78 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1248/0.1267, allocations: 86.98 MB / 0.6803 GB, free: 0.5586 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.FallingFactorial): time 0.003182/0.1299, allocations: 1.53 MB / 0.6818 GB, free: 15.04 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.000356/0.1303, allocations: 132.5 kB / 0.6819 GB, free: 14.9 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.068e-05/0.1304, allocations: 0.625 kB / 0.6819 GB, free: 14.9 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 2.698e-05/0.1304, allocations: 3.938 kB / 0.6819 GB, free: 14.9 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.552e-05/0.1305, allocations: 4.594 kB / 0.6819 GB, free: 14.89 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00027/0.1307, allocations: 32.69 kB / 0.6819 GB, free: 14.86 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 6.645e-05/0.1308, allocations: 31.92 kB / 0.682 GB, free: 14.83 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.468e-05/0.1309, allocations: 21.69 kB / 0.682 GB, free: 14.81 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.838e-05/0.131, allocations: 16.64 kB / 0.682 GB, free: 14.8 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.176e-05/0.131, allocations: 19.92 kB / 0.682 GB, free: 14.78 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.614e-05/0.131, allocations: 4.531 kB / 0.682 GB, free: 14.77 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.499e-05/0.1311, allocations: 16 kB / 0.6821 GB, free: 14.76 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.642e-05/0.1311, allocations: 9.891 kB / 0.6821 GB, free: 14.75 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 3.526e-05/0.1312, allocations: 19.86 kB / 0.6821 GB, free: 14.73 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001269/0.1313, allocations: 47.81 kB / 0.6821 GB, free: 14.68 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.1313, allocations: 0 / 0.6821 GB, free: 14.68 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.1313, allocations: 0 / 0.6821 GB, free: 14.68 MB / 494.1 MB Notification: Performance of Transformations before backend: time 9.308e-06/0.1313, allocations: 4 kB / 0.6821 GB, free: 14.68 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.0005315/0.1319, allocations: 347.5 kB / 0.6825 GB, free: 14.29 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.901e-05/0.1319, allocations: 8.031 kB / 0.6825 GB, free: 14.28 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.512e-05/0.132, allocations: 34.73 kB / 0.6825 GB, free: 14.24 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.907e-05/0.132, allocations: 4.938 kB / 0.6825 GB, free: 14.23 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001221/0.1321, allocations: 168.2 kB / 0.6827 GB, free: 14.03 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.55e-05/0.1322, allocations: 8.375 kB / 0.6827 GB, free: 14.02 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.214e-05/0.1322, allocations: 384 / 0.6827 GB, free: 14.02 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001966/0.1324, allocations: 74.14 kB / 0.6827 GB, free: 13.95 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.456e-06/0.1324, allocations: 11.88 kB / 0.6828 GB, free: 13.93 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.788e-06/0.1324, allocations: 0 / 0.6828 GB, free: 13.93 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.909e-06/0.1324, allocations: 0 / 0.6828 GB, free: 13.93 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001949/0.1326, allocations: 47.95 kB / 0.6828 GB, free: 13.89 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003555/0.133, allocations: 276.8 kB / 0.6831 GB, free: 13.57 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003053/0.1333, allocations: 62.53 kB / 0.6831 GB, free: 13.5 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.353e-05/0.1334, allocations: 24.78 kB / 0.6831 GB, free: 13.47 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002574/0.1337, allocations: 401.5 kB / 0.6835 GB, free: 12.98 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.829e-05/0.1337, allocations: 30.56 kB / 0.6836 GB, free: 12.95 MB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 1.252e-06/0.1337, allocations: 4 kB / 0.6836 GB, free: 12.94 MB / 494.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003852/0.1341, allocations: 101.5 kB / 0.6837 GB, free: 12.84 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.248e-05/0.1341, allocations: 55.34 kB / 0.6837 GB, free: 12.77 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.998e-05/0.1342, allocations: 105.8 kB / 0.6838 GB, free: 12.66 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.279e-05/0.1342, allocations: 25.7 kB / 0.6838 GB, free: 12.62 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.093e-05/0.1343, allocations: 88.14 kB / 0.6839 GB, free: 12.54 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.415e-05/0.1343, allocations: 3.906 kB / 0.6839 GB, free: 12.53 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.54e-05/0.1344, allocations: 21.72 kB / 0.6839 GB, free: 12.5 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001198/0.1345, allocations: 318.8 kB / 0.6843 GB, free: 12.18 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.383e-05/0.1346, allocations: 19.98 kB / 0.6843 GB, free: 12.16 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.579e-05/0.1347, allocations: 23.97 kB / 0.6843 GB, free: 12.14 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001729/0.1349, allocations: 40.83 kB / 0.6843 GB, free: 12.1 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.1349, allocations: 4 kB / 0.6843 GB, free: 12.09 MB / 494.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002251/0.1351, allocations: 81.77 kB / 0.6844 GB, free: 12.01 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.611e-05/0.1351, allocations: 4 kB / 0.6844 GB, free: 12 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.25e-06/0.1351, allocations: 4 kB / 0.6844 GB, free: 12 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.38e-05/0.1351, allocations: 0 / 0.6844 GB, free: 12 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.784e-05/0.1352, allocations: 16.03 kB / 0.6844 GB, free: 11.98 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.641e-06/0.1353, allocations: 0 / 0.6844 GB, free: 11.98 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.91e-05/0.1353, allocations: 7.984 kB / 0.6844 GB, free: 11.98 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.933e-06/0.1353, allocations: 7.984 kB / 0.6845 GB, free: 11.97 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 (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 8.466e-05/0.1354, allocations: 118.4 kB / 0.6846 GB, free: 11.84 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.645e-05/0.1355, allocations: 0 / 0.6846 GB, free: 11.84 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002669/0.1357, allocations: 85.55 kB / 0.6846 GB, free: 11.75 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.434e-06/0.1358, allocations: 0 / 0.6846 GB, free: 11.75 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.897e-06/0.1358, allocations: 0 / 0.6846 GB, free: 11.75 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.37e-06/0.1358, allocations: 0 / 0.6846 GB, free: 11.75 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001796/0.136, allocations: 185.5 kB / 0.6848 GB, free: 11.52 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.136, allocations: 0 / 0.6848 GB, free: 11.52 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.558e-05/0.136, allocations: 11.98 kB / 0.6848 GB, free: 11.51 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.403e-05/0.1361, allocations: 0 / 0.6848 GB, free: 11.51 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.374e-06/0.1361, allocations: 3.938 kB / 0.6848 GB, free: 11.5 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.114e-06/0.1361, allocations: 320 / 0.6848 GB, free: 11.5 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/0.1361, allocations: 7.938 kB / 0.6848 GB, free: 11.5 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002567/0.1364, allocations: 179.3 kB / 0.685 GB, free: 11.3 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.537e-05/0.1364, allocations: 77.11 kB / 0.6851 GB, free: 11.21 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.455e-05/0.1364, allocations: 0 / 0.6851 GB, free: 11.21 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.413e-05/0.1365, allocations: 7.984 kB / 0.6851 GB, free: 11.2 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.24e-05/0.1366, allocations: 8 kB / 0.6851 GB, free: 11.2 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.173e-06/0.1366, allocations: 7.984 kB / 0.6851 GB, free: 11.19 MB / 494.1 MB Notification: Performance of sorting global known variables: time 4.764e-05/0.1366, allocations: 91.27 kB / 0.6852 GB, free: 11.1 MB / 494.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1366, allocations: 0 / 0.6852 GB, free: 11.1 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002341/0.1369, allocations: 12 kB / 0.6852 GB, free: 11.09 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 (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.0005784/0.1375, allocations: 0.7162 MB / 0.6859 GB, free: 10.34 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0002329/0.1377, allocations: 47.95 kB / 0.686 GB, free: 10.3 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.844e-06/0.1377, allocations: 0 / 0.686 GB, free: 10.3 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 9.961e-05/0.1378, allocations: 31.91 kB / 0.686 GB, free: 10.27 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002676/0.1381, allocations: 4 kB / 0.686 GB, free: 10.26 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001377/0.1395, allocations: 1.277 MB / 0.6872 GB, free: 8.906 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002591/0.1398, allocations: 0.6807 MB / 0.6879 GB, free: 8.199 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 5.141e-05/0.1398, allocations: 8.031 kB / 0.6879 GB, free: 8.191 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.414e-05/0.1399, allocations: 11.44 kB / 0.6879 GB, free: 8.18 MB / 494.1 MB Notification: Performance of SimCode: time 3.11e-07/0.1399, allocations: 0 / 0.6879 GB, free: 8.18 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1761/0.316, allocations: 1.681 MB / 0.6896 GB, free: 6.582 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.318/7.634, allocations: 8 kB / 0.6896 GB, free: 6.574 MB / 494.1 MB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.FallingFactorial.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.FallingFactorial.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.FallingFactorial.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.FallingFactorial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Examples_FallingFactorial_fmu --startTime=0 --stopTime=11 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Math_Examples_FallingFactorial.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.FallingFactorial.pipe 2>&1)