Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.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.001871/0.001871, allocations: 108.9 kB / 16.46 MB, free: 6.508 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.002062/0.002062, allocations: 216.2 kB / 19.43 MB, free: 3.648 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.496/1.496, allocations: 230.6 MB / 252.8 MB, free: 9.113 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.8979/0.8979, allocations: 145 MB / 453.8 MB, free: 0.6719 MB / 350.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.Examples.Factorial,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Utilities_Math_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.00287/0.00287, allocations: 65.53 kB / 0.628 GB, free: 10.61 MB / 462.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1795/0.1823, allocations: 87.83 MB / 0.7138 GB, free: 2.781 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial): time 0.002782/0.1851, allocations: 1.531 MB / 0.7153 GB, free: 1.23 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.0003693/0.1855, allocations: 124.5 kB / 0.7154 GB, free: 1.105 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.451e-05/0.1855, allocations: 0 / 0.7154 GB, free: 1.105 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 3.595e-05/0.1855, allocations: 3.938 kB / 0.7154 GB, free: 1.102 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 4.617e-05/0.1856, allocations: 7.938 kB / 0.7154 GB, free: 1.094 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002262/0.1858, allocations: 23.95 kB / 0.7155 GB, free: 1.07 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 7.185e-05/0.1859, allocations: 27.92 kB / 0.7155 GB, free: 1.043 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 8.425e-05/0.186, allocations: 8 kB / 0.7155 GB, free: 1.035 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 4.245e-05/0.186, allocations: 15.92 kB / 0.7155 GB, free: 1.02 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 4.744e-05/0.1861, allocations: 15.97 kB / 0.7155 GB, free: 1.004 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 1.316e-05/0.1861, allocations: 4 kB / 0.7155 GB, free: 1 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 5.675e-05/0.1861, allocations: 12 kB / 0.7155 GB, free: 0.9883 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 1.589e-05/0.1862, allocations: 15.92 kB / 0.7156 GB, free: 0.9727 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 2.598e-05/0.1862, allocations: 11.94 kB / 0.7156 GB, free: 0.9609 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.000113/0.1863, allocations: 35.88 kB / 0.7156 GB, free: 0.9258 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.1863, allocations: 0 / 0.7156 GB, free: 0.9258 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.744e-06/0.1863, allocations: 0 / 0.7156 GB, free: 0.9258 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 4.739e-06/0.1863, allocations: 0 / 0.7156 GB, free: 0.9258 MB / 0.5294 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0005275/0.1868, allocations: 339.4 kB / 0.7159 GB, free: 0.543 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.897e-05/0.1869, allocations: 12.03 kB / 0.7159 GB, free: 0.5312 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.367e-05/0.1869, allocations: 42.69 kB / 0.716 GB, free: 492 kB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.712e-05/0.1869, allocations: 8.828 kB / 0.716 GB, free: 484 kB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000142/0.1871, allocations: 168.4 kB / 0.7161 GB, free: 276 kB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.102e-05/0.1871, allocations: 384 / 0.7161 GB, free: 276 kB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.927e-06/0.1871, allocations: 384 / 0.7161 GB, free: 276 kB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002046/0.1873, allocations: 58.23 kB / 0.7162 GB, free: 212 kB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.044e-05/0.1873, allocations: 3.938 kB / 0.7162 GB, free: 208 kB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.167e-06/0.1873, allocations: 0 / 0.7162 GB, free: 208 kB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.108e-06/0.1873, allocations: 0 / 0.7162 GB, free: 208 kB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002014/0.1875, allocations: 43.95 kB / 0.7162 GB, free: 164 kB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004199/0.188, allocations: 272.8 kB / 0.7165 GB, free: 15.84 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003406/0.1883, allocations: 50.55 kB / 0.7166 GB, free: 15.79 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001136/0.1884, allocations: 28.89 kB / 0.7166 GB, free: 15.75 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001301/0.1885, allocations: 81.11 kB / 0.7167 GB, free: 15.66 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.953e-05/0.1886, allocations: 38.56 kB / 0.7167 GB, free: 15.61 MB / 0.545 GB Notification: Performance of pre-optimization done (n=3): time 9.62e-07/0.1886, allocations: 0 / 0.7167 GB, free: 15.61 MB / 0.545 GB Notification: Performance of matching and sorting (n=3): time 0.0004222/0.189, allocations: 93.56 kB / 0.7168 GB, free: 15.51 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.712e-05/0.1891, allocations: 51.41 kB / 0.7168 GB, free: 15.45 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.745e-05/0.1891, allocations: 105.8 kB / 0.7169 GB, free: 15.34 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.704e-05/0.1892, allocations: 29.64 kB / 0.717 GB, free: 15.3 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 6.155e-05/0.1892, allocations: 84.14 kB / 0.717 GB, free: 15.21 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 1.95e-05/0.1892, allocations: 11.89 kB / 0.7171 GB, free: 15.2 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.11e-05/0.1893, allocations: 17.7 kB / 0.7171 GB, free: 15.18 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001485/0.1894, allocations: 314.8 kB / 0.7174 GB, free: 14.86 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.88e-05/0.1895, allocations: 15.98 kB / 0.7174 GB, free: 14.85 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.453e-05/0.1896, allocations: 24.34 kB / 0.7174 GB, free: 14.82 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001954/0.1898, allocations: 52.84 kB / 0.7175 GB, free: 14.77 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.1898, allocations: 3.938 kB / 0.7175 GB, free: 14.77 MB / 0.545 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000228/0.19, allocations: 77.59 kB / 0.7175 GB, free: 14.68 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.727e-05/0.1901, allocations: 4 kB / 0.7175 GB, free: 14.68 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.388e-06/0.1901, allocations: 0 / 0.7175 GB, free: 14.68 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.3e-05/0.1901, allocations: 0 / 0.7175 GB, free: 14.68 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.656e-05/0.1902, allocations: 19.98 kB / 0.7176 GB, free: 14.66 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.849e-06/0.1902, allocations: 0 / 0.7176 GB, free: 14.66 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.95e-05/0.1902, allocations: 7.984 kB / 0.7176 GB, free: 14.65 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.675e-06/0.1902, allocations: 4 kB / 0.7176 GB, free: 14.65 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 (rea2Int.y,fac.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * 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 9.826e-05/0.1903, allocations: 113.8 kB / 0.7177 GB, free: 14.53 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.387e-05/0.1904, allocations: 0 / 0.7177 GB, free: 14.53 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00028/0.1906, allocations: 93.08 kB / 0.7178 GB, free: 14.43 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.994e-06/0.1906, allocations: 0 / 0.7178 GB, free: 14.43 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.938e-06/0.1906, allocations: 0 / 0.7178 GB, free: 14.43 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.395e-06/0.1906, allocations: 0 / 0.7178 GB, free: 14.43 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002039/0.1909, allocations: 169.5 kB / 0.7179 GB, free: 14.21 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.11e-07/0.1909, allocations: 0 / 0.7179 GB, free: 14.21 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.683e-05/0.1909, allocations: 11.98 kB / 0.7179 GB, free: 14.2 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.924e-06/0.1909, allocations: 0 / 0.7179 GB, free: 14.2 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.675e-06/0.1909, allocations: 0 / 0.7179 GB, free: 14.2 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.002e-06/0.1909, allocations: 0 / 0.7179 GB, free: 14.2 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.243e-06/0.1909, allocations: 0 / 0.7179 GB, free: 14.2 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000301/0.1912, allocations: 183.4 kB / 0.7181 GB, free: 14.01 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 4.59e-05/0.1913, allocations: 81.06 kB / 0.7182 GB, free: 13.91 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.306e-05/0.1913, allocations: 0 / 0.7182 GB, free: 13.91 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.751e-05/0.1914, allocations: 7.984 kB / 0.7182 GB, free: 13.9 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.468e-05/0.1914, allocations: 7.938 kB / 0.7182 GB, free: 13.89 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.037e-06/0.1914, allocations: 4 kB / 0.7182 GB, free: 13.89 MB / 0.545 GB Notification: Performance of sorting global known variables: time 5.626e-05/0.1915, allocations: 87.27 kB / 0.7183 GB, free: 13.8 MB / 0.545 GB Notification: Performance of sort global known variables: time 6e-08/0.1915, allocations: 0 / 0.7183 GB, free: 13.8 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002257/0.1917, allocations: 8 kB / 0.7183 GB, free: 13.8 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.y,rea2Int.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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.0006941/0.1924, allocations: 0.7088 MB / 0.719 GB, free: 13.06 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0002468/0.1927, allocations: 47.92 kB / 0.719 GB, free: 13.01 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.1927, allocations: 0 / 0.719 GB, free: 13.01 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.000126/0.1928, allocations: 27.97 kB / 0.7191 GB, free: 12.98 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002847/0.1931, allocations: 4 kB / 0.7191 GB, free: 12.98 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000446/0.1935, allocations: 147 kB / 0.7192 GB, free: 12.8 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003311/0.1939, allocations: 0.6807 MB / 0.7199 GB, free: 12.09 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 2.851e-05/0.1939, allocations: 0 / 0.7199 GB, free: 12.09 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.46e-05/0.1939, allocations: 19.42 kB / 0.7199 GB, free: 12.07 MB / 0.545 GB Notification: Performance of SimCode: time 2.9e-07/0.1939, allocations: 0 / 0.7199 GB, free: 12.07 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02787/0.2218, allocations: 1.603 MB / 0.7215 GB, free: 10.56 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.841/8.062, allocations: 2.75 kB / 0.7215 GB, free: 10.56 MB / 0.545 GB " [Timeout remaining time 652] (rm -f BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial.sim & python3 -m fmpy simulate --output-file BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial_res.csv --start-time 0 --stop-time 13 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0052 BuildSysPro_BuildSysPro_IBPSA_Utilities_Math_Examples_Factorial.fmu > BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 11.841268820993719] Failed to read output from testmodel.py, exit status != 0: 8.144321836996824 8.158677564 7.969474581 Calling exit ...