Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Functions.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/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.Factorial,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Utilities_Math_Functions_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Utilities_Math_Functions_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.0008278/0.0008278, allocations: 84.38 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.0008018/0.0008018, 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.354/1.354, allocations: 223.3 MB / 240 MB, free: 5.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0-master/package.mo): time 1.027/1.027, allocations: 143.4 MB / 434.4 MB, free: 13.71 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000302/0.0003021, allocations: 8 kB / 0.5161 GB, free: 11.19 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1578/0.1581, allocations: 83.42 MB / 0.5976 GB, free: 7.711 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.Factorial): time 0.0006051/0.1587, allocations: 311.1 kB / 0.5979 GB, free: 7.406 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0002133/0.159, allocations: 39.84 kB / 0.5979 GB, free: 7.367 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.528e-06/0.159, allocations: 0 / 0.5979 GB, free: 7.367 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 1.11e-05/0.159, allocations: 7.938 kB / 0.5979 GB, free: 7.359 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 5.249e-06/0.159, allocations: 0 / 0.5979 GB, free: 7.359 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001666/0.1592, allocations: 7.984 kB / 0.5979 GB, free: 7.352 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 4.102e-05/0.1592, allocations: 7.984 kB / 0.5979 GB, free: 7.344 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 4.36e-05/0.1593, allocations: 0 / 0.5979 GB, free: 7.344 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 1.279e-05/0.1593, allocations: 0 / 0.5979 GB, free: 7.344 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 3.245e-05/0.1593, allocations: 4 kB / 0.5979 GB, free: 7.34 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.062e-05/0.1594, allocations: 4 kB / 0.5979 GB, free: 7.336 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 5.91e-05/0.1594, allocations: 11.98 kB / 0.5979 GB, free: 7.324 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 5.651e-06/0.1594, allocations: 0 / 0.5979 GB, free: 7.324 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 2.219e-05/0.1595, allocations: 25.7 kB / 0.598 GB, free: 7.293 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 5.539e-05/0.1595, allocations: 4 kB / 0.598 GB, free: 7.289 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.1595, allocations: 0 / 0.598 GB, free: 7.289 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.213e-06/0.1595, allocations: 0 / 0.598 GB, free: 7.289 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 3.086e-06/0.1596, allocations: 0 / 0.598 GB, free: 7.289 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0002529/0.1598, allocations: 319.4 kB / 0.5983 GB, free: 6.93 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.585e-05/0.1599, allocations: 11.97 kB / 0.5983 GB, free: 6.918 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.832e-05/0.1599, allocations: 34.56 kB / 0.5983 GB, free: 6.875 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.849e-05/0.1599, allocations: 0 / 0.5983 GB, free: 6.875 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.25e-05/0.16, allocations: 167 kB / 0.5985 GB, free: 6.672 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.578e-06/0.16, allocations: 4 kB / 0.5985 GB, free: 6.668 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.904e-06/0.16, allocations: 0 / 0.5985 GB, free: 6.668 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.565e-05/0.1601, allocations: 33.69 kB / 0.5985 GB, free: 6.629 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.542e-06/0.1601, allocations: 0 / 0.5985 GB, free: 6.629 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.42e-06/0.1601, allocations: 0 / 0.5985 GB, free: 6.629 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.187e-06/0.1601, allocations: 0 / 0.5985 GB, free: 6.629 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.766e-05/0.1602, allocations: 4 kB / 0.5985 GB, free: 6.625 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001186/0.1603, allocations: 161.6 kB / 0.5987 GB, free: 6.418 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 3.937e-05/0.1604, allocations: 22.55 kB / 0.5987 GB, free: 6.387 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.726e-05/0.1604, allocations: 12.92 kB / 0.5987 GB, free: 6.371 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001355/0.1605, allocations: 89.08 kB / 0.5988 GB, free: 6.266 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.875e-05/0.1605, allocations: 38.56 kB / 0.5988 GB, free: 6.219 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=2): time 9.11e-07/0.1605, allocations: 0 / 0.5988 GB, free: 6.219 MB / 0.4981 GB Notification: Performance of matching and sorting (n=2): time 0.0001129/0.1607, allocations: 45.64 kB / 0.5989 GB, free: 6.168 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.759e-05/0.1607, allocations: 51.41 kB / 0.5989 GB, free: 6.105 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.338e-05/0.1607, allocations: 93.84 kB / 0.599 GB, free: 6.004 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.219e-05/0.1608, allocations: 29.7 kB / 0.599 GB, free: 5.969 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 1.815e-05/0.1608, allocations: 80.14 kB / 0.5991 GB, free: 5.887 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 1.591e-05/0.1608, allocations: 3.906 kB / 0.5991 GB, free: 5.883 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.195e-06/0.1608, allocations: 0 / 0.5991 GB, free: 5.883 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 8.231e-05/0.1609, allocations: 314.8 kB / 0.5994 GB, free: 5.566 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.051e-05/0.1609, allocations: 12.12 kB / 0.5994 GB, free: 5.555 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.65e-06/0.1609, allocations: 0 / 0.5994 GB, free: 5.555 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 1.698e-05/0.1609, allocations: 4 kB / 0.5994 GB, free: 5.551 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.443e-06/0.161, allocations: 0 / 0.5994 GB, free: 5.551 MB / 0.4981 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.684e-05/0.161, allocations: 37.69 kB / 0.5995 GB, free: 5.508 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 9.578e-06/0.161, allocations: 4 kB / 0.5995 GB, free: 5.504 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.226e-06/0.161, allocations: 0 / 0.5995 GB, free: 5.504 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.092e-05/0.1611, allocations: 0 / 0.5995 GB, free: 5.504 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.718e-05/0.1611, allocations: 11.94 kB / 0.5995 GB, free: 5.492 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.367e-06/0.1611, allocations: 4.094 kB / 0.5995 GB, free: 5.488 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.183e-05/0.1611, allocations: 288 / 0.5995 GB, free: 5.488 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.669e-06/0.1611, allocations: 3.984 kB / 0.5995 GB, free: 5.484 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: 2 (fac,n) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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 5.45e-05/0.1612, allocations: 113.8 kB / 0.5996 GB, free: 5.363 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.913e-06/0.1612, allocations: 3.984 kB / 0.5996 GB, free: 5.359 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.105e-05/0.1613, allocations: 44.77 kB / 0.5996 GB, free: 5.312 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.453e-06/0.1613, allocations: 0 / 0.5996 GB, free: 5.312 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.547e-06/0.1613, allocations: 3.938 kB / 0.5996 GB, free: 5.309 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.136e-06/0.1613, allocations: 8.016 kB / 0.5997 GB, free: 5.301 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.314e-05/0.1614, allocations: 149.6 kB / 0.5998 GB, free: 5.105 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.61e-07/0.1614, allocations: 0 / 0.5998 GB, free: 5.105 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.093e-05/0.1614, allocations: 0 / 0.5998 GB, free: 5.105 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.725e-06/0.1614, allocations: 7.938 kB / 0.5998 GB, free: 5.098 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.4e-06/0.1614, allocations: 3.938 kB / 0.5998 GB, free: 5.094 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.52e-07/0.1615, allocations: 0 / 0.5998 GB, free: 5.094 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.913e-06/0.1615, allocations: 3.984 kB / 0.5998 GB, free: 5.09 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.365e-05/0.1615, allocations: 61.14 kB / 0.5999 GB, free: 5.012 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 2.725e-05/0.1616, allocations: 85.06 kB / 0.5999 GB, free: 4.91 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.153e-05/0.1616, allocations: 7.984 kB / 0.6 GB, free: 4.902 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.648e-06/0.1616, allocations: 0 / 0.6 GB, free: 4.902 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.166e-05/0.1616, allocations: 0 / 0.6 GB, free: 4.902 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.994e-06/0.1616, allocations: 0 / 0.6 GB, free: 4.902 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 2.411e-05/0.1617, allocations: 75.28 kB / 0.6 GB, free: 4.828 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.21e-07/0.1617, allocations: 0 / 0.6 GB, free: 4.828 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0001719/0.1618, allocations: 4 kB / 0.6 GB, free: 4.824 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,n) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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.0003232/0.1622, allocations: 0.6156 MB / 0.6006 GB, free: 4.18 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 6.109e-05/0.1622, allocations: 15.98 kB / 0.6006 GB, free: 4.164 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.413e-06/0.1622, allocations: 0 / 0.6006 GB, free: 4.164 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 1.299e-05/0.1623, allocations: 4 kB / 0.6007 GB, free: 4.16 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001217/0.1624, allocations: 4.156 kB / 0.6007 GB, free: 4.156 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002446/0.1626, allocations: 112.3 kB / 0.6008 GB, free: 4.008 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001839/0.1628, allocations: 0.6731 MB / 0.6014 GB, free: 3.309 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 1.131e-05/0.1629, allocations: 0 / 0.6014 GB, free: 3.309 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.802e-05/0.1629, allocations: 11.44 kB / 0.6014 GB, free: 3.297 MB / 0.4981 GB Notification: Performance of SimCode: time 2.4e-07/0.1629, allocations: 3.938 kB / 0.6014 GB, free: 3.293 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.009805/0.1727, allocations: 0.8814 MB / 0.6023 GB, free: 2.559 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001527/0.1729, allocations: 203.3 kB / 0.6025 GB, free: 2.312 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.632/1.805, allocations: 0 / 0.6025 GB, free: 2.312 MB / 0.4981 GB (rm -f BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.Factorial.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildSysPro_BuildSysPro_IBPSA_Utilities_Math_Functions_Examples_Factorial_fmu --startTime=0 --stopTime=12.9 --timeout=50 --tolerance=1e-06 BuildSysPro_BuildSysPro_IBPSA_Utilities_Math_Functions_Examples_Factorial.fmu > BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) Environment - environmentSimulation: