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.007824/0.007824, allocations: 101.2 kB / 15.73 MB, free: 5.523 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.001609/0.001609, allocations: 193.2 kB / 16.67 MB, free: 5.461 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.345/1.345, allocations: 222.9 MB / 240.4 MB, free: 4.176 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.9758/0.9758, allocations: 143 MB / 433.6 MB, free: 11.5 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001291/0.001291, allocations: 59.91 kB / 0.5951 GB, free: 8.891 MB / 0.4981 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4373/0.4386, allocations: 82.02 MB / 0.6752 GB, free: 1.098 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial): time 0.002238/0.4409, allocations: 1.514 MB / 0.6766 GB, free: 15.91 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.0003441/0.4412, allocations: 123.6 kB / 0.6768 GB, free: 15.81 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.494e-05/0.4413, allocations: 0 / 0.6768 GB, free: 15.81 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 2.913e-05/0.4413, allocations: 3.938 kB / 0.6768 GB, free: 15.81 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 4.317e-05/0.4414, allocations: 9.281 kB / 0.6768 GB, free: 15.8 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.000213/0.4416, allocations: 18.17 kB / 0.6768 GB, free: 15.79 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 7.762e-05/0.4417, allocations: 31.73 kB / 0.6768 GB, free: 15.77 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 9.104e-05/0.4418, allocations: 15.91 kB / 0.6768 GB, free: 15.76 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 4.261e-05/0.4418, allocations: 13.22 kB / 0.6768 GB, free: 15.75 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 5.104e-05/0.4419, allocations: 16.73 kB / 0.6769 GB, free: 15.74 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 1.382e-05/0.4419, allocations: 2.281 kB / 0.6769 GB, free: 15.74 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 6.032e-05/0.442, allocations: 14.86 kB / 0.6769 GB, free: 15.73 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 1.641e-05/0.442, allocations: 4.938 kB / 0.6769 GB, free: 15.73 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 3.428e-05/0.442, allocations: 15.14 kB / 0.6769 GB, free: 15.71 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.0001155/0.4422, allocations: 32.95 kB / 0.6769 GB, free: 15.69 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.4422, allocations: 0 / 0.6769 GB, free: 15.69 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.453e-06/0.4422, allocations: 0 / 0.6769 GB, free: 15.69 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 5.671e-06/0.4422, allocations: 1.156 kB / 0.6769 GB, free: 15.69 MB / 0.5137 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.0005028/0.4427, allocations: 345.5 kB / 0.6773 GB, free: 15.32 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.069e-05/0.4428, allocations: 13.75 kB / 0.6773 GB, free: 15.32 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.942e-05/0.4428, allocations: 38.67 kB / 0.6773 GB, free: 15.27 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.856e-05/0.4428, allocations: 3.656 kB / 0.6773 GB, free: 15.27 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001307/0.443, allocations: 165.4 kB / 0.6775 GB, free: 15.07 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.861e-05/0.443, allocations: 5.844 kB / 0.6775 GB, free: 15.07 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.333e-05/0.443, allocations: 1.625 kB / 0.6775 GB, free: 15.07 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001917/0.4432, allocations: 56.81 kB / 0.6775 GB, free: 15.02 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.018e-05/0.4432, allocations: 7.938 kB / 0.6775 GB, free: 15.01 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.127e-06/0.4432, allocations: 0.9688 kB / 0.6775 GB, free: 15.01 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.769e-06/0.4432, allocations: 1.062 kB / 0.6775 GB, free: 15.01 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001877/0.4434, allocations: 41.48 kB / 0.6776 GB, free: 14.99 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003608/0.4438, allocations: 266.1 kB / 0.6778 GB, free: 14.7 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003137/0.4441, allocations: 65.92 kB / 0.6779 GB, free: 14.64 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.951e-05/0.4442, allocations: 24.69 kB / 0.6779 GB, free: 14.63 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001197/0.4444, allocations: 88.45 kB / 0.678 GB, free: 14.53 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.106e-05/0.4444, allocations: 31.84 kB / 0.678 GB, free: 14.49 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=3): time 1.152e-06/0.4444, allocations: 0 / 0.678 GB, free: 14.49 MB / 0.5137 GB Notification: Performance of matching and sorting (n=3): time 0.0003946/0.4448, allocations: 102 kB / 0.6781 GB, free: 14.42 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.816e-05/0.4449, allocations: 51.41 kB / 0.6782 GB, free: 14.36 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.431e-05/0.4449, allocations: 98.73 kB / 0.6783 GB, free: 14.25 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 1.401e-05/0.4449, allocations: 26.8 kB / 0.6783 GB, free: 14.22 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 3.87e-05/0.445, allocations: 81.23 kB / 0.6784 GB, free: 14.14 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 1.533e-05/0.445, allocations: 8.984 kB / 0.6784 GB, free: 14.13 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.23e-05/0.4451, allocations: 17.19 kB / 0.6784 GB, free: 14.11 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001101/0.4452, allocations: 316 kB / 0.6787 GB, free: 13.8 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.429e-05/0.4453, allocations: 22.34 kB / 0.6787 GB, free: 13.79 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.562e-05/0.4454, allocations: 19.48 kB / 0.6787 GB, free: 13.78 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001734/0.4455, allocations: 57.72 kB / 0.6788 GB, free: 13.74 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.4455, allocations: 0 / 0.6788 GB, free: 13.74 MB / 0.5137 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002137/0.4458, allocations: 76.31 kB / 0.6789 GB, free: 13.68 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.545e-05/0.4458, allocations: 5.594 kB / 0.6789 GB, free: 13.68 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.28e-06/0.4458, allocations: 0 / 0.6789 GB, free: 13.68 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.468e-05/0.4458, allocations: 1.094 kB / 0.6789 GB, free: 13.68 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.186e-05/0.4459, allocations: 10.89 kB / 0.6789 GB, free: 13.68 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.362e-06/0.4459, allocations: 5.594 kB / 0.6789 GB, free: 13.68 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.072e-05/0.446, allocations: 11.17 kB / 0.6789 GB, free: 13.67 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.444e-06/0.446, allocations: 5.125 kB / 0.6789 GB, free: 13.66 MB / 0.5137 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.921e-05/0.4461, allocations: 116.2 kB / 0.679 GB, free: 13.54 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.511e-05/0.4461, allocations: 1.125 kB / 0.679 GB, free: 13.54 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002606/0.4464, allocations: 86.22 kB / 0.6791 GB, free: 13.48 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.156e-06/0.4464, allocations: 1.219 kB / 0.6791 GB, free: 13.48 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.059e-06/0.4464, allocations: 0 / 0.6791 GB, free: 13.48 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.425e-06/0.4464, allocations: 0.5625 kB / 0.6791 GB, free: 13.48 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001858/0.4466, allocations: 168.8 kB / 0.6793 GB, free: 13.27 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/0.4466, allocations: 0 / 0.6793 GB, free: 13.27 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.806e-05/0.4467, allocations: 15.2 kB / 0.6793 GB, free: 13.26 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.404e-06/0.4467, allocations: 1.219 kB / 0.6793 GB, free: 13.26 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.664e-06/0.4467, allocations: 0 / 0.6793 GB, free: 13.26 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.124e-06/0.4467, allocations: 1.062 kB / 0.6793 GB, free: 13.26 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.4467, allocations: 0 / 0.6793 GB, free: 13.26 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002765/0.447, allocations: 179 kB / 0.6795 GB, free: 13.1 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 4.335e-05/0.4471, allocations: 86.08 kB / 0.6795 GB, free: 13 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.575e-05/0.4471, allocations: 9.062 kB / 0.6795 GB, free: 12.99 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.474e-05/0.4472, allocations: 6.984 kB / 0.6796 GB, free: 12.98 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.208e-05/0.4473, allocations: 7.328 kB / 0.6796 GB, free: 12.98 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.408e-06/0.4473, allocations: 1.031 kB / 0.6796 GB, free: 12.98 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 7.557e-05/0.4473, allocations: 82.53 kB / 0.6796 GB, free: 12.9 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4473, allocations: 0 / 0.6796 GB, free: 12.9 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0002239/0.4476, allocations: 7.25 kB / 0.6796 GB, free: 12.9 MB / 0.5137 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.000613/0.4482, allocations: 0.7089 MB / 0.6803 GB, free: 12.21 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0002422/0.4484, allocations: 45.05 kB / 0.6804 GB, free: 12.19 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.933e-06/0.4485, allocations: 0 / 0.6804 GB, free: 12.19 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0001001/0.4486, allocations: 31.5 kB / 0.6804 GB, free: 12.18 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002514/0.4488, allocations: 1.094 kB / 0.6804 GB, free: 12.18 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004654/0.4493, allocations: 147.4 kB / 0.6806 GB, free: 12.02 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002802/0.4496, allocations: 0.6819 MB / 0.6812 GB, free: 11.31 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 3.21e-05/0.4496, allocations: 6.703 kB / 0.6812 GB, free: 11.31 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.177e-05/0.4497, allocations: 18.03 kB / 0.6812 GB, free: 11.3 MB / 0.5137 GB Notification: Performance of SimCode: time 4.11e-07/0.4497, allocations: 1.312 kB / 0.6812 GB, free: 11.3 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01698/0.4667, allocations: 1.591 MB / 0.6828 GB, free: 10.41 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.517/7.984, allocations: 4.969 kB / 0.6828 GB, free: 10.41 MB / 0.5137 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)