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: translateModel(BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.Factorial") translateModel(BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.Factorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001502/0.001502, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001832/0.001832, allocations: 196.9 kB / 16.53 MB, free: 6.664 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.382/1.382, allocations: 222.9 MB / 240.2 MB, free: 4.406 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.9884/0.9884, allocations: 143 MB / 433.4 MB, free: 11.56 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001336/0.001336, allocations: 63.91 kB / 0.5142 GB, free: 11.66 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.202/0.2033, allocations: 82.04 MB / 0.5943 GB, free: 9.586 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.Factorial): time 0.002373/0.2058, allocations: 0.5676 MB / 0.5948 GB, free: 9.02 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0003108/0.2061, allocations: 55.78 kB / 0.5949 GB, free: 8.965 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.723e-05/0.2061, allocations: 4 kB / 0.5949 GB, free: 8.961 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 1.71e-05/0.2062, allocations: 0 / 0.5949 GB, free: 8.961 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 5.841e-06/0.2062, allocations: 0 / 0.5949 GB, free: 8.961 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002516/0.2064, allocations: 4 kB / 0.5949 GB, free: 8.957 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 5.797e-05/0.2065, allocations: 8 kB / 0.5949 GB, free: 8.949 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 6.502e-05/0.2066, allocations: 0 / 0.5949 GB, free: 8.949 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 1.878e-05/0.2066, allocations: 3.984 kB / 0.5949 GB, free: 8.945 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 3.56e-05/0.2067, allocations: 11.92 kB / 0.5949 GB, free: 8.934 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.573e-05/0.2067, allocations: 0 / 0.5949 GB, free: 8.934 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 8.375e-05/0.2068, allocations: 11.94 kB / 0.5949 GB, free: 8.922 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 9.948e-06/0.2068, allocations: 0 / 0.5949 GB, free: 8.922 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 1.994e-05/0.2068, allocations: 4 kB / 0.5949 GB, free: 8.918 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 9.602e-05/0.2069, allocations: 7.984 kB / 0.595 GB, free: 8.91 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.207, allocations: 3.938 kB / 0.595 GB, free: 8.906 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.623e-06/0.207, allocations: 0 / 0.595 GB, free: 8.906 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 4.86e-06/0.207, allocations: 4 kB / 0.595 GB, free: 8.902 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.0003692/0.2074, allocations: 319.6 kB / 0.5953 GB, free: 8.539 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.255e-05/0.2074, allocations: 8.031 kB / 0.5953 GB, free: 8.531 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.376e-05/0.2075, allocations: 4.922 kB / 0.5953 GB, free: 8.527 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001266/0.2076, allocations: 160.4 kB / 0.5954 GB, free: 8.332 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.692e-05/0.2076, allocations: 4.375 kB / 0.5954 GB, free: 8.328 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.808e-06/0.2077, allocations: 8.312 kB / 0.5954 GB, free: 8.32 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001121/0.2078, allocations: 30.27 kB / 0.5955 GB, free: 8.285 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.277e-06/0.2078, allocations: 192 / 0.5955 GB, free: 8.285 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.167e-05/0.2078, allocations: 11.92 kB / 0.5955 GB, free: 8.273 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.991e-06/0.2079, allocations: 0 / 0.5955 GB, free: 8.273 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.35e-05/0.2079, allocations: 11.92 kB / 0.5955 GB, free: 8.262 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001901/0.2081, allocations: 145.7 kB / 0.5956 GB, free: 8.07 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 6.775e-05/0.2082, allocations: 30.59 kB / 0.5957 GB, free: 8.031 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.928e-05/0.2082, allocations: 8.922 kB / 0.5957 GB, free: 8.02 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002144/0.2085, allocations: 81.11 kB / 0.5958 GB, free: 7.922 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.96e-05/0.2085, allocations: 30.56 kB / 0.5958 GB, free: 7.883 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=2): time 1.843e-06/0.2085, allocations: 0 / 0.5958 GB, free: 7.883 MB / 0.4981 GB Notification: Performance of matching and sorting (n=2): time 0.0001433/0.2087, allocations: 49.56 kB / 0.5958 GB, free: 7.828 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.345e-05/0.2087, allocations: 51.41 kB / 0.5959 GB, free: 7.766 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.411e-05/0.2088, allocations: 93.98 kB / 0.596 GB, free: 7.664 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.266e-05/0.2088, allocations: 29.7 kB / 0.596 GB, free: 7.629 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 2.211e-05/0.2088, allocations: 80.14 kB / 0.5961 GB, free: 7.547 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 1.867e-05/0.2088, allocations: 7.906 kB / 0.5961 GB, free: 7.539 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.942e-05/0.2089, allocations: 13.72 kB / 0.5961 GB, free: 7.52 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001069/0.209, allocations: 314.8 kB / 0.5964 GB, free: 7.203 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.094e-05/0.209, allocations: 0 / 0.5964 GB, free: 7.203 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.01e-05/0.209, allocations: 8 kB / 0.5964 GB, free: 7.195 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.427e-05/0.2091, allocations: 16.92 kB / 0.5964 GB, free: 7.176 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.223e-06/0.2091, allocations: 0 / 0.5964 GB, free: 7.176 MB / 0.4981 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.79e-05/0.2091, allocations: 45.62 kB / 0.5965 GB, free: 7.125 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.325e-05/0.2091, allocations: 6.5 kB / 0.5965 GB, free: 7.121 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.579e-06/0.2092, allocations: 0 / 0.5965 GB, free: 7.121 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.705e-05/0.2092, allocations: 7.938 kB / 0.5965 GB, free: 7.113 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.153e-05/0.2092, allocations: 0 / 0.5965 GB, free: 7.113 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.088e-06/0.2092, allocations: 0 / 0.5965 GB, free: 7.113 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.512e-05/0.2093, allocations: 4 kB / 0.5965 GB, free: 7.109 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.348e-06/0.2093, allocations: 4.031 kB / 0.5965 GB, free: 7.105 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 6.879e-05/0.2093, allocations: 105.8 kB / 0.5966 GB, free: 6.992 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.753e-06/0.2094, allocations: 0 / 0.5966 GB, free: 6.992 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.503e-05/0.2094, allocations: 56.91 kB / 0.5966 GB, free: 6.934 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.615e-06/0.2095, allocations: 0 / 0.5966 GB, free: 6.934 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.828e-06/0.2095, allocations: 3.938 kB / 0.5966 GB, free: 6.93 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.048e-06/0.2095, allocations: 4 kB / 0.5966 GB, free: 6.926 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001015/0.2096, allocations: 149.6 kB / 0.5968 GB, free: 6.73 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.62e-07/0.2096, allocations: 0 / 0.5968 GB, free: 6.73 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.358e-05/0.2096, allocations: 8.031 kB / 0.5968 GB, free: 6.723 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.773e-06/0.2096, allocations: 0 / 0.5968 GB, free: 6.723 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.001e-05/0.2096, allocations: 7.938 kB / 0.5968 GB, free: 6.715 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.032e-06/0.2096, allocations: 0 / 0.5968 GB, free: 6.715 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.32e-07/0.2096, allocations: 0 / 0.5968 GB, free: 6.715 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.211e-05/0.2097, allocations: 65.12 kB / 0.5969 GB, free: 6.633 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.786e-05/0.2098, allocations: 77.11 kB / 0.5969 GB, free: 6.539 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.094e-05/0.2098, allocations: 3.938 kB / 0.5969 GB, free: 6.535 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.054e-05/0.2098, allocations: 4.031 kB / 0.5969 GB, free: 6.531 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.662e-05/0.2098, allocations: 3.984 kB / 0.5969 GB, free: 6.527 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.264e-06/0.2098, allocations: 7.938 kB / 0.597 GB, free: 6.52 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 2.344e-05/0.2099, allocations: 75.28 kB / 0.597 GB, free: 6.445 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2099, allocations: 0 / 0.597 GB, free: 6.445 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0001842/0.2101, allocations: 4 kB / 0.597 GB, free: 6.441 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.0001511/0.2102, allocations: 99.25 kB / 0.5971 GB, free: 6.332 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 8.133e-05/0.2103, allocations: 19.98 kB / 0.5971 GB, free: 6.312 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.553e-06/0.2103, allocations: 0 / 0.5971 GB, free: 6.312 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 1.456e-05/0.2103, allocations: 4 kB / 0.5971 GB, free: 6.309 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001325/0.2105, allocations: 0 / 0.5971 GB, free: 6.309 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001911/0.2107, allocations: 92.78 kB / 0.5972 GB, free: 6.191 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000225/0.2109, allocations: 0.6768 MB / 0.5979 GB, free: 5.488 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 1.236e-05/0.2109, allocations: 0 / 0.5979 GB, free: 5.488 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.723e-05/0.2109, allocations: 7.438 kB / 0.5979 GB, free: 5.48 MB / 0.4981 GB Notification: Performance of SimCode: time 2.6e-07/0.2109, allocations: 4.125 kB / 0.5979 GB, free: 5.477 MB / 0.4981 GB Notification: Performance of Templates: time 0.002096/0.2131, allocations: 340.6 kB / 0.5982 GB, free: 5.145 MB / 0.4981 GB make -j1 -f BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.Factorial.makefile (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 & ./BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.Factorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1)