Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Functions.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/BuildSysPro 3.5.0-master/package.mo", uses=false) Using package BuildSysPro with version 3.5.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.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(BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.FallingFactorial,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Utilities_Math_Functions_Examples_FallingFactorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.FallingFactorial,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Utilities_Math_Functions_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.0007992/0.0007989, allocations: 86.09 kB / 15.06 MB, free: 1.09 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.0008149/0.0008149, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.329/1.329, allocations: 223.2 MB / 240 MB, free: 5.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0-master/package.mo): time 1.009/1.009, allocations: 143.4 MB / 434.4 MB, free: 13.66 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002984/0.0002985, allocations: 12 kB / 0.5161 GB, free: 11.21 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1527/0.1531, allocations: 83.42 MB / 0.5976 GB, free: 7.73 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.FallingFactorial): time 0.0006694/0.1538, allocations: 315.1 kB / 0.5979 GB, free: 7.422 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0002195/0.154, allocations: 51.78 kB / 0.5979 GB, free: 7.371 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.39e-05/0.154, allocations: 0 / 0.5979 GB, free: 7.371 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 1.903e-05/0.1541, allocations: 4 kB / 0.5979 GB, free: 7.367 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 5.611e-06/0.1541, allocations: 0 / 0.5979 GB, free: 7.367 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002306/0.1543, allocations: 15.97 kB / 0.5979 GB, free: 7.352 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 6.679e-05/0.1544, allocations: 19.98 kB / 0.5979 GB, free: 7.332 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 4.174e-05/0.1544, allocations: 4 kB / 0.5979 GB, free: 7.328 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 2.19e-05/0.1545, allocations: 15.97 kB / 0.598 GB, free: 7.312 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 3.238e-05/0.1545, allocations: 4 kB / 0.598 GB, free: 7.309 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.203e-05/0.1545, allocations: 4 kB / 0.598 GB, free: 7.305 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 6.791e-05/0.1546, allocations: 19.92 kB / 0.598 GB, free: 7.285 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 2.469e-05/0.1546, allocations: 15.92 kB / 0.598 GB, free: 7.27 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 2.981e-05/0.1547, allocations: 29.7 kB / 0.598 GB, free: 7.234 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 6.533e-05/0.1547, allocations: 23.97 kB / 0.5981 GB, free: 7.211 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.1547, allocations: 0 / 0.5981 GB, free: 7.211 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.794e-06/0.1547, allocations: 0 / 0.5981 GB, free: 7.211 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 4.038e-06/0.1548, allocations: 0 / 0.5981 GB, free: 7.211 MB / 0.4981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0002942/0.1551, allocations: 323.4 kB / 0.5984 GB, free: 6.848 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.134e-05/0.1551, allocations: 8.031 kB / 0.5984 GB, free: 6.84 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.831e-05/0.1552, allocations: 42.55 kB / 0.5984 GB, free: 6.789 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.431e-05/0.1552, allocations: 3.906 kB / 0.5984 GB, free: 6.785 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001028/0.1553, allocations: 175.2 kB / 0.5986 GB, free: 6.574 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.147e-05/0.1553, allocations: 4 kB / 0.5986 GB, free: 6.57 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.749e-06/0.1553, allocations: 4 kB / 0.5986 GB, free: 6.566 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001349/0.1555, allocations: 69.59 kB / 0.5987 GB, free: 6.492 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.746e-06/0.1555, allocations: 3.984 kB / 0.5987 GB, free: 6.488 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.117e-06/0.1555, allocations: 0 / 0.5987 GB, free: 6.488 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.973e-06/0.1555, allocations: 4 kB / 0.5987 GB, free: 6.484 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001327/0.1556, allocations: 95.88 kB / 0.5988 GB, free: 6.391 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001688/0.1558, allocations: 173.6 kB / 0.5989 GB, free: 6.172 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001094/0.1559, allocations: 74.48 kB / 0.599 GB, free: 6.09 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.297e-05/0.156, allocations: 36.84 kB / 0.599 GB, free: 6.051 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000292/0.1563, allocations: 409.5 kB / 0.5994 GB, free: 5.559 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.376e-05/0.1563, allocations: 30.56 kB / 0.5994 GB, free: 5.52 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=11): time 1.012e-06/0.1563, allocations: 0 / 0.5994 GB, free: 5.52 MB / 0.4981 GB Notification: Performance of matching and sorting (n=11): time 0.0002232/0.1566, allocations: 121.8 kB / 0.5996 GB, free: 5.395 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.05e-05/0.1566, allocations: 55.34 kB / 0.5996 GB, free: 5.328 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.307e-05/0.1566, allocations: 93.86 kB / 0.5997 GB, free: 5.227 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.516e-05/0.1567, allocations: 37.69 kB / 0.5997 GB, free: 5.184 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 2.268e-05/0.1567, allocations: 80.33 kB / 0.5998 GB, free: 5.098 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.563e-05/0.1567, allocations: 23.66 kB / 0.5998 GB, free: 5.074 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.797e-06/0.1567, allocations: 0 / 0.5998 GB, free: 5.074 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 8.73e-05/0.1568, allocations: 318.8 kB / 0.6001 GB, free: 4.754 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.289e-05/0.1569, allocations: 15.98 kB / 0.6002 GB, free: 4.738 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.973e-05/0.1569, allocations: 19.98 kB / 0.6002 GB, free: 4.719 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.34e-05/0.1569, allocations: 27.98 kB / 0.6002 GB, free: 4.691 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.157, allocations: 3.938 kB / 0.6002 GB, free: 4.688 MB / 0.4981 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001153/0.1571, allocations: 89.67 kB / 0.6003 GB, free: 4.594 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.437e-05/0.1571, allocations: 7.984 kB / 0.6003 GB, free: 4.586 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.027e-06/0.1571, allocations: 3.938 kB / 0.6003 GB, free: 4.582 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.108e-05/0.1571, allocations: 4 kB / 0.6003 GB, free: 4.578 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.496e-05/0.1572, allocations: 19.94 kB / 0.6003 GB, free: 4.559 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.22e-06/0.1572, allocations: 0 / 0.6003 GB, free: 4.559 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.907e-05/0.1573, allocations: 7.906 kB / 0.6003 GB, free: 4.551 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.046e-05/0.1573, allocations: 7.984 kB / 0.6003 GB, free: 4.543 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: 11 (falFac[1],falFac[2],falFac[3],falFac[4],falFac[5],falFac[6],falFac[7],falFac[8],falFac[9],falFac[10],n) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001235/0.1574, allocations: 121.8 kB / 0.6005 GB, free: 4.414 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.055e-06/0.1574, allocations: 4 kB / 0.6005 GB, free: 4.41 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002313/0.1577, allocations: 137.5 kB / 0.6006 GB, free: 4.266 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.204e-06/0.1577, allocations: 0 / 0.6006 GB, free: 4.266 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.1577, allocations: 8 kB / 0.6006 GB, free: 4.258 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.565e-06/0.1577, allocations: 0 / 0.6006 GB, free: 4.258 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000106/0.1578, allocations: 169.6 kB / 0.6008 GB, free: 4.043 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.445e-06/0.1578, allocations: 3.984 kB / 0.6008 GB, free: 4.039 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.471e-05/0.1579, allocations: 20 kB / 0.6008 GB, free: 4.02 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.014e-06/0.1579, allocations: 4 kB / 0.6008 GB, free: 4.016 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.438e-06/0.1579, allocations: 3.984 kB / 0.6008 GB, free: 4.012 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.785e-06/0.1579, allocations: 4 kB / 0.6008 GB, free: 4.008 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.1579, allocations: 0 / 0.6008 GB, free: 4.008 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001415/0.1581, allocations: 121.3 kB / 0.6009 GB, free: 3.871 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.104e-05/0.1581, allocations: 85 kB / 0.601 GB, free: 3.77 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.916e-05/0.1581, allocations: 7.984 kB / 0.601 GB, free: 3.762 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.686e-05/0.1582, allocations: 8 kB / 0.601 GB, free: 3.754 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.658e-05/0.1582, allocations: 4 kB / 0.601 GB, free: 3.75 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.784e-06/0.1582, allocations: 7.984 kB / 0.601 GB, free: 3.742 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 2.05e-05/0.1582, allocations: 75.28 kB / 0.6011 GB, free: 3.668 MB / 0.4981 GB Notification: Performance of sort global known variables: time 9e-08/0.1582, allocations: 0 / 0.6011 GB, free: 3.668 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.000188/0.1584, allocations: 16 kB / 0.6011 GB, free: 3.652 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: 11 (falFac[1],falFac[2],falFac[3],falFac[4],falFac[5],falFac[6],falFac[7],falFac[8],falFac[9],falFac[10],n) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004366/0.1589, allocations: 0.6757 MB / 0.6018 GB, free: 2.949 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0001252/0.159, allocations: 60.02 kB / 0.6018 GB, free: 2.891 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.493e-06/0.159, allocations: 0 / 0.6018 GB, free: 2.891 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 4.884e-05/0.1591, allocations: 39.91 kB / 0.6019 GB, free: 2.852 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001223/0.1592, allocations: 4 kB / 0.6019 GB, free: 2.848 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003391/0.1595, allocations: 184.3 kB / 0.602 GB, free: 2.629 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001908/0.1597, allocations: 0.6848 MB / 0.6027 GB, free: 1.918 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 7.139e-05/0.1598, allocations: 35.92 kB / 0.6027 GB, free: 1.883 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.216e-05/0.1599, allocations: 19.44 kB / 0.6028 GB, free: 1.863 MB / 0.4981 GB Notification: Performance of SimCode: time 2.5e-07/0.1599, allocations: 0 / 0.6028 GB, free: 1.863 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01061/0.1705, allocations: 1.371 MB / 0.6041 GB, free: 0.668 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001947/0.1707, allocations: 215.1 kB / 0.6043 GB, free: 436 kB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.635/1.806, allocations: 0 / 0.6043 GB, free: 436 kB / 0.4981 GB (rm -f BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.FallingFactorial.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.FallingFactorial.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.FallingFactorial.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.FallingFactorial.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildSysPro_BuildSysPro_IBPSA_Utilities_Math_Functions_Examples_FallingFactorial_fmu --startTime=0 --stopTime=13.9 --timeout=50 --tolerance=1e-06 BuildSysPro_BuildSysPro_IBPSA_Utilities_Math_Functions_Examples_FallingFactorial.fmu > BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.FallingFactorial.pipe 2>&1) Environment - environmentSimulation: