Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Utilities_Math_Functions_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Utilities_Math_Functions_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.374/1.374, allocations: 285.5 MB / 292.8 MB, free: 14.29 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001014/0.001014, allocations: 183.2 kB / 361.1 MB, free: 11.62 MB / 302.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.183/1.183, allocations: 205.1 MB / 0.6195 GB, free: 2.906 MB / 462.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007991/0.0007993, allocations: 81 kB / 0.7325 GB, free: 53.96 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.2141/0.2149, allocations: 121.5 MB / 0.8512 GB, free: 9.57 MB / 0.5919 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2065/0.4215, allocations: 115.3 MB / 0.9638 GB, free: 6.094 MB / 0.7012 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5165/0.938, allocations: 136.5 MB / 1.097 GB, free: 14.61 MB / 0.7012 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002059/0.9383, allocations: 75.33 kB / 1.097 GB, free: 14.54 MB / 0.7012 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.001132/0.9394, allocations: 0.5145 MB / 1.098 GB, free: 13.98 MB / 0.7012 GB Notification: Performance of prepare preOptimizeDAE: time 4.146e-05/0.9395, allocations: 12.5 kB / 1.098 GB, free: 13.97 MB / 0.7012 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.569e-05/0.9395, allocations: 0 / 1.098 GB, free: 13.97 MB / 0.7012 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.982e-05/0.9396, allocations: 173.6 kB / 1.098 GB, free: 13.77 MB / 0.7012 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.106e-05/0.9396, allocations: 0 / 1.098 GB, free: 13.77 MB / 0.7012 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.294e-06/0.9396, allocations: 0.9375 kB / 1.098 GB, free: 13.77 MB / 0.7012 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.092e-05/0.9397, allocations: 4 kB / 1.098 GB, free: 13.76 MB / 0.7012 GB Notification: Performance of preOpt clockPartitioning (simulation): time 5.323e-05/0.9397, allocations: 34.39 kB / 1.098 GB, free: 13.72 MB / 0.7012 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.572e-06/0.9397, allocations: 2.625 kB / 1.098 GB, free: 13.72 MB / 0.7012 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.139e-05/0.9398, allocations: 0 / 1.098 GB, free: 13.72 MB / 0.7012 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.378e-06/0.9398, allocations: 0 / 1.098 GB, free: 13.72 MB / 0.7012 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.705e-05/0.9399, allocations: 126.2 kB / 1.098 GB, free: 13.56 MB / 0.7012 GB Notification: Performance of preOpt comSubExp (simulation): time 3.649e-05/0.9399, allocations: 22.55 kB / 1.098 GB, free: 13.53 MB / 0.7012 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.019e-05/0.9399, allocations: 17.52 kB / 1.098 GB, free: 13.51 MB / 0.7012 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001203/0.9401, allocations: 85.59 kB / 1.098 GB, free: 13.41 MB / 0.7012 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.377e-05/0.9401, allocations: 31.44 kB / 1.098 GB, free: 13.37 MB / 0.7012 GB Notification: Performance of pre-optimization done (n=2): time 1.242e-06/0.9401, allocations: 0.9688 kB / 1.098 GB, free: 13.37 MB / 0.7012 GB Notification: Performance of matching and sorting (n=2): time 0.0001359/0.9402, allocations: 33.7 kB / 1.098 GB, free: 13.33 MB / 0.7012 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.768e-05/0.9403, allocations: 52.25 kB / 1.098 GB, free: 13.27 MB / 0.7012 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.971e-05/0.9403, allocations: 85 kB / 1.098 GB, free: 13.18 MB / 0.7012 GB Notification: Performance of collectPreVariables (initialization): time 5.961e-06/0.9403, allocations: 26.86 kB / 1.098 GB, free: 13.15 MB / 0.7012 GB Notification: Performance of collectInitialEqns (initialization): time 1.248e-05/0.9403, allocations: 84.14 kB / 1.098 GB, free: 13.06 MB / 0.7012 GB Notification: Performance of collectInitialBindings (initialization): time 1.544e-05/0.9403, allocations: 3.141 kB / 1.098 GB, free: 13.06 MB / 0.7012 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.294e-06/0.9404, allocations: 0 / 1.098 GB, free: 13.06 MB / 0.7012 GB Notification: Performance of setup shared object (initialization): time 4.603e-05/0.9404, allocations: 319.5 kB / 1.099 GB, free: 12.74 MB / 0.7012 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.373e-06/0.9404, allocations: 4.969 kB / 1.099 GB, free: 12.74 MB / 0.7012 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.029e-06/0.9404, allocations: 0 / 1.099 GB, free: 12.74 MB / 0.7012 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.238e-05/0.9405, allocations: 10.38 kB / 1.099 GB, free: 12.73 MB / 0.7012 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.203e-06/0.9405, allocations: 0 / 1.099 GB, free: 12.73 MB / 0.7012 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.882e-05/0.9405, allocations: 37.7 kB / 1.099 GB, free: 12.69 MB / 0.7012 GB Notification: Performance of prepare postOptimizeDAE: time 8.395e-06/0.9405, allocations: 4 kB / 1.099 GB, free: 12.68 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.288e-06/0.9406, allocations: 3.984 kB / 1.099 GB, free: 12.68 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.598e-06/0.9406, allocations: 2.719 kB / 1.099 GB, free: 12.68 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.187e-05/0.9406, allocations: 4 kB / 1.099 GB, free: 12.68 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.968e-06/0.9406, allocations: 0.5312 kB / 1.099 GB, free: 12.68 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.166e-05/0.9407, allocations: 1.25 kB / 1.099 GB, free: 12.68 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.241e-06/0.9407, allocations: 7.906 kB / 1.099 GB, free: 12.67 MB / 0.7012 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 (fac,n) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 3.854e-05/0.9407, allocations: 106.7 kB / 1.099 GB, free: 12.56 MB / 0.7012 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.8e-06/0.9407, allocations: 0 / 1.099 GB, free: 12.56 MB / 0.7012 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.761e-05/0.9408, allocations: 53.47 kB / 1.099 GB, free: 12.5 MB / 0.7012 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.182e-06/0.9408, allocations: 0 / 1.099 GB, free: 12.5 MB / 0.7012 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.546e-06/0.9408, allocations: 3.188 kB / 1.099 GB, free: 12.5 MB / 0.7012 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.945e-06/0.9408, allocations: 0 / 1.099 GB, free: 12.5 MB / 0.7012 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.308e-05/0.9409, allocations: 134.1 kB / 1.099 GB, free: 12.34 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.41e-07/0.9409, allocations: 0.5625 kB / 1.099 GB, free: 12.34 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.985e-05/0.9409, allocations: 1 kB / 1.099 GB, free: 12.34 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.134e-06/0.9409, allocations: 4 kB / 1.099 GB, free: 12.33 MB / 0.7012 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.502e-06/0.9409, allocations: 0 / 1.099 GB, free: 12.33 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.92e-07/0.941, allocations: 1.25 kB / 1.099 GB, free: 12.33 MB / 0.7012 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.883e-06/0.941, allocations: 0 / 1.099 GB, free: 12.33 MB / 0.7012 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 6.732e-05/0.941, allocations: 66.75 kB / 1.099 GB, free: 12.25 MB / 0.7012 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 9.838e-05/0.9411, allocations: 445.4 kB / 1.1 GB, free: 11.8 MB / 0.7012 GB Notification: Performance of postOpt removeConstants (simulation): time 1.453e-05/0.9412, allocations: 85.02 kB / 1.1 GB, free: 11.7 MB / 0.7012 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.06e-05/0.9412, allocations: 0 / 1.1 GB, free: 11.7 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.071e-05/0.9412, allocations: 0 / 1.1 GB, free: 11.7 MB / 0.7012 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.27e-05/0.9412, allocations: 0 / 1.1 GB, free: 11.7 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.134e-06/0.9412, allocations: 0.8438 kB / 1.1 GB, free: 11.7 MB / 0.7012 GB Notification: Performance of sort global known variables: time 1.353e-05/0.9412, allocations: 77.88 kB / 1.1 GB, free: 11.62 MB / 0.7012 GB Notification: Performance of remove unused functions: time 0.0007171/0.942, allocations: 12.58 kB / 1.1 GB, free: 11.61 MB / 0.7012 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,n) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001198/0.9421, allocations: 109.9 kB / 1.1 GB, free: 11.5 MB / 0.7012 GB Notification: Performance of simCode: created initialization part: time 4.487e-05/0.9421, allocations: 12 kB / 1.1 GB, free: 11.48 MB / 0.7012 GB Notification: Performance of simCode: created event and clocks part: time 1.082e-06/0.9422, allocations: 0 / 1.1 GB, free: 11.48 MB / 0.7012 GB Notification: Performance of simCode: created simulation system equations: time 1.132e-05/0.9422, allocations: 7.938 kB / 1.1 GB, free: 11.48 MB / 0.7012 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 7.555e-05/0.9422, allocations: 3.938 kB / 1.1 GB, free: 11.47 MB / 0.7012 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001261/0.9424, allocations: 56.17 kB / 1.1 GB, free: 11.4 MB / 0.7012 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001015/0.9425, allocations: 0.688 MB / 1.101 GB, free: 10.69 MB / 0.7012 GB Notification: Performance of SimCode: time 2.11e-07/0.9425, allocations: 0 / 1.101 GB, free: 10.69 MB / 0.7012 GB (rm -f Buildings_maint.8.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Utilities_Math_Functions_Examples_Factorial_fmu --startTime=0 --stopTime=12.9 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Utilities_Math_Functions_Examples_Factorial.fmu > Buildings_maint.8.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1)