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.6.0/package.mo", uses=false) Using package BuildSysPro with version 3.5.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0/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.006132/0.006132, allocations: 103.2 kB / 15.73 MB, free: 6.047 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.00151/0.00151, allocations: 189.3 kB / 16.67 MB, free: 5.969 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.347/1.347, allocations: 222.9 MB / 240.4 MB, free: 15.13 MB / 206.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0/Building/BuildingEnvelope/HeatTransfer/package.mo:2:1-40:17:writable] Warning: Soil_case_nappe was referenced in the package.order file, but was not found in package.mo, Soil_case_nappe/package.mo or Soil_case_nappe.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0/package.mo): time 0.8595/0.8595, allocations: 143.1 MB / 433.6 MB, free: 11.95 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001165/0.001165, allocations: 68.92 kB / 0.5951 GB, free: 12.83 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1409/0.1421, allocations: 82.02 MB / 0.6752 GB, free: 10.9 MB / 0.5137 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.Factorial): time 0.001607/0.1437, allocations: 0.5946 MB / 0.6758 GB, free: 10.31 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.0002538/0.144, allocations: 47.8 kB / 0.6758 GB, free: 10.26 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.701e-05/0.1441, allocations: 0 / 0.6758 GB, free: 10.26 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 1.509e-05/0.1441, allocations: 0 / 0.6758 GB, free: 10.26 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 5.641e-06/0.1441, allocations: 0 / 0.6758 GB, free: 10.26 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002015/0.1443, allocations: 12 kB / 0.6758 GB, free: 10.25 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 4.014e-05/0.1444, allocations: 7.984 kB / 0.6758 GB, free: 10.24 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 4.216e-05/0.1444, allocations: 4 kB / 0.6758 GB, free: 10.24 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 1.327e-05/0.1444, allocations: 4 kB / 0.6758 GB, free: 10.23 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 2.109e-05/0.1445, allocations: 3.984 kB / 0.6759 GB, free: 10.23 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 8.526e-06/0.1445, allocations: 0 / 0.6759 GB, free: 10.23 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 6.933e-05/0.1446, allocations: 8 kB / 0.6759 GB, free: 10.22 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 8.817e-06/0.1446, allocations: 0 / 0.6759 GB, free: 10.22 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 2.036e-05/0.1446, allocations: 7.938 kB / 0.6759 GB, free: 10.21 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 8.034e-05/0.1447, allocations: 7.984 kB / 0.6759 GB, free: 10.21 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.1447, allocations: 7.938 kB / 0.6759 GB, free: 10.2 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.984e-06/0.1447, allocations: 0 / 0.6759 GB, free: 10.2 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 4.578e-06/0.1447, allocations: 0 / 0.6759 GB, free: 10.2 MB / 0.5137 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.0002763/0.145, allocations: 317.5 kB / 0.6762 GB, free: 9.84 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 3.438e-05/0.145, allocations: 8.031 kB / 0.6762 GB, free: 9.832 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.878e-05/0.1451, allocations: 38.69 kB / 0.6762 GB, free: 9.785 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.382e-05/0.1451, allocations: 4.938 kB / 0.6762 GB, free: 9.781 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.422e-05/0.1452, allocations: 160.4 kB / 0.6764 GB, free: 9.586 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.307e-06/0.1452, allocations: 384 / 0.6764 GB, free: 9.586 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.543e-06/0.1452, allocations: 384 / 0.6764 GB, free: 9.586 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001087/0.1453, allocations: 34.59 kB / 0.6764 GB, free: 9.547 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.915e-06/0.1453, allocations: 7.938 kB / 0.6764 GB, free: 9.539 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.562e-06/0.1454, allocations: 0 / 0.6764 GB, free: 9.539 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.178e-06/0.1454, allocations: 0 / 0.6764 GB, free: 9.539 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.125e-05/0.1454, allocations: 7.938 kB / 0.6764 GB, free: 9.531 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001398/0.1455, allocations: 149.7 kB / 0.6766 GB, free: 9.336 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 4.442e-05/0.1456, allocations: 26.61 kB / 0.6766 GB, free: 9.301 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.834e-05/0.1456, allocations: 4.859 kB / 0.6766 GB, free: 9.293 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001463/0.1458, allocations: 89.09 kB / 0.6767 GB, free: 9.188 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.941e-05/0.1458, allocations: 34.56 kB / 0.6767 GB, free: 9.145 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=2): time 8.41e-07/0.1458, allocations: 0 / 0.6767 GB, free: 9.145 MB / 0.5137 GB Notification: Performance of matching and sorting (n=2): time 0.0001365/0.146, allocations: 49.58 kB / 0.6768 GB, free: 9.09 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.932e-05/0.146, allocations: 51.41 kB / 0.6768 GB, free: 9.027 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.304e-05/0.146, allocations: 89.86 kB / 0.6769 GB, free: 8.93 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 1.21e-05/0.146, allocations: 29.69 kB / 0.6769 GB, free: 8.895 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 2.94e-05/0.1461, allocations: 80.14 kB / 0.677 GB, free: 8.812 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 1.962e-05/0.1461, allocations: 12.02 kB / 0.677 GB, free: 8.801 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.107e-05/0.1461, allocations: 21.72 kB / 0.677 GB, free: 8.773 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 9.475e-05/0.1462, allocations: 310.8 kB / 0.6773 GB, free: 8.461 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.243e-05/0.1463, allocations: 4 kB / 0.6773 GB, free: 8.457 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.544e-06/0.1463, allocations: 0 / 0.6773 GB, free: 8.457 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.157e-05/0.1463, allocations: 16.84 kB / 0.6774 GB, free: 8.438 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.1463, allocations: 0 / 0.6774 GB, free: 8.438 MB / 0.5137 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.996e-05/0.1464, allocations: 41.7 kB / 0.6774 GB, free: 8.391 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 2.043e-05/0.1464, allocations: 9.719 kB / 0.6774 GB, free: 8.383 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.59e-06/0.1464, allocations: 3.938 kB / 0.6774 GB, free: 8.379 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.076e-05/0.1464, allocations: 0 / 0.6774 GB, free: 8.379 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.129e-05/0.1465, allocations: 4 kB / 0.6774 GB, free: 8.375 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.549e-06/0.1465, allocations: 0 / 0.6774 GB, free: 8.375 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.702e-05/0.1465, allocations: 6.797 kB / 0.6774 GB, free: 8.371 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.36e-06/0.1465, allocations: 4 kB / 0.6774 GB, free: 8.367 MB / 0.5137 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 (n,fac) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.1e-05/0.1466, allocations: 113.8 kB / 0.6775 GB, free: 8.246 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.234e-06/0.1466, allocations: 4.031 kB / 0.6775 GB, free: 8.242 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.297e-05/0.1467, allocations: 52.69 kB / 0.6776 GB, free: 8.188 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.754e-06/0.1467, allocations: 0 / 0.6776 GB, free: 8.188 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.1467, allocations: 0 / 0.6776 GB, free: 8.188 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.964e-06/0.1467, allocations: 0 / 0.6776 GB, free: 8.188 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.799e-05/0.1468, allocations: 145.6 kB / 0.6777 GB, free: 7.996 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.585e-06/0.1468, allocations: 4 kB / 0.6777 GB, free: 7.992 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.554e-05/0.1468, allocations: 7.969 kB / 0.6777 GB, free: 7.984 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.963e-06/0.1469, allocations: 0 / 0.6777 GB, free: 7.984 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.307e-06/0.1469, allocations: 7.938 kB / 0.6778 GB, free: 7.977 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.1469, allocations: 4.031 kB / 0.6778 GB, free: 7.973 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.395e-06/0.1469, allocations: 0 / 0.6778 GB, free: 7.973 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.705e-05/0.147, allocations: 65.06 kB / 0.6778 GB, free: 7.891 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 2.814e-05/0.147, allocations: 77.11 kB / 0.6779 GB, free: 7.797 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.038e-05/0.147, allocations: 3.938 kB / 0.6779 GB, free: 7.793 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.153e-05/0.147, allocations: 4 kB / 0.6779 GB, free: 7.789 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.501e-05/0.1471, allocations: 4 kB / 0.6779 GB, free: 7.785 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.154e-06/0.1471, allocations: 3.969 kB / 0.6779 GB, free: 7.781 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 2.414e-05/0.1471, allocations: 79.28 kB / 0.678 GB, free: 7.703 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.1e-07/0.1471, allocations: 0 / 0.678 GB, free: 7.703 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0001952/0.1473, allocations: 8 kB / 0.678 GB, free: 7.695 MB / 0.5137 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 (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.0003948/0.1477, allocations: 0.6046 MB / 0.6786 GB, free: 7.059 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 7.696e-05/0.1478, allocations: 16.03 kB / 0.6786 GB, free: 7.043 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 3.487e-06/0.1478, allocations: 0 / 0.6786 GB, free: 7.043 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 1.568e-05/0.1478, allocations: 7.938 kB / 0.6786 GB, free: 7.035 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001386/0.148, allocations: 3.938 kB / 0.6786 GB, free: 7.031 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003121/0.1483, allocations: 114.5 kB / 0.6787 GB, free: 6.879 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000214/0.1485, allocations: 0.6729 MB / 0.6794 GB, free: 6.18 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 1.27e-05/0.1485, allocations: 0 / 0.6794 GB, free: 6.18 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.399e-05/0.1486, allocations: 11.56 kB / 0.6794 GB, free: 6.168 MB / 0.5137 GB Notification: Performance of SimCode: time 3.5e-07/0.1486, allocations: 4 kB / 0.6794 GB, free: 6.164 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01764/0.1662, allocations: 1.075 MB / 0.6804 GB, free: 5.195 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.323/7.489, allocations: 19.66 kB / 0.6805 GB, free: 5.184 MB / 0.5137 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/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)