Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Utilities.Math.Functions.Examples.Factorial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="Buildings_8_Buildings_Utilities_Math_Functions_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="Buildings_8_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.1.4-maint.8.1.x/package.mo): time 1.623/1.623, allocations: 289.8 MB / 297.1 MB, free: 6.605 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001177/0.001177, allocations: 177.3 kB / 366.3 MB, free: 1.949 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.608/1.608, allocations: 205.1 MB / 0.6256 GB, free: 5.797 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001026/0.001026, allocations: 87.86 kB / 0.7395 GB, free: 39.63 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.3003/0.3014, allocations: 122.4 MB / 0.8591 GB, free: 13.23 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7196/1.021, allocations: 116.3 MB / 0.9727 GB, free: 68.26 MB / 0.6511 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1902/1.211, allocations: 137.5 MB / 1.107 GB, free: 10.99 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002641/1.212, allocations: 75.95 kB / 1.107 GB, free: 10.91 MB / 0.7136 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.001587/1.213, allocations: 0.5183 MB / 1.107 GB, free: 10.36 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 6.033e-05/1.213, allocations: 11.98 kB / 1.107 GB, free: 10.35 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.899e-05/1.213, allocations: 1.156 kB / 1.107 GB, free: 10.35 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001286/1.213, allocations: 164.1 kB / 1.108 GB, free: 10.15 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.128e-05/1.213, allocations: 4 kB / 1.108 GB, free: 10.14 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.137e-05/1.213, allocations: 0.75 kB / 1.108 GB, free: 10.14 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.383e-05/1.214, allocations: 4 kB / 1.108 GB, free: 10.14 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.477e-05/1.214, allocations: 34.72 kB / 1.108 GB, free: 10.1 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.077e-06/1.214, allocations: 0 / 1.108 GB, free: 10.1 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.175e-06/1.214, allocations: 1.469 kB / 1.108 GB, free: 10.1 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.128e-05/1.214, allocations: 4 kB / 1.108 GB, free: 10.1 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001277/1.214, allocations: 130.2 kB / 1.108 GB, free: 9.934 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 4.481e-05/1.214, allocations: 23.95 kB / 1.108 GB, free: 9.902 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.998e-05/1.214, allocations: 12.83 kB / 1.108 GB, free: 9.887 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001782/1.214, allocations: 81.94 kB / 1.108 GB, free: 9.789 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.939e-05/1.214, allocations: 35.97 kB / 1.108 GB, free: 9.746 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=2): time 1.282e-06/1.214, allocations: 0.5312 kB / 1.108 GB, free: 9.746 MB / 0.7136 GB Notification: Performance of matching and sorting (n=2): time 0.0001873/1.214, allocations: 34.52 kB / 1.108 GB, free: 9.707 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.438e-05/1.214, allocations: 52.25 kB / 1.108 GB, free: 9.645 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.247e-05/1.214, allocations: 85 kB / 1.108 GB, free: 9.555 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 1.188e-05/1.214, allocations: 30.61 kB / 1.108 GB, free: 9.52 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 4.103e-05/1.214, allocations: 80.14 kB / 1.108 GB, free: 9.438 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 2.614e-05/1.214, allocations: 4.703 kB / 1.108 GB, free: 9.434 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.48e-06/1.214, allocations: 0 / 1.108 GB, free: 9.434 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001245/1.215, allocations: 324.8 kB / 1.109 GB, free: 9.109 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.208e-06/1.215, allocations: 4.031 kB / 1.109 GB, free: 9.105 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.561e-06/1.215, allocations: 4 kB / 1.109 GB, free: 9.102 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.501e-05/1.215, allocations: 4 kB / 1.109 GB, free: 9.098 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/1.215, allocations: 0 / 1.109 GB, free: 9.098 MB / 0.7136 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.942e-05/1.215, allocations: 41.69 kB / 1.109 GB, free: 9.051 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 9.488e-06/1.215, allocations: 4 kB / 1.109 GB, free: 9.047 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.268e-06/1.215, allocations: 0 / 1.109 GB, free: 9.047 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.988e-06/1.215, allocations: 0 / 1.109 GB, free: 9.047 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.253e-05/1.215, allocations: 4 kB / 1.109 GB, free: 9.043 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.608e-06/1.215, allocations: 6.203 kB / 1.109 GB, free: 9.039 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.475e-05/1.215, allocations: 3.938 kB / 1.109 GB, free: 9.035 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.193e-06/1.215, allocations: 3.906 kB / 1.109 GB, free: 9.031 MB / 0.7136 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 5.958e-05/1.215, allocations: 101 kB / 1.109 GB, free: 8.926 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.155e-06/1.215, allocations: 8 kB / 1.109 GB, free: 8.918 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001127/1.215, allocations: 40.78 kB / 1.109 GB, free: 8.867 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.316e-06/1.215, allocations: 4 kB / 1.109 GB, free: 8.863 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.718e-06/1.215, allocations: 0.75 kB / 1.109 GB, free: 8.863 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.126e-06/1.215, allocations: 4.031 kB / 1.109 GB, free: 8.859 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.244e-05/1.215, allocations: 134.1 kB / 1.109 GB, free: 8.691 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.01e-07/1.215, allocations: 0 / 1.109 GB, free: 8.691 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.259e-05/1.215, allocations: 4 kB / 1.109 GB, free: 8.688 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.423e-06/1.215, allocations: 0 / 1.109 GB, free: 8.688 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.29e-06/1.215, allocations: 0 / 1.109 GB, free: 8.688 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.62e-07/1.215, allocations: 0 / 1.109 GB, free: 8.688 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/1.215, allocations: 5.969 kB / 1.109 GB, free: 8.684 MB / 0.7136 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 9.699e-05/1.215, allocations: 72.97 kB / 1.109 GB, free: 8.594 MB / 0.7136 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002553/1.216, allocations: 437.5 kB / 1.109 GB, free: 8.145 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 3.406e-05/1.216, allocations: 85.02 kB / 1.109 GB, free: 8.043 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.078e-05/1.216, allocations: 0 / 1.109 GB, free: 8.043 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.093e-05/1.216, allocations: 0 / 1.109 GB, free: 8.043 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.887e-05/1.216, allocations: 4 kB / 1.109 GB, free: 8.039 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.053e-06/1.216, allocations: 4.062 kB / 1.109 GB, free: 8.035 MB / 0.7136 GB Notification: Performance of sort global known variables: time 2.864e-05/1.216, allocations: 77.88 kB / 1.11 GB, free: 7.961 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0007302/1.217, allocations: 7.984 kB / 1.11 GB, free: 7.953 MB / 0.7136 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.0001977/1.217, allocations: 107.2 kB / 1.11 GB, free: 7.836 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 7.339e-05/1.217, allocations: 11.94 kB / 1.11 GB, free: 7.824 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/1.217, allocations: 3.938 kB / 1.11 GB, free: 7.82 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 1.647e-05/1.217, allocations: 8 kB / 1.11 GB, free: 7.812 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001014/1.217, allocations: 4.125 kB / 1.11 GB, free: 7.809 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001844/1.217, allocations: 44.06 kB / 1.11 GB, free: 7.742 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003791/1.218, allocations: 0.6841 MB / 1.11 GB, free: 7.031 MB / 0.7136 GB Notification: Performance of SimCode: time 2.4e-07/1.218, allocations: 4 kB / 1.11 GB, free: 7.027 MB / 0.7136 GB (rm -f Buildings_8_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo Buildings_8_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < Buildings_8_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/Buildings_8_Buildings.Utilities.Math.Functions.Examples.Factorial.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Utilities_Math_Functions_Examples_Factorial_fmu --startTime=0 --stopTime=12.9 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Utilities_Math_Functions_Examples_Factorial.fmu > Buildings_8_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1)