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.0007543/0.0007543, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.004487/0.004488, allocations: 170.1 kB / 16.27 MB, free: 6.652 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.364/1.364, allocations: 223.3 MB / 240.3 MB, free: 5.344 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.012/1.012, allocations: 143.2 MB / 434.6 MB, free: 13.72 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003051/0.0003051, allocations: 8 kB / 0.5165 GB, free: 11.13 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1511/0.1514, allocations: 83.42 MB / 0.598 GB, free: 7.668 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial): time 0.001491/0.1529, allocations: 1.243 MB / 0.5992 GB, free: 6.414 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0003127/0.1533, allocations: 116.5 kB / 0.5993 GB, free: 6.297 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.921e-05/0.1533, allocations: 0 / 0.5993 GB, free: 6.297 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 1.272e-05/0.1533, allocations: 0 / 0.5993 GB, free: 6.297 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 4.136e-05/0.1534, allocations: 3.938 kB / 0.5993 GB, free: 6.293 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001734/0.1535, allocations: 23.97 kB / 0.5993 GB, free: 6.27 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 6.148e-05/0.1536, allocations: 31.86 kB / 0.5993 GB, free: 6.238 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 7.607e-05/0.1537, allocations: 7.984 kB / 0.5993 GB, free: 6.23 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 7.771e-05/0.1538, allocations: 12 kB / 0.5994 GB, free: 6.219 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 4.411e-05/0.1538, allocations: 15.91 kB / 0.5994 GB, free: 6.203 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.353e-05/0.1539, allocations: 4 kB / 0.5994 GB, free: 6.199 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 5.032e-05/0.1539, allocations: 8 kB / 0.5994 GB, free: 6.191 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 1.246e-05/0.1539, allocations: 3.984 kB / 0.5994 GB, free: 6.188 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 3.396e-05/0.154, allocations: 37.64 kB / 0.5994 GB, free: 6.145 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 8.582e-05/0.1541, allocations: 31.88 kB / 0.5995 GB, free: 6.113 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.1541, allocations: 0 / 0.5995 GB, free: 6.113 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.363e-06/0.1541, allocations: 0 / 0.5995 GB, free: 6.113 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 3.717e-06/0.1541, allocations: 0 / 0.5995 GB, free: 6.113 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.000393/0.1545, allocations: 351.7 kB / 0.5998 GB, free: 5.719 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.396e-05/0.1545, allocations: 8.031 kB / 0.5998 GB, free: 5.711 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.96e-05/0.1546, allocations: 30.75 kB / 0.5998 GB, free: 5.672 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.382e-05/0.1546, allocations: 4.938 kB / 0.5998 GB, free: 5.668 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001053/0.1547, allocations: 168.3 kB / 0.6 GB, free: 5.465 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.267e-05/0.1547, allocations: 12.31 kB / 0.6 GB, free: 5.453 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.052e-05/0.1547, allocations: 384 / 0.6 GB, free: 5.453 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000171/0.1549, allocations: 62.23 kB / 0.6001 GB, free: 5.387 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.643e-06/0.1549, allocations: 3.938 kB / 0.6001 GB, free: 5.383 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.738e-06/0.1549, allocations: 4 kB / 0.6001 GB, free: 5.379 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.817e-06/0.155, allocations: 0 / 0.6001 GB, free: 5.379 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001796/0.1551, allocations: 51.95 kB / 0.6001 GB, free: 5.328 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003325/0.1555, allocations: 268.8 kB / 0.6004 GB, free: 5.016 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000291/0.1558, allocations: 70.41 kB / 0.6004 GB, free: 4.938 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.737e-05/0.1559, allocations: 32.91 kB / 0.6005 GB, free: 4.902 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001063/0.156, allocations: 81.11 kB / 0.6006 GB, free: 4.805 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.913e-05/0.156, allocations: 34.55 kB / 0.6006 GB, free: 4.762 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=3): time 1.002e-06/0.156, allocations: 0 / 0.6006 GB, free: 4.762 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3): time 0.0003659/0.1564, allocations: 113.6 kB / 0.6007 GB, free: 4.645 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.024e-05/0.1564, allocations: 51.41 kB / 0.6007 GB, free: 4.582 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.42e-05/0.1565, allocations: 106 kB / 0.6008 GB, free: 4.469 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.175e-05/0.1565, allocations: 25.7 kB / 0.6009 GB, free: 4.438 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 3.915e-05/0.1566, allocations: 84.14 kB / 0.6009 GB, free: 4.352 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.068e-05/0.1566, allocations: 15.84 kB / 0.601 GB, free: 4.336 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.117e-05/0.1566, allocations: 9.719 kB / 0.601 GB, free: 4.32 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 9.08e-05/0.1567, allocations: 314.8 kB / 0.6013 GB, free: 4.004 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.985e-05/0.1568, allocations: 23.98 kB / 0.6013 GB, free: 3.98 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.42e-05/0.1569, allocations: 31.97 kB / 0.6013 GB, free: 3.949 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001672/0.1571, allocations: 52.77 kB / 0.6014 GB, free: 3.895 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.1571, allocations: 0 / 0.6014 GB, free: 3.895 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.00022/0.1573, allocations: 97.48 kB / 0.6015 GB, free: 3.793 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.495e-05/0.1573, allocations: 6.188 kB / 0.6015 GB, free: 3.789 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.951e-06/0.1574, allocations: 4 kB / 0.6015 GB, free: 3.785 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.356e-06/0.1574, allocations: 0 / 0.6015 GB, free: 3.785 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.912e-05/0.1574, allocations: 15.98 kB / 0.6015 GB, free: 3.77 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.917e-06/0.1575, allocations: 0 / 0.6015 GB, free: 3.77 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.624e-05/0.1575, allocations: 12 kB / 0.6015 GB, free: 3.758 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.355e-06/0.1575, allocations: 0 / 0.6015 GB, free: 3.758 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.271e-05/0.1576, allocations: 125.7 kB / 0.6016 GB, free: 3.625 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.194e-05/0.1577, allocations: 0 / 0.6016 GB, free: 3.625 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002569/0.1579, allocations: 97.08 kB / 0.6017 GB, free: 3.52 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.654e-06/0.1579, allocations: 0 / 0.6017 GB, free: 3.52 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.336e-06/0.1579, allocations: 0 / 0.6017 GB, free: 3.52 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.104e-06/0.1579, allocations: 0 / 0.6017 GB, free: 3.52 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001635/0.1581, allocations: 169.6 kB / 0.6019 GB, free: 3.305 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.1581, allocations: 0 / 0.6019 GB, free: 3.305 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.275e-05/0.1582, allocations: 11.98 kB / 0.6019 GB, free: 3.293 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.26e-06/0.1582, allocations: 4 kB / 0.6019 GB, free: 3.289 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.013e-06/0.1582, allocations: 4 kB / 0.6019 GB, free: 3.285 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.032e-06/0.1582, allocations: 0 / 0.6019 GB, free: 3.285 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.1582, allocations: 0 / 0.6019 GB, free: 3.285 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002606/0.1585, allocations: 179.5 kB / 0.6021 GB, free: 3.094 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.098e-05/0.1585, allocations: 85 kB / 0.6022 GB, free: 2.992 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.295e-05/0.1586, allocations: 4 kB / 0.6022 GB, free: 2.988 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.208e-05/0.1587, allocations: 4 kB / 0.6022 GB, free: 2.984 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.79e-05/0.1587, allocations: 15.92 kB / 0.6022 GB, free: 2.969 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.09e-06/0.1587, allocations: 0 / 0.6022 GB, free: 2.969 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 4.423e-05/0.1588, allocations: 87.62 kB / 0.6023 GB, free: 2.883 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.1588, allocations: 0 / 0.6023 GB, free: 2.883 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002127/0.159, allocations: 8 kB / 0.6023 GB, free: 2.875 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.0006389/0.1596, allocations: 0.7243 MB / 0.603 GB, free: 2.121 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0002198/0.1599, allocations: 55.95 kB / 0.603 GB, free: 2.066 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.1599, allocations: 0 / 0.603 GB, free: 2.066 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 9.776e-05/0.16, allocations: 35.92 kB / 0.6031 GB, free: 2.031 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002633/0.1603, allocations: 10.8 kB / 0.6031 GB, free: 2.023 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004228/0.1607, allocations: 154.3 kB / 0.6032 GB, free: 1.832 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002453/0.1609, allocations: 0.677 MB / 0.6039 GB, free: 1.129 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 3.256e-05/0.161, allocations: 8 kB / 0.6039 GB, free: 1.121 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.609e-05/0.161, allocations: 7.438 kB / 0.6039 GB, free: 1.113 MB / 0.4981 GB Notification: Performance of SimCode: time 3.4e-07/0.161, allocations: 0 / 0.6039 GB, free: 1.113 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3713/0.5323, allocations: 1.309 MB / 0.6052 GB, free: 40.56 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002802/0.5326, allocations: 196.6 kB / 0.6054 GB, free: 40.31 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.671/2.204, allocations: 1.219 kB / 0.6054 GB, free: 40.31 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)