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.001321/0.001322, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001458/0.001458, allocations: 193.5 kB / 16.25 MB, free: 6.617 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.197/1.197, allocations: 222.9 MB / 239.9 MB, free: 4.527 MB / 190.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.9807/0.9807, allocations: 143 MB / 433.1 MB, free: 11.5 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001249/0.001249, allocations: 59.91 kB / 0.5138 GB, free: 11.88 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1736/0.1749, allocations: 82.04 MB / 0.5939 GB, free: 9.797 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.Factorial): time 0.00159/0.1765, allocations: 0.6388 MB / 0.5945 GB, free: 9.152 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0002106/0.1767, allocations: 51.83 kB / 0.5946 GB, free: 9.102 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.046e-05/0.1768, allocations: 4 kB / 0.5946 GB, free: 9.098 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 1.428e-05/0.1768, allocations: 0 / 0.5946 GB, free: 9.098 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 4.448e-06/0.1768, allocations: 0 / 0.5946 GB, free: 9.098 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001803/0.177, allocations: 8 kB / 0.5946 GB, free: 9.09 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 3.53e-05/0.177, allocations: 7.984 kB / 0.5946 GB, free: 9.082 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 3.561e-05/0.1771, allocations: 0 / 0.5946 GB, free: 9.082 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 1.146e-05/0.1771, allocations: 0 / 0.5946 GB, free: 9.082 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 2.104e-05/0.1771, allocations: 7.938 kB / 0.5946 GB, free: 9.074 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 8.085e-06/0.1771, allocations: 0 / 0.5946 GB, free: 9.074 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 6.056e-05/0.1772, allocations: 15.94 kB / 0.5946 GB, free: 9.059 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 9.798e-06/0.1772, allocations: 7.922 kB / 0.5946 GB, free: 9.051 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 1.455e-05/0.1772, allocations: 4 kB / 0.5946 GB, free: 9.047 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 6.632e-05/0.1773, allocations: 11.98 kB / 0.5947 GB, free: 9.035 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/0.1773, allocations: 0 / 0.5947 GB, free: 9.035 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.543e-06/0.1773, allocations: 0 / 0.5947 GB, free: 9.035 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.102e-05/0.1773, allocations: 0 / 0.5947 GB, free: 9.035 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.00026/0.1776, allocations: 314.2 kB / 0.595 GB, free: 8.68 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.536e-05/0.1776, allocations: 12.03 kB / 0.595 GB, free: 8.668 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.734e-05/0.1777, allocations: 30.75 kB / 0.595 GB, free: 8.629 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.207e-05/0.1777, allocations: 0.9375 kB / 0.595 GB, free: 8.629 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.759e-05/0.1778, allocations: 172.3 kB / 0.5952 GB, free: 8.422 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.526e-06/0.1778, allocations: 384 / 0.5952 GB, free: 8.422 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.264e-06/0.1778, allocations: 4.375 kB / 0.5952 GB, free: 8.418 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.249e-05/0.1779, allocations: 30.25 kB / 0.5952 GB, free: 8.383 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.953e-06/0.1779, allocations: 7.938 kB / 0.5952 GB, free: 8.375 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.111e-06/0.1779, allocations: 0 / 0.5952 GB, free: 8.375 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.366e-06/0.1779, allocations: 0 / 0.5952 GB, free: 8.375 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.889e-05/0.178, allocations: 7.938 kB / 0.5952 GB, free: 8.367 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001358/0.1781, allocations: 149.7 kB / 0.5954 GB, free: 8.172 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 4.394e-05/0.1782, allocations: 26.61 kB / 0.5954 GB, free: 8.137 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.968e-05/0.1782, allocations: 12.92 kB / 0.5954 GB, free: 8.121 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00014/0.1783, allocations: 85.09 kB / 0.5955 GB, free: 8.02 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.839e-05/0.1783, allocations: 30.56 kB / 0.5955 GB, free: 7.98 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=2): time 1.112e-06/0.1784, allocations: 0 / 0.5955 GB, free: 7.98 MB / 0.4981 GB Notification: Performance of matching and sorting (n=2): time 0.0001366/0.1785, allocations: 45.58 kB / 0.5955 GB, free: 7.93 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.169e-05/0.1785, allocations: 55.53 kB / 0.5956 GB, free: 7.863 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.419e-05/0.1786, allocations: 89.86 kB / 0.5957 GB, free: 7.766 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.655e-05/0.1786, allocations: 25.7 kB / 0.5957 GB, free: 7.734 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 2.37e-05/0.1786, allocations: 84.14 kB / 0.5958 GB, free: 7.648 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 1.899e-05/0.1786, allocations: 7.891 kB / 0.5958 GB, free: 7.641 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.647e-05/0.1787, allocations: 13.72 kB / 0.5958 GB, free: 7.621 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 9.365e-05/0.1788, allocations: 314.8 kB / 0.5961 GB, free: 7.305 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.014e-05/0.1788, allocations: 0 / 0.5961 GB, free: 7.305 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.437e-06/0.1788, allocations: 8 kB / 0.5961 GB, free: 7.297 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.825e-05/0.1788, allocations: 12.86 kB / 0.5961 GB, free: 7.281 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.393e-06/0.1788, allocations: 0 / 0.5961 GB, free: 7.281 MB / 0.4981 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.478e-05/0.1789, allocations: 41.62 kB / 0.5962 GB, free: 7.234 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 9.949e-06/0.1789, allocations: 4 kB / 0.5962 GB, free: 7.23 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.29e-06/0.1789, allocations: 3.938 kB / 0.5962 GB, free: 7.227 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.133e-05/0.179, allocations: 0 / 0.5962 GB, free: 7.227 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.732e-05/0.179, allocations: 4 kB / 0.5962 GB, free: 7.223 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.328e-06/0.179, allocations: 3.938 kB / 0.5962 GB, free: 7.219 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.427e-05/0.179, allocations: 8.375 kB / 0.5962 GB, free: 7.211 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.336e-06/0.179, allocations: 0 / 0.5962 GB, free: 7.211 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 (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 5.788e-05/0.1791, allocations: 113.8 kB / 0.5963 GB, free: 7.09 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.067e-06/0.1791, allocations: 0 / 0.5963 GB, free: 7.09 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.482e-05/0.1792, allocations: 60.56 kB / 0.5964 GB, free: 7.027 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.523e-06/0.1792, allocations: 0 / 0.5964 GB, free: 7.027 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.326e-06/0.1792, allocations: 0 / 0.5964 GB, free: 7.027 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.914e-06/0.1792, allocations: 0 / 0.5964 GB, free: 7.027 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.127e-05/0.1793, allocations: 149.7 kB / 0.5965 GB, free: 6.832 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.1793, allocations: 4 kB / 0.5965 GB, free: 6.828 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.18e-05/0.1794, allocations: 4 kB / 0.5965 GB, free: 6.824 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.558e-06/0.1794, allocations: 7.984 kB / 0.5965 GB, free: 6.816 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.055e-06/0.1794, allocations: 3.938 kB / 0.5965 GB, free: 6.812 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.82e-07/0.1794, allocations: 0 / 0.5965 GB, free: 6.812 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.1794, allocations: 0 / 0.5965 GB, free: 6.812 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.515e-05/0.1795, allocations: 61.14 kB / 0.5966 GB, free: 6.734 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 2.809e-05/0.1795, allocations: 85.12 kB / 0.5967 GB, free: 6.633 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.036e-05/0.1795, allocations: 3.938 kB / 0.5967 GB, free: 6.629 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.232e-05/0.1795, allocations: 0 / 0.5967 GB, free: 6.629 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.458e-05/0.1796, allocations: 7.938 kB / 0.5967 GB, free: 6.621 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.777e-06/0.1796, allocations: 4 kB / 0.5967 GB, free: 6.617 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 2.874e-05/0.1796, allocations: 75.28 kB / 0.5967 GB, free: 6.543 MB / 0.4981 GB Notification: Performance of sort global known variables: time 9e-08/0.1796, allocations: 0 / 0.5967 GB, free: 6.543 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.000186/0.1798, allocations: 4 kB / 0.5967 GB, free: 6.539 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 (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.000364/0.1802, allocations: 0.6007 MB / 0.5973 GB, free: 5.906 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 6.883e-05/0.1803, allocations: 19.92 kB / 0.5974 GB, free: 5.887 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.1803, allocations: 0 / 0.5974 GB, free: 5.887 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 1.405e-05/0.1803, allocations: 4 kB / 0.5974 GB, free: 5.883 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001226/0.1804, allocations: 4 kB / 0.5974 GB, free: 5.879 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002614/0.1807, allocations: 122.6 kB / 0.5975 GB, free: 5.719 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002161/0.1809, allocations: 0.669 MB / 0.5981 GB, free: 5.023 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 1.409e-05/0.1809, allocations: 7.984 kB / 0.5981 GB, free: 5.016 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.837e-05/0.181, allocations: 7.438 kB / 0.5981 GB, free: 5.008 MB / 0.4981 GB Notification: Performance of SimCode: time 2.7e-07/0.181, allocations: 0 / 0.5981 GB, free: 5.008 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05252/0.2335, allocations: 0.9765 MB / 0.5991 GB, free: 4.164 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001658/0.2337, allocations: 225.5 kB / 0.5993 GB, free: 3.895 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.918/2.152, allocations: 7.562 kB / 0.5993 GB, free: 3.891 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/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)