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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001759/0.001759, allocations: 99.64 kB / 18.95 MB, free: 2.668 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001461/0.001461, allocations: 209.3 kB / 22.24 MB, free: 5.262 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.454/1.454, allocations: 230.6 MB / 256 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.7.0/package.mo", uses=false) [Timeout 180] "[/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.7.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.7.0/package.mo): time 0.934/0.934, allocations: 145 MB / 457.4 MB, free: 15.29 MB / 366.1 MB " [Timeout remaining time 179] Using package BuildSysPro with version 3.6.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.7.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: BuildSysPro requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002104/0.002104, allocations: 62.41 kB / 0.6331 GB, free: 6.691 MB / 462.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1711/0.1732, allocations: 87.89 MB / 0.719 GB, free: 14.82 MB / 0.545 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.Factorial): time 0.002189/0.1754, allocations: 0.5789 MB / 0.7195 GB, free: 14.24 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.0003263/0.1757, allocations: 47.88 kB / 0.7196 GB, free: 14.2 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.861e-05/0.1758, allocations: 0 / 0.7196 GB, free: 14.2 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 1.691e-05/0.1758, allocations: 3.938 kB / 0.7196 GB, free: 14.19 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 7.524e-06/0.1758, allocations: 0 / 0.7196 GB, free: 14.19 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002493/0.176, allocations: 15.97 kB / 0.7196 GB, free: 14.18 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 4.847e-05/0.1761, allocations: 4 kB / 0.7196 GB, free: 14.17 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 5.192e-05/0.1761, allocations: 0 / 0.7196 GB, free: 14.17 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 1.728e-05/0.1762, allocations: 4 kB / 0.7196 GB, free: 14.17 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 2.393e-05/0.1762, allocations: 3.938 kB / 0.7196 GB, free: 14.16 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 1.164e-05/0.1762, allocations: 4 kB / 0.7196 GB, free: 14.16 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 9.426e-05/0.1763, allocations: 11.98 kB / 0.7196 GB, free: 14.15 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 1.062e-05/0.1763, allocations: 0 / 0.7196 GB, free: 14.15 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 2.676e-05/0.1763, allocations: 7.984 kB / 0.7196 GB, free: 14.14 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0001006/0.1764, allocations: 3.984 kB / 0.7196 GB, free: 14.14 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 6.342e-06/0.1764, allocations: 8 kB / 0.7196 GB, free: 14.13 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.924e-06/0.1764, allocations: 0 / 0.7196 GB, free: 14.13 MB / 0.545 GB Notification: Performance of Transformations before backend: time 6.071e-06/0.1764, allocations: 0 / 0.7196 GB, free: 14.13 MB / 0.545 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.0003401/0.1768, allocations: 238.4 kB / 0.7199 GB, free: 13.86 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.829e-05/0.1768, allocations: 12.02 kB / 0.7199 GB, free: 13.85 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.32e-05/0.1769, allocations: 34.75 kB / 0.7199 GB, free: 13.81 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.465e-05/0.1769, allocations: 8.875 kB / 0.7199 GB, free: 13.8 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001029/0.177, allocations: 106.5 kB / 0.72 GB, free: 13.67 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.507e-05/0.177, allocations: 4.375 kB / 0.72 GB, free: 13.67 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.929e-06/0.177, allocations: 4.375 kB / 0.72 GB, free: 13.66 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001109/0.1771, allocations: 30.2 kB / 0.7201 GB, free: 13.63 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.077e-05/0.1771, allocations: 3.938 kB / 0.7201 GB, free: 13.62 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.272e-05/0.1772, allocations: 8 kB / 0.7201 GB, free: 13.62 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.424e-06/0.1772, allocations: 3.984 kB / 0.7201 GB, free: 13.61 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.619e-05/0.1772, allocations: 0 / 0.7201 GB, free: 13.61 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001798/0.1774, allocations: 124.7 kB / 0.7202 GB, free: 13.45 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 6.963e-05/0.1774, allocations: 22.61 kB / 0.7202 GB, free: 13.42 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.103e-05/0.1775, allocations: 16.91 kB / 0.7202 GB, free: 13.4 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001359/0.1776, allocations: 4 kB / 0.7202 GB, free: 13.39 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.95e-05/0.1776, allocations: 30.56 kB / 0.7203 GB, free: 13.36 MB / 0.545 GB Notification: Performance of pre-optimization done (n=2): time 1.173e-06/0.1776, allocations: 0 / 0.7203 GB, free: 13.36 MB / 0.545 GB Notification: Performance of matching and sorting (n=2): time 0.0001684/0.1778, allocations: 49.56 kB / 0.7203 GB, free: 13.3 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.935e-05/0.1779, allocations: 55.41 kB / 0.7204 GB, free: 13.23 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001121/0.178, allocations: 89.86 kB / 0.7204 GB, free: 13.14 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.818e-05/0.178, allocations: 25.7 kB / 0.7205 GB, free: 13.11 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 4.332e-05/0.178, allocations: 80.27 kB / 0.7205 GB, free: 13.02 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 2.11e-05/0.1781, allocations: 4 kB / 0.7206 GB, free: 13.02 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.798e-05/0.1781, allocations: 17.72 kB / 0.7206 GB, free: 13 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0002414/0.1783, allocations: 310.8 kB / 0.7209 GB, free: 12.68 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.333e-05/0.1784, allocations: 7.984 kB / 0.7209 GB, free: 12.68 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.658e-06/0.1784, allocations: 0 / 0.7209 GB, free: 12.68 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.714e-05/0.1784, allocations: 12.86 kB / 0.7209 GB, free: 12.66 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.1784, allocations: 4 kB / 0.7209 GB, free: 12.66 MB / 0.545 GB Notification: Performance of matching and sorting (n=2) (initialization): time 8.051e-05/0.1785, allocations: 41.59 kB / 0.7209 GB, free: 12.61 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.366e-05/0.1785, allocations: 4 kB / 0.7209 GB, free: 12.61 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.101e-05/0.1785, allocations: 12.02 kB / 0.7209 GB, free: 12.59 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.298e-05/0.1785, allocations: 0 / 0.7209 GB, free: 12.59 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.779e-05/0.1786, allocations: 4 kB / 0.7209 GB, free: 12.59 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.039e-06/0.1786, allocations: 0 / 0.7209 GB, free: 12.59 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.668e-05/0.1786, allocations: 0 / 0.7209 GB, free: 12.59 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.36e-06/0.1786, allocations: 0 / 0.7209 GB, free: 12.59 MB / 0.545 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 8.954e-05/0.1787, allocations: 113.8 kB / 0.7211 GB, free: 12.47 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.937e-06/0.1787, allocations: 3.938 kB / 0.7211 GB, free: 12.46 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001149/0.1788, allocations: 48.78 kB / 0.7211 GB, free: 12.41 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.874e-06/0.1788, allocations: 7.969 kB / 0.7211 GB, free: 12.4 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.058e-06/0.1789, allocations: 0 / 0.7211 GB, free: 12.4 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.416e-06/0.1789, allocations: 0 / 0.7211 GB, free: 12.4 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001268/0.179, allocations: 120.8 kB / 0.7212 GB, free: 12.24 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.193e-06/0.179, allocations: 0 / 0.7212 GB, free: 12.24 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.803e-05/0.179, allocations: 4 kB / 0.7212 GB, free: 12.23 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.195e-06/0.179, allocations: 0 / 0.7212 GB, free: 12.23 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.058e-05/0.179, allocations: 3.938 kB / 0.7212 GB, free: 12.23 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.094e-06/0.179, allocations: 3.938 kB / 0.7212 GB, free: 12.23 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.179, allocations: 0 / 0.7212 GB, free: 12.23 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001037/0.1791, allocations: 65.12 kB / 0.7213 GB, free: 12.14 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 4.799e-06/0.1791, allocations: 4.031 kB / 0.7213 GB, free: 12.14 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.377e-05/0.1791, allocations: 3.938 kB / 0.7213 GB, free: 12.14 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.573e-05/0.1792, allocations: 4 kB / 0.7213 GB, free: 12.13 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.293e-05/0.1792, allocations: 8 kB / 0.7213 GB, free: 12.12 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.945e-06/0.1792, allocations: 0 / 0.7213 GB, free: 12.12 MB / 0.545 GB Notification: Performance of sorting global known variables: time 4.093e-05/0.1792, allocations: 79.27 kB / 0.7214 GB, free: 12.05 MB / 0.545 GB Notification: Performance of sort global known variables: time 1e-07/0.1792, allocations: 3.938 kB / 0.7214 GB, free: 12.04 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0003111/0.1796, allocations: 4 kB / 0.7214 GB, free: 12.04 MB / 0.545 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.0006832/0.1802, allocations: 0.6046 MB / 0.722 GB, free: 11.4 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 8.475e-05/0.1803, allocations: 16 kB / 0.722 GB, free: 11.39 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.1803, allocations: 0 / 0.722 GB, free: 11.39 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 2.445e-05/0.1803, allocations: 7.938 kB / 0.722 GB, free: 11.38 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001773/0.1805, allocations: 0 / 0.722 GB, free: 11.38 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004009/0.1809, allocations: 118.5 kB / 0.7221 GB, free: 11.22 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.711e-05/0.181, allocations: 55.36 kB / 0.7222 GB, free: 11.15 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 2.199e-05/0.181, allocations: 7.969 kB / 0.7222 GB, free: 11.14 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.699e-05/0.181, allocations: 7.438 kB / 0.7222 GB, free: 11.13 MB / 0.545 GB Notification: Performance of SimCode: time 5.31e-07/0.181, allocations: 4.125 kB / 0.7222 GB, free: 11.13 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03574/0.2168, allocations: 1.582 MB / 0.7237 GB, free: 9.68 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.01/11.23, allocations: 6.266 kB / 0.7238 GB, free: 9.68 MB / 0.545 GB " [Timeout remaining time 649] (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 --stepSize=0.00516 --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) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.948306023143232] Failed to read output from testmodel.py, exit status != 0: 11.331735985353589 11.34812077 11.168552186 Calling exit ...