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.001113/0.001113, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.00125/0.00125, allocations: 191.3 kB / 16.14 MB, free: 6.715 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.288/1.288, allocations: 222.9 MB / 239.8 MB, free: 4.617 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002027/0.002027, allocations: 287.4 kB / 290.2 MB, free: 2.223 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9138/0.9138, allocations: 169.2 MB / 0.4977 GB, free: 14.16 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001645/0.001645, allocations: 96.52 kB / 0.5946 GB, free: 28.34 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1548/0.1565, allocations: 86.99 MB / 0.6795 GB, free: 1.055 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.FallingFactorial): time 0.002555/0.1591, allocations: 1.574 MB / 0.6811 GB, free: 15.48 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003699/0.1595, allocations: 133.1 kB / 0.6812 GB, free: 15.35 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.548e-05/0.1595, allocations: 0.875 kB / 0.6812 GB, free: 15.35 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 3.388e-05/0.1595, allocations: 0 / 0.6812 GB, free: 15.35 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.577e-05/0.1596, allocations: 3.938 kB / 0.6812 GB, free: 15.34 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002392/0.1598, allocations: 20.52 kB / 0.6812 GB, free: 15.32 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 6.572e-05/0.1599, allocations: 49.05 kB / 0.6813 GB, free: 15.28 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.846e-05/0.16, allocations: 13.06 kB / 0.6813 GB, free: 15.27 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.169e-05/0.1601, allocations: 15.98 kB / 0.6813 GB, free: 15.25 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.152e-05/0.1601, allocations: 19.92 kB / 0.6813 GB, free: 15.23 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.286e-05/0.1601, allocations: 0 / 0.6813 GB, free: 15.23 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.456e-05/0.1602, allocations: 19.98 kB / 0.6813 GB, free: 15.21 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.401e-05/0.1602, allocations: 7.922 kB / 0.6814 GB, free: 15.2 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.73e-05/0.1602, allocations: 11.94 kB / 0.6814 GB, free: 15.19 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001148/0.1604, allocations: 51.8 kB / 0.6814 GB, free: 15.14 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.1604, allocations: 0 / 0.6814 GB, free: 15.14 MB / 494.1 MB Notification: Performance of FrontEnd: time 7.21e-07/0.1604, allocations: 0 / 0.6814 GB, free: 15.14 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.837e-06/0.1604, allocations: 0 / 0.6814 GB, free: 15.14 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.0004467/0.1608, allocations: 347.5 kB / 0.6817 GB, free: 14.75 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.615e-05/0.1609, allocations: 16.02 kB / 0.6818 GB, free: 14.73 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.465e-05/0.161, allocations: 30.75 kB / 0.6818 GB, free: 14.7 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.403e-05/0.161, allocations: 8.938 kB / 0.6818 GB, free: 14.69 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001298/0.1611, allocations: 176.2 kB / 0.682 GB, free: 14.48 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.401e-05/0.1612, allocations: 384 / 0.682 GB, free: 14.48 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.067e-05/0.1612, allocations: 8.312 kB / 0.682 GB, free: 14.47 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002047/0.1614, allocations: 62.22 kB / 0.682 GB, free: 14.4 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.738e-06/0.1614, allocations: 3.938 kB / 0.682 GB, free: 14.4 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.382e-05/0.1614, allocations: 7.984 kB / 0.682 GB, free: 14.39 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.201e-06/0.1614, allocations: 4 kB / 0.6821 GB, free: 14.39 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001862/0.1616, allocations: 43.95 kB / 0.6821 GB, free: 14.34 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003504/0.162, allocations: 272.8 kB / 0.6824 GB, free: 14.03 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003038/0.1623, allocations: 62.53 kB / 0.6824 GB, free: 13.96 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.301e-05/0.1624, allocations: 29.41 kB / 0.6824 GB, free: 13.93 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002519/0.1627, allocations: 397.5 kB / 0.6828 GB, free: 13.45 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.365e-05/0.1627, allocations: 30.56 kB / 0.6829 GB, free: 13.41 MB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 1.092e-06/0.1627, allocations: 0 / 0.6829 GB, free: 13.41 MB / 494.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003591/0.1631, allocations: 105.5 kB / 0.683 GB, free: 13.3 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.252e-05/0.1631, allocations: 55.41 kB / 0.683 GB, free: 13.23 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.952e-05/0.1632, allocations: 109.8 kB / 0.6831 GB, free: 13.11 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.311e-05/0.1632, allocations: 29.7 kB / 0.6831 GB, free: 13.08 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.87e-05/0.1633, allocations: 88.2 kB / 0.6832 GB, free: 12.99 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.349e-05/0.1633, allocations: 3.906 kB / 0.6832 GB, free: 12.98 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.729e-05/0.1633, allocations: 21.7 kB / 0.6832 GB, free: 12.96 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.000115/0.1634, allocations: 322.8 kB / 0.6836 GB, free: 12.63 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.32e-05/0.1635, allocations: 15.98 kB / 0.6836 GB, free: 12.62 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.976e-05/0.1636, allocations: 23.97 kB / 0.6836 GB, free: 12.59 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001692/0.1638, allocations: 40.83 kB / 0.6836 GB, free: 12.55 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.097e-06/0.1638, allocations: 3.984 kB / 0.6836 GB, free: 12.55 MB / 494.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000214/0.164, allocations: 89.44 kB / 0.6837 GB, free: 12.45 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.574e-05/0.1641, allocations: 4 kB / 0.6837 GB, free: 12.45 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.609e-06/0.1641, allocations: 0 / 0.6837 GB, free: 12.45 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.235e-05/0.1641, allocations: 4 kB / 0.6837 GB, free: 12.45 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.875e-05/0.1642, allocations: 7.984 kB / 0.6837 GB, free: 12.44 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.957e-06/0.1642, allocations: 4 kB / 0.6837 GB, free: 12.43 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.756e-05/0.1642, allocations: 7.984 kB / 0.6837 GB, free: 12.43 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.721e-06/0.1643, allocations: 0 / 0.6837 GB, free: 12.43 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 7.848e-05/0.1643, allocations: 114.4 kB / 0.6839 GB, free: 12.3 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.689e-05/0.1644, allocations: 4 kB / 0.6839 GB, free: 12.3 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002493/0.1646, allocations: 89.42 kB / 0.6839 GB, free: 12.2 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.635e-06/0.1646, allocations: 4 kB / 0.6839 GB, free: 12.2 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.928e-06/0.1646, allocations: 0 / 0.6839 GB, free: 12.2 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.527e-06/0.1647, allocations: 384 / 0.6839 GB, free: 12.2 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001601/0.1648, allocations: 173.5 kB / 0.6841 GB, free: 11.98 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.1648, allocations: 0 / 0.6841 GB, free: 11.98 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.278e-05/0.1649, allocations: 15.98 kB / 0.6841 GB, free: 11.96 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.613e-06/0.1649, allocations: 0 / 0.6841 GB, free: 11.96 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.022e-05/0.1649, allocations: 4 kB / 0.6841 GB, free: 11.96 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.403e-06/0.1649, allocations: 0 / 0.6841 GB, free: 11.96 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.936e-06/0.1649, allocations: 3.984 kB / 0.6841 GB, free: 11.96 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000242/0.1652, allocations: 179.3 kB / 0.6843 GB, free: 11.77 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.051e-05/0.1652, allocations: 81.11 kB / 0.6844 GB, free: 11.67 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.346e-05/0.1653, allocations: 4 kB / 0.6844 GB, free: 11.66 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.29e-05/0.1653, allocations: 7.984 kB / 0.6844 GB, free: 11.66 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.364e-05/0.1654, allocations: 7.984 kB / 0.6844 GB, free: 11.65 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.767e-06/0.1654, allocations: 4 kB / 0.6844 GB, free: 11.64 MB / 494.1 MB Notification: Performance of sorting global known variables: time 4.141e-05/0.1654, allocations: 83.28 kB / 0.6845 GB, free: 11.56 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1655, allocations: 0 / 0.6845 GB, free: 11.56 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002186/0.1657, allocations: 12 kB / 0.6845 GB, free: 11.55 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.0005138/0.1662, allocations: 0.7201 MB / 0.6852 GB, free: 10.8 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.000208/0.1664, allocations: 47.89 kB / 0.6852 GB, free: 10.76 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.1664, allocations: 0 / 0.6852 GB, free: 10.76 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 9.229e-05/0.1665, allocations: 23.98 kB / 0.6853 GB, free: 10.73 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002892/0.1668, allocations: 9.375 kB / 0.6853 GB, free: 10.73 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001323/0.1682, allocations: 1.286 MB / 0.6865 GB, free: 9.363 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002238/0.1684, allocations: 0.6887 MB / 0.6872 GB, free: 8.648 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 3.25e-05/0.1684, allocations: 4 kB / 0.6872 GB, free: 8.645 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.898e-05/0.1685, allocations: 11.44 kB / 0.6872 GB, free: 8.633 MB / 494.1 MB Notification: Performance of SimCode: time 2.61e-07/0.1685, allocations: 0 / 0.6872 GB, free: 8.633 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01112/0.1796, allocations: 1.484 MB / 0.6887 GB, free: 7.25 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002638/0.1799, allocations: 208.1 kB / 0.6889 GB, free: 6.996 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.579/1.759, allocations: 4 kB / 0.6889 GB, free: 6.992 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)