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.001364/0.001364, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001696/0.001696, allocations: 196.7 kB / 16.26 MB, free: 6.617 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.414/1.414, allocations: 222.9 MB / 239.9 MB, free: 4.461 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.031/1.031, allocations: 143 MB / 433.1 MB, free: 11.49 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001433/0.001433, allocations: 63.89 kB / 0.5138 GB, free: 11.9 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2142/0.2157, allocations: 82.05 MB / 0.5939 GB, free: 9.816 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial): time 0.002852/0.2186, allocations: 1.572 MB / 0.5954 GB, free: 8.23 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0003471/0.219, allocations: 112.5 kB / 0.5956 GB, free: 8.117 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.66e-05/0.219, allocations: 0 / 0.5956 GB, free: 8.117 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 3.428e-05/0.2191, allocations: 7.922 kB / 0.5956 GB, free: 8.109 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 4.531e-05/0.2191, allocations: 0 / 0.5956 GB, free: 8.109 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002427/0.2194, allocations: 27.97 kB / 0.5956 GB, free: 8.082 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 6.668e-05/0.2194, allocations: 27.88 kB / 0.5956 GB, free: 8.055 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 9.657e-05/0.2196, allocations: 11.98 kB / 0.5956 GB, free: 8.043 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 4.481e-05/0.2196, allocations: 12 kB / 0.5956 GB, free: 8.031 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 4.799e-05/0.2197, allocations: 15.92 kB / 0.5957 GB, free: 8.016 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.795e-05/0.2197, allocations: 4 kB / 0.5957 GB, free: 8.012 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 6.103e-05/0.2197, allocations: 11.98 kB / 0.5957 GB, free: 8 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 1.463e-05/0.2198, allocations: 7.984 kB / 0.5957 GB, free: 7.992 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 2.985e-05/0.2198, allocations: 15.92 kB / 0.5957 GB, free: 7.977 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001154/0.2199, allocations: 27.91 kB / 0.5957 GB, free: 7.949 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.2199, allocations: 0 / 0.5957 GB, free: 7.949 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.392e-06/0.2199, allocations: 0 / 0.5957 GB, free: 7.949 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.751e-06/0.2199, allocations: 0 / 0.5957 GB, free: 7.949 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.0004574/0.2204, allocations: 358.9 kB / 0.5961 GB, free: 7.551 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 5.306e-05/0.2205, allocations: 12.03 kB / 0.5961 GB, free: 7.539 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.989e-05/0.2205, allocations: 38.69 kB / 0.5961 GB, free: 7.492 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.353e-05/0.2206, allocations: 0.9375 kB / 0.5961 GB, free: 7.492 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001537/0.2207, allocations: 168.4 kB / 0.5963 GB, free: 7.289 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.903e-05/0.2208, allocations: 4.375 kB / 0.5963 GB, free: 7.285 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.669e-05/0.2208, allocations: 384 / 0.5963 GB, free: 7.285 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002229/0.221, allocations: 62.22 kB / 0.5963 GB, free: 7.219 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.025e-05/0.221, allocations: 7.938 kB / 0.5963 GB, free: 7.211 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.071e-05/0.221, allocations: 0 / 0.5963 GB, free: 7.211 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.43e-06/0.2211, allocations: 0 / 0.5963 GB, free: 7.211 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001893/0.2212, allocations: 51.83 kB / 0.5964 GB, free: 7.16 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004018/0.2217, allocations: 260.8 kB / 0.5966 GB, free: 6.855 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000334/0.222, allocations: 62.53 kB / 0.5967 GB, free: 6.785 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.551e-05/0.2221, allocations: 24.91 kB / 0.5967 GB, free: 6.758 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001185/0.2222, allocations: 85.09 kB / 0.5968 GB, free: 6.656 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.957e-05/0.2223, allocations: 30.56 kB / 0.5968 GB, free: 6.617 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=3): time 2.665e-06/0.2223, allocations: 0 / 0.5968 GB, free: 6.617 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3): time 0.0003754/0.2226, allocations: 97.56 kB / 0.5969 GB, free: 6.516 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.447e-05/0.2227, allocations: 51.41 kB / 0.597 GB, free: 6.453 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.257e-05/0.2228, allocations: 102.2 kB / 0.5971 GB, free: 6.344 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.348e-05/0.2228, allocations: 25.7 kB / 0.5971 GB, free: 6.312 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 4.309e-05/0.2228, allocations: 88.12 kB / 0.5972 GB, free: 6.223 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 1.65e-05/0.2229, allocations: 7.844 kB / 0.5972 GB, free: 6.215 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.291e-05/0.2229, allocations: 17.72 kB / 0.5972 GB, free: 6.191 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001131/0.223, allocations: 318.8 kB / 0.5975 GB, free: 5.871 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.953e-05/0.2231, allocations: 19.97 kB / 0.5975 GB, free: 5.852 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.122e-05/0.2232, allocations: 20.02 kB / 0.5975 GB, free: 5.832 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001665/0.2234, allocations: 52.69 kB / 0.5976 GB, free: 5.777 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.2234, allocations: 0 / 0.5976 GB, free: 5.777 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002153/0.2236, allocations: 81.56 kB / 0.5977 GB, free: 5.691 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.64e-05/0.2237, allocations: 4 kB / 0.5977 GB, free: 5.688 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.081e-06/0.2237, allocations: 0 / 0.5977 GB, free: 5.688 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.833e-05/0.2237, allocations: 7.984 kB / 0.5977 GB, free: 5.68 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.761e-05/0.2238, allocations: 4 kB / 0.5977 GB, free: 5.676 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.948e-06/0.2238, allocations: 4 kB / 0.5977 GB, free: 5.672 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.506e-05/0.2238, allocations: 7.922 kB / 0.5977 GB, free: 5.664 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.68e-06/0.2239, allocations: 4 kB / 0.5977 GB, free: 5.66 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.369e-05/0.2239, allocations: 117.8 kB / 0.5978 GB, free: 5.535 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.563e-05/0.224, allocations: 4 kB / 0.5978 GB, free: 5.531 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00025/0.2242, allocations: 81.08 kB / 0.5979 GB, free: 5.441 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.537e-06/0.2242, allocations: 3.984 kB / 0.5979 GB, free: 5.438 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.599e-06/0.2243, allocations: 0 / 0.5979 GB, free: 5.438 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.444e-06/0.2243, allocations: 0 / 0.5979 GB, free: 5.438 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001643/0.2244, allocations: 161.6 kB / 0.5981 GB, free: 5.23 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.216e-06/0.2244, allocations: 3.984 kB / 0.5981 GB, free: 5.227 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.695e-05/0.2245, allocations: 16 kB / 0.5981 GB, free: 5.211 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.976e-06/0.2245, allocations: 0 / 0.5981 GB, free: 5.211 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.574e-05/0.2246, allocations: 3.984 kB / 0.5981 GB, free: 5.207 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.127e-06/0.2246, allocations: 4 kB / 0.5981 GB, free: 5.203 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.2246, allocations: 0 / 0.5981 GB, free: 5.203 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000308/0.2249, allocations: 175.3 kB / 0.5982 GB, free: 5.016 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.437e-05/0.225, allocations: 85.11 kB / 0.5983 GB, free: 4.914 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.793e-05/0.225, allocations: 7.922 kB / 0.5983 GB, free: 4.906 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.393e-05/0.2251, allocations: 4 kB / 0.5983 GB, free: 4.902 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.415e-05/0.2251, allocations: 7.984 kB / 0.5983 GB, free: 4.895 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.692e-06/0.2252, allocations: 4 kB / 0.5984 GB, free: 4.891 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 3.954e-05/0.2252, allocations: 79.28 kB / 0.5984 GB, free: 4.812 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2252, allocations: 0 / 0.5984 GB, free: 4.812 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002481/0.2255, allocations: 4 kB / 0.5984 GB, free: 4.809 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.0005925/0.2261, allocations: 0.7166 MB / 0.5991 GB, free: 4.062 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0002285/0.2263, allocations: 51.95 kB / 0.5992 GB, free: 4.012 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.2263, allocations: 0 / 0.5992 GB, free: 4.012 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001013/0.2264, allocations: 31.97 kB / 0.5992 GB, free: 3.98 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003037/0.2267, allocations: 0 / 0.5992 GB, free: 3.98 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004412/0.2272, allocations: 159 kB / 0.5994 GB, free: 3.785 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002441/0.2274, allocations: 0.6768 MB / 0.6 GB, free: 3.082 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 3.233e-05/0.2275, allocations: 7.938 kB / 0.6 GB, free: 3.074 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.329e-05/0.2275, allocations: 11.44 kB / 0.6 GB, free: 3.062 MB / 0.4981 GB Notification: Performance of SimCode: time 2.4e-07/0.2275, allocations: 0 / 0.6 GB, free: 3.062 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.009849/0.2374, allocations: 1.419 MB / 0.6014 GB, free: 1.758 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000197/0.2376, allocations: 199.4 kB / 0.6016 GB, free: 1.504 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.761/1.999, allocations: 7.938 kB / 0.6016 GB, free: 1.496 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)