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.00118/0.00118, allocations: 108 kB / 15.6 MB, free: 132 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.001185/0.001185, allocations: 193.6 kB / 16.53 MB, free: 6.391 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.517/1.517, allocations: 222.9 MB / 240.2 MB, free: 4.414 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 1.066/1.066, allocations: 143.1 MB / 433.4 MB, free: 11.46 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001496/0.001496, allocations: 67.89 kB / 0.5143 GB, free: 11.54 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1949/0.1964, allocations: 82.04 MB / 0.5944 GB, free: 9.465 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial): time 0.003313/0.1998, allocations: 1.515 MB / 0.5959 GB, free: 7.938 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0004027/0.2002, allocations: 116.5 kB / 0.596 GB, free: 7.82 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.86e-05/0.2003, allocations: 4 kB / 0.596 GB, free: 7.816 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 2.662e-05/0.2003, allocations: 0 / 0.596 GB, free: 7.816 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 5.442e-05/0.2004, allocations: 3.938 kB / 0.596 GB, free: 7.812 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002722/0.2007, allocations: 23.92 kB / 0.596 GB, free: 7.789 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 8.476e-05/0.2008, allocations: 31.92 kB / 0.5961 GB, free: 7.758 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001113/0.2009, allocations: 15.98 kB / 0.5961 GB, free: 7.742 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 5.356e-05/0.201, allocations: 7.984 kB / 0.5961 GB, free: 7.734 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 5.413e-05/0.201, allocations: 15.92 kB / 0.5961 GB, free: 7.719 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.615e-05/0.201, allocations: 4 kB / 0.5961 GB, free: 7.715 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 8.613e-05/0.2011, allocations: 11.98 kB / 0.5961 GB, free: 7.703 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 1.939e-05/0.2012, allocations: 11.94 kB / 0.5961 GB, free: 7.691 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 3.182e-05/0.2012, allocations: 7.938 kB / 0.5961 GB, free: 7.684 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001233/0.2013, allocations: 35.88 kB / 0.5962 GB, free: 7.648 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.987e-06/0.2013, allocations: 4 kB / 0.5962 GB, free: 7.645 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.072e-06/0.2013, allocations: 0 / 0.5962 GB, free: 7.645 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 9.317e-06/0.2014, allocations: 0 / 0.5962 GB, free: 7.645 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.0005195/0.2019, allocations: 347.7 kB / 0.5965 GB, free: 7.254 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.693e-05/0.2019, allocations: 8.031 kB / 0.5965 GB, free: 7.246 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.814e-05/0.202, allocations: 30.75 kB / 0.5965 GB, free: 7.207 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.994e-05/0.202, allocations: 12.92 kB / 0.5965 GB, free: 7.195 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001751/0.2022, allocations: 168.2 kB / 0.5967 GB, free: 6.992 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.713e-05/0.2022, allocations: 384 / 0.5967 GB, free: 6.992 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.563e-05/0.2023, allocations: 4.375 kB / 0.5967 GB, free: 6.988 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002127/0.2025, allocations: 62.23 kB / 0.5968 GB, free: 6.922 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.979e-06/0.2025, allocations: 3.938 kB / 0.5968 GB, free: 6.918 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.257e-05/0.2025, allocations: 7.922 kB / 0.5968 GB, free: 6.91 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.759e-06/0.2025, allocations: 0 / 0.5968 GB, free: 6.91 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000188/0.2027, allocations: 35.91 kB / 0.5968 GB, free: 6.875 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003914/0.2031, allocations: 268.9 kB / 0.5971 GB, free: 6.562 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003237/0.2035, allocations: 58.53 kB / 0.5971 GB, free: 6.496 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001053/0.2036, allocations: 24.91 kB / 0.5972 GB, free: 6.469 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001491/0.2037, allocations: 81.09 kB / 0.5972 GB, free: 6.371 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.575e-05/0.2038, allocations: 42.5 kB / 0.5973 GB, free: 6.32 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=3): time 1.072e-06/0.2038, allocations: 0 / 0.5973 GB, free: 6.32 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3): time 0.0003992/0.2042, allocations: 89.64 kB / 0.5974 GB, free: 6.227 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.814e-05/0.2042, allocations: 55.39 kB / 0.5974 GB, free: 6.16 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.393e-05/0.2043, allocations: 102 kB / 0.5975 GB, free: 6.051 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.57e-05/0.2043, allocations: 25.7 kB / 0.5975 GB, free: 6.02 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 5.472e-05/0.2044, allocations: 88.05 kB / 0.5976 GB, free: 5.93 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 1.745e-05/0.2044, allocations: 7.938 kB / 0.5976 GB, free: 5.922 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.542e-05/0.2045, allocations: 21.7 kB / 0.5976 GB, free: 5.895 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.000111/0.2046, allocations: 314.8 kB / 0.5979 GB, free: 5.578 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.03e-05/0.2047, allocations: 19.97 kB / 0.598 GB, free: 5.559 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.119e-05/0.2048, allocations: 19.92 kB / 0.598 GB, free: 5.539 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001745/0.205, allocations: 52.75 kB / 0.598 GB, free: 5.484 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.205, allocations: 0 / 0.598 GB, free: 5.484 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002179/0.2052, allocations: 73.56 kB / 0.5981 GB, free: 5.406 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.879e-05/0.2052, allocations: 8 kB / 0.5981 GB, free: 5.398 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.991e-06/0.2052, allocations: 0 / 0.5981 GB, free: 5.398 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.714e-05/0.2052, allocations: 0 / 0.5981 GB, free: 5.398 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.383e-05/0.2053, allocations: 15.98 kB / 0.5981 GB, free: 5.383 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.931e-06/0.2053, allocations: 0 / 0.5981 GB, free: 5.383 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.663e-05/0.2054, allocations: 7.984 kB / 0.5981 GB, free: 5.375 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.695e-06/0.2054, allocations: 0 / 0.5981 GB, free: 5.375 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 9.116e-05/0.2055, allocations: 125.7 kB / 0.5983 GB, free: 5.242 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.637e-05/0.2056, allocations: 0 / 0.5983 GB, free: 5.242 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002652/0.2058, allocations: 81.14 kB / 0.5983 GB, free: 5.152 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.624e-06/0.2058, allocations: 4 kB / 0.5983 GB, free: 5.148 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.684e-06/0.2059, allocations: 4 kB / 0.5983 GB, free: 5.145 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.128e-06/0.2059, allocations: 0 / 0.5983 GB, free: 5.145 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001753/0.206, allocations: 165.6 kB / 0.5985 GB, free: 4.934 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.964e-06/0.2061, allocations: 8 kB / 0.5985 GB, free: 4.926 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.157e-05/0.2061, allocations: 7.984 kB / 0.5985 GB, free: 4.918 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.685e-06/0.2061, allocations: 4 kB / 0.5985 GB, free: 4.914 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.665e-06/0.2062, allocations: 0 / 0.5985 GB, free: 4.914 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.984e-06/0.2062, allocations: 0 / 0.5985 GB, free: 4.914 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.2062, allocations: 0 / 0.5985 GB, free: 4.914 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000267/0.2064, allocations: 191.2 kB / 0.5987 GB, free: 4.711 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.094e-05/0.2065, allocations: 77.11 kB / 0.5988 GB, free: 4.617 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.432e-05/0.2065, allocations: 0 / 0.5988 GB, free: 4.617 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.596e-05/0.2066, allocations: 7.984 kB / 0.5988 GB, free: 4.609 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.504e-05/0.2067, allocations: 4 kB / 0.5988 GB, free: 4.605 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.62e-06/0.2067, allocations: 3.984 kB / 0.5988 GB, free: 4.602 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 4.442e-05/0.2067, allocations: 83.7 kB / 0.5989 GB, free: 4.52 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2067, allocations: 0 / 0.5989 GB, free: 4.52 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002234/0.207, allocations: 8 kB / 0.5989 GB, free: 4.512 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.0006211/0.2076, allocations: 0.7203 MB / 0.5996 GB, free: 3.762 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0002546/0.2078, allocations: 39.95 kB / 0.5996 GB, free: 3.723 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.2079, allocations: 4 kB / 0.5996 GB, free: 3.719 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 9.915e-05/0.208, allocations: 27.97 kB / 0.5996 GB, free: 3.691 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003083/0.2083, allocations: 8 kB / 0.5997 GB, free: 3.684 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004872/0.2088, allocations: 151 kB / 0.5998 GB, free: 3.496 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002524/0.209, allocations: 0.6729 MB / 0.6005 GB, free: 2.797 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 3.625e-05/0.2091, allocations: 11.98 kB / 0.6005 GB, free: 2.785 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.162e-05/0.2091, allocations: 15.38 kB / 0.6005 GB, free: 2.77 MB / 0.4981 GB Notification: Performance of SimCode: time 4.6e-07/0.2091, allocations: 0 / 0.6005 GB, free: 2.77 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0199/0.229, allocations: 1.552 MB / 0.602 GB, free: 1.285 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.662/7.891, allocations: 12.64 kB / 0.602 GB, free: 1.273 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)