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: translateModel(BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial") translateModel(BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.01025/0.01025, allocations: 100.1 kB / 15.73 MB, free: 6.055 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.001903/0.001903, allocations: 190 kB / 16.67 MB, free: 5.969 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.431/1.431, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.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.9086/0.9086, allocations: 143 MB / 433.6 MB, free: 11.97 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002111/0.002111, allocations: 64.58 kB / 0.5955 GB, free: 12.3 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2018/0.2039, allocations: 82.03 MB / 0.6756 GB, free: 10.36 MB / 0.5137 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial): time 0.002819/0.2068, allocations: 1.53 MB / 0.6771 GB, free: 8.82 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.0003822/0.2072, allocations: 116.5 kB / 0.6772 GB, free: 8.703 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.253e-05/0.2072, allocations: 0 / 0.6772 GB, free: 8.703 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 3.912e-05/0.2073, allocations: 3.938 kB / 0.6772 GB, free: 8.699 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 4.911e-05/0.2074, allocations: 3.938 kB / 0.6772 GB, free: 8.695 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003132/0.2077, allocations: 23.98 kB / 0.6773 GB, free: 8.672 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.0001069/0.2078, allocations: 31.91 kB / 0.6773 GB, free: 8.641 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000126/0.2079, allocations: 11.98 kB / 0.6773 GB, free: 8.629 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 6.618e-05/0.208, allocations: 15.92 kB / 0.6773 GB, free: 8.613 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 6.558e-05/0.2081, allocations: 11.94 kB / 0.6773 GB, free: 8.602 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 1.818e-05/0.2081, allocations: 4 kB / 0.6773 GB, free: 8.598 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 7.1e-05/0.2082, allocations: 11.98 kB / 0.6773 GB, free: 8.586 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 1.483e-05/0.2082, allocations: 8 kB / 0.6774 GB, free: 8.578 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 3.251e-05/0.2082, allocations: 15.91 kB / 0.6774 GB, free: 8.562 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.0001451/0.2084, allocations: 39.78 kB / 0.6774 GB, free: 8.523 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 4.549e-06/0.2084, allocations: 0 / 0.6774 GB, free: 8.523 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.743e-06/0.2084, allocations: 0 / 0.6774 GB, free: 8.523 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 9.117e-06/0.2084, allocations: 0 / 0.6774 GB, free: 8.523 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.0005301/0.2089, allocations: 347.4 kB / 0.6777 GB, free: 8.133 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.521e-05/0.209, allocations: 8.031 kB / 0.6777 GB, free: 8.125 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.36e-05/0.2091, allocations: 4.938 kB / 0.6778 GB, free: 8.121 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001383/0.2092, allocations: 172.2 kB / 0.6779 GB, free: 7.914 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.943e-05/0.2092, allocations: 4.375 kB / 0.6779 GB, free: 7.91 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.663e-05/0.2093, allocations: 8.375 kB / 0.6779 GB, free: 7.902 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002106/0.2095, allocations: 54.22 kB / 0.678 GB, free: 7.844 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.032e-05/0.2095, allocations: 8.188 kB / 0.678 GB, free: 7.836 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.447e-05/0.2095, allocations: 3.938 kB / 0.678 GB, free: 7.832 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.644e-06/0.2095, allocations: 3.938 kB / 0.678 GB, free: 7.828 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001857/0.2097, allocations: 39.95 kB / 0.678 GB, free: 7.789 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004058/0.2101, allocations: 264.9 kB / 0.6783 GB, free: 7.48 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003274/0.2105, allocations: 70.52 kB / 0.6784 GB, free: 7.402 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.352e-05/0.2106, allocations: 20.84 kB / 0.6784 GB, free: 7.379 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001252/0.2107, allocations: 85.09 kB / 0.6785 GB, free: 7.277 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.135e-05/0.2107, allocations: 30.56 kB / 0.6785 GB, free: 7.238 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=3): time 1.263e-06/0.2107, allocations: 0 / 0.6785 GB, free: 7.238 MB / 0.5137 GB Notification: Performance of matching and sorting (n=3): time 0.0003829/0.2111, allocations: 105.6 kB / 0.6786 GB, free: 7.129 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.179e-05/0.2112, allocations: 51.41 kB / 0.6786 GB, free: 7.066 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.555e-05/0.2113, allocations: 101.8 kB / 0.6787 GB, free: 6.957 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 1.538e-05/0.2113, allocations: 25.7 kB / 0.6788 GB, free: 6.926 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 4.427e-05/0.2114, allocations: 84.12 kB / 0.6788 GB, free: 6.84 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 1.58e-05/0.2114, allocations: 7.953 kB / 0.6788 GB, free: 6.832 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.794e-05/0.2114, allocations: 17.72 kB / 0.6789 GB, free: 6.809 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001054/0.2116, allocations: 310.8 kB / 0.6792 GB, free: 6.496 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.343e-05/0.2117, allocations: 27.97 kB / 0.6792 GB, free: 6.469 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.072e-05/0.2117, allocations: 15.98 kB / 0.6792 GB, free: 6.453 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001651/0.2119, allocations: 44.81 kB / 0.6792 GB, free: 6.406 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.871e-06/0.2119, allocations: 3.938 kB / 0.6792 GB, free: 6.402 MB / 0.5137 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002118/0.2122, allocations: 77.59 kB / 0.6793 GB, free: 6.32 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.579e-05/0.2122, allocations: 8 kB / 0.6793 GB, free: 6.312 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.431e-06/0.2122, allocations: 0 / 0.6793 GB, free: 6.312 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.25e-05/0.2122, allocations: 0 / 0.6793 GB, free: 6.312 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.134e-05/0.2123, allocations: 11.98 kB / 0.6793 GB, free: 6.301 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.77e-06/0.2123, allocations: 0 / 0.6793 GB, free: 6.301 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.62e-05/0.2124, allocations: 7.984 kB / 0.6793 GB, free: 6.293 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.251e-06/0.2124, allocations: 0 / 0.6793 GB, free: 6.293 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 7.82e-05/0.2125, allocations: 117.8 kB / 0.6795 GB, free: 6.168 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.667e-05/0.2125, allocations: 11.89 kB / 0.6795 GB, free: 6.156 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002582/0.2128, allocations: 81.08 kB / 0.6795 GB, free: 6.07 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.238e-06/0.2128, allocations: 4 kB / 0.6795 GB, free: 6.066 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.253e-06/0.2128, allocations: 3.984 kB / 0.6796 GB, free: 6.062 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.218e-06/0.2128, allocations: 0 / 0.6796 GB, free: 6.062 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001791/0.213, allocations: 169.5 kB / 0.6797 GB, free: 5.848 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-06/0.213, allocations: 0 / 0.6797 GB, free: 5.848 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.765e-05/0.2131, allocations: 11.98 kB / 0.6797 GB, free: 5.836 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.29e-06/0.2131, allocations: 8.562 kB / 0.6797 GB, free: 5.828 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.086e-05/0.2131, allocations: 3.984 kB / 0.6797 GB, free: 5.824 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.228e-06/0.2131, allocations: 4 kB / 0.6797 GB, free: 5.82 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.2131, allocations: 0 / 0.6797 GB, free: 5.82 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002658/0.2134, allocations: 175.4 kB / 0.6799 GB, free: 5.633 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 3.24e-05/0.2134, allocations: 77.11 kB / 0.68 GB, free: 5.539 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.39e-05/0.2134, allocations: 4 kB / 0.68 GB, free: 5.535 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.806e-05/0.2135, allocations: 11.98 kB / 0.68 GB, free: 5.523 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.929e-05/0.2136, allocations: 7.984 kB / 0.68 GB, free: 5.516 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.639e-06/0.2136, allocations: 0 / 0.68 GB, free: 5.516 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 4.861e-05/0.2137, allocations: 83.28 kB / 0.6801 GB, free: 5.434 MB / 0.5137 GB Notification: Performance of sort global known variables: time 9e-08/0.2137, allocations: 0 / 0.6801 GB, free: 5.434 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0002325/0.2139, allocations: 8 kB / 0.6801 GB, free: 5.426 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.0001639/0.2141, allocations: 103.2 kB / 0.6802 GB, free: 5.312 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0002432/0.2143, allocations: 47.95 kB / 0.6802 GB, free: 5.266 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.2143, allocations: 0 / 0.6802 GB, free: 5.266 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 9.732e-05/0.2145, allocations: 23.92 kB / 0.6803 GB, free: 5.242 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002902/0.2147, allocations: 13.64 kB / 0.6803 GB, free: 5.23 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003023/0.2151, allocations: 109.4 kB / 0.6804 GB, free: 5.098 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002037/0.2153, allocations: 0.6807 MB / 0.681 GB, free: 4.391 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 3.077e-05/0.2153, allocations: 4 kB / 0.681 GB, free: 4.387 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.212e-05/0.2153, allocations: 15.44 kB / 0.6811 GB, free: 4.371 MB / 0.5137 GB Notification: Performance of SimCode: time 2.31e-07/0.2154, allocations: 0 / 0.6811 GB, free: 4.371 MB / 0.5137 GB Notification: Performance of Templates: time 0.003018/0.2184, allocations: 0.7093 MB / 0.6818 GB, free: 3.664 MB / 0.5137 GB make -j1 -f BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial.makefile (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 & ./BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial.pipe 2>&1)