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.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.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001442/0.001442, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001785/0.001785, allocations: 194.3 kB / 16.13 MB, free: 6.656 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.311/1.311, allocations: 222.9 MB / 239.8 MB, free: 4.59 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.9683/0.9683, allocations: 143 MB / 433 MB, free: 11.74 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001228/0.001228, allocations: 63.91 kB / 0.5136 GB, free: 12.07 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1791/0.1803, allocations: 82.02 MB / 0.5937 GB, free: 10.01 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial): time 0.003233/0.1836, allocations: 1.581 MB / 0.5953 GB, free: 8.414 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0004458/0.1841, allocations: 112.5 kB / 0.5954 GB, free: 8.301 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.336e-05/0.1841, allocations: 0 / 0.5954 GB, free: 8.301 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 3.847e-05/0.1842, allocations: 3.984 kB / 0.5954 GB, free: 8.297 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 5.3e-05/0.1842, allocations: 3.938 kB / 0.5954 GB, free: 8.293 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002498/0.1845, allocations: 27.97 kB / 0.5954 GB, free: 8.266 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 7.649e-05/0.1846, allocations: 35.86 kB / 0.5954 GB, free: 8.23 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001085/0.1847, allocations: 8 kB / 0.5954 GB, free: 8.223 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 4.361e-05/0.1847, allocations: 7.984 kB / 0.5955 GB, free: 8.215 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 5.168e-05/0.1848, allocations: 11.94 kB / 0.5955 GB, free: 8.203 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.723e-05/0.1848, allocations: 3.984 kB / 0.5955 GB, free: 8.199 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 7.299e-05/0.1849, allocations: 15.98 kB / 0.5955 GB, free: 8.184 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 1.348e-05/0.1849, allocations: 0 / 0.5955 GB, free: 8.184 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 3.367e-05/0.1849, allocations: 15.92 kB / 0.5955 GB, free: 8.168 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.00012/0.1851, allocations: 27.91 kB / 0.5955 GB, free: 8.141 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.199e-06/0.1851, allocations: 4 kB / 0.5955 GB, free: 8.137 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.082e-06/0.1851, allocations: 0 / 0.5955 GB, free: 8.137 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 4.97e-06/0.1851, allocations: 0 / 0.5955 GB, free: 8.137 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0005635/0.1857, allocations: 351.6 kB / 0.5959 GB, free: 7.742 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.996e-05/0.1857, allocations: 8.031 kB / 0.5959 GB, free: 7.734 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.542e-05/0.1858, allocations: 34.75 kB / 0.5959 GB, free: 7.691 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.336e-05/0.1858, allocations: 0.9375 kB / 0.5959 GB, free: 7.691 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001511/0.186, allocations: 172.2 kB / 0.5961 GB, free: 7.484 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.69e-05/0.186, allocations: 12.38 kB / 0.5961 GB, free: 7.473 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.222e-05/0.186, allocations: 4.312 kB / 0.5961 GB, free: 7.469 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001942/0.1862, allocations: 58.22 kB / 0.5961 GB, free: 7.406 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.488e-06/0.1862, allocations: 3.938 kB / 0.5961 GB, free: 7.402 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.099e-05/0.1863, allocations: 4 kB / 0.5962 GB, free: 7.398 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.013e-06/0.1863, allocations: 0 / 0.5962 GB, free: 7.398 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000181/0.1865, allocations: 39.95 kB / 0.5962 GB, free: 7.359 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003589/0.1868, allocations: 260.9 kB / 0.5964 GB, free: 7.055 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003281/0.1872, allocations: 62.47 kB / 0.5965 GB, free: 6.984 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001016/0.1873, allocations: 28.89 kB / 0.5965 GB, free: 6.953 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001211/0.1874, allocations: 81.11 kB / 0.5966 GB, free: 6.855 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.913e-05/0.1874, allocations: 34.56 kB / 0.5966 GB, free: 6.812 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=3): time 1.153e-06/0.1874, allocations: 0 / 0.5966 GB, free: 6.812 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3): time 0.000374/0.1878, allocations: 97.56 kB / 0.5967 GB, free: 6.711 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.95e-05/0.1879, allocations: 51.41 kB / 0.5968 GB, free: 6.648 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.753e-05/0.1879, allocations: 101.9 kB / 0.5969 GB, free: 6.539 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.45e-05/0.188, allocations: 25.7 kB / 0.5969 GB, free: 6.508 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 5.435e-05/0.188, allocations: 92.03 kB / 0.597 GB, free: 6.414 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 1.651e-05/0.188, allocations: 7.938 kB / 0.597 GB, free: 6.406 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.245e-05/0.1881, allocations: 13.72 kB / 0.597 GB, free: 6.387 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001164/0.1882, allocations: 314.8 kB / 0.5973 GB, free: 6.07 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.664e-05/0.1883, allocations: 19.98 kB / 0.5973 GB, free: 6.051 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.088e-05/0.1884, allocations: 19.98 kB / 0.5973 GB, free: 6.031 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001783/0.1886, allocations: 53.22 kB / 0.5974 GB, free: 5.977 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.1886, allocations: 0 / 0.5974 GB, free: 5.977 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000212/0.1888, allocations: 81.48 kB / 0.5975 GB, free: 5.891 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.489e-05/0.1888, allocations: 6.188 kB / 0.5975 GB, free: 5.887 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.301e-06/0.1888, allocations: 3.984 kB / 0.5975 GB, free: 5.883 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.268e-05/0.1889, allocations: 0 / 0.5975 GB, free: 5.883 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.764e-05/0.1889, allocations: 8 kB / 0.5975 GB, free: 5.875 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.675e-05/0.189, allocations: 7.984 kB / 0.5975 GB, free: 5.867 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.043e-05/0.189, allocations: 12 kB / 0.5975 GB, free: 5.855 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.989e-06/0.189, allocations: 4 kB / 0.5975 GB, free: 5.852 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 (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 8.996e-05/0.1891, allocations: 113.7 kB / 0.5976 GB, free: 5.73 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.805e-05/0.1892, allocations: 7.984 kB / 0.5976 GB, free: 5.723 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002608/0.1894, allocations: 81.14 kB / 0.5977 GB, free: 5.633 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.994e-06/0.1894, allocations: 7.938 kB / 0.5977 GB, free: 5.625 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.629e-06/0.1895, allocations: 3.938 kB / 0.5977 GB, free: 5.621 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.966e-06/0.1895, allocations: 0 / 0.5977 GB, free: 5.621 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001682/0.1896, allocations: 161.6 kB / 0.5979 GB, free: 5.414 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.055e-06/0.1896, allocations: 3.984 kB / 0.5979 GB, free: 5.41 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.221e-05/0.1897, allocations: 8 kB / 0.5979 GB, free: 5.402 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.933e-06/0.1897, allocations: 0 / 0.5979 GB, free: 5.402 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.246e-05/0.1898, allocations: 3.984 kB / 0.5979 GB, free: 5.398 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.243e-06/0.1898, allocations: 0 / 0.5979 GB, free: 5.398 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.1898, allocations: 0 / 0.5979 GB, free: 5.398 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002732/0.19, allocations: 175.4 kB / 0.5981 GB, free: 5.211 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.456e-05/0.1901, allocations: 77.11 kB / 0.5981 GB, free: 5.117 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.682e-05/0.1901, allocations: 11.98 kB / 0.5981 GB, free: 5.105 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.243e-05/0.1902, allocations: 4 kB / 0.5981 GB, free: 5.102 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.604e-05/0.1902, allocations: 3.984 kB / 0.5981 GB, free: 5.098 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.174e-06/0.1903, allocations: 4 kB / 0.5982 GB, free: 5.094 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 4.672e-05/0.1903, allocations: 87.22 kB / 0.5982 GB, free: 5.008 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.5e-07/0.1903, allocations: 0 / 0.5982 GB, free: 5.008 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002138/0.1905, allocations: 8 kB / 0.5982 GB, free: 5 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.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.0005701/0.1911, allocations: 0.7007 MB / 0.5989 GB, free: 4.27 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0002253/0.1913, allocations: 55.94 kB / 0.599 GB, free: 4.215 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.1914, allocations: 0 / 0.599 GB, free: 4.215 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 9.753e-05/0.1915, allocations: 24.34 kB / 0.599 GB, free: 4.191 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002758/0.1917, allocations: 7.938 kB / 0.599 GB, free: 4.184 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004272/0.1922, allocations: 160.8 kB / 0.5992 GB, free: 3.988 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002635/0.1924, allocations: 0.6809 MB / 0.5998 GB, free: 3.281 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 3.124e-05/0.1925, allocations: 0 / 0.5998 GB, free: 3.281 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.837e-05/0.1925, allocations: 11.44 kB / 0.5998 GB, free: 3.27 MB / 0.4981 GB Notification: Performance of SimCode: time 2.8e-07/0.1925, allocations: 0 / 0.5998 GB, free: 3.27 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01019/0.2027, allocations: 1.382 MB / 0.6012 GB, free: 1.984 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001664/0.2029, allocations: 200.7 kB / 0.6014 GB, free: 1.727 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.654/1.857, allocations: 0 / 0.6014 GB, free: 1.727 MB / 0.4981 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildSysPro_BuildSysPro_IBPSA_Utilities_Math_Examples_Factorial_fmu --startTime=0 --stopTime=13 --timeout=50 --tolerance=1e-06 BuildSysPro_BuildSysPro_IBPSA_Utilities_Math_Examples_Factorial.fmu > BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial.pipe 2>&1)