Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Factorial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Factorial,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Factorial,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Utilities_Math_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 7.0.3-maint.7.0.x/package.mo): time 1.245/1.245, allocations: 249.4 MB / 256.7 MB, free: 6.941 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00108/0.00108, allocations: 173 kB / 316 MB, free: 3.527 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.203/1.203, allocations: 205.2 MB / 0.5667 GB, free: 15.61 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009312/0.0009312, allocations: 93.5 kB / 0.671 GB, free: 4.734 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.3778/0.3788, allocations: 112.5 MB / 0.7808 GB, free: 103 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1786/0.5574, allocations: 106.3 MB / 0.8847 GB, free: 12.52 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5246/1.082, allocations: 132.2 MB / 1.014 GB, free: 6.637 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001972/1.082, allocations: 72.75 kB / 1.014 GB, free: 6.602 MB / 0.6355 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.002829/1.085, allocations: 0.9653 MB / 1.015 GB, free: 5.699 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 3.783e-05/1.085, allocations: 8 kB / 1.015 GB, free: 5.688 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.98e-05/1.085, allocations: 4 kB / 1.015 GB, free: 5.684 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001146/1.085, allocations: 167 kB / 1.015 GB, free: 5.48 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.881e-05/1.085, allocations: 0 / 1.015 GB, free: 5.48 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.226e-05/1.085, allocations: 4 kB / 1.015 GB, free: 5.477 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.743e-05/1.085, allocations: 19.55 kB / 1.015 GB, free: 5.465 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.828e-05/1.086, allocations: 48.36 kB / 1.015 GB, free: 5.418 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.033e-06/1.086, allocations: 0 / 1.015 GB, free: 5.418 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.006e-05/1.086, allocations: 0 / 1.015 GB, free: 5.418 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.242e-06/1.086, allocations: 4 kB / 1.015 GB, free: 5.414 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004224/1.086, allocations: 267.6 kB / 1.015 GB, free: 5.125 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002231/1.086, allocations: 45.42 kB / 1.015 GB, free: 5.078 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.057e-05/1.086, allocations: 12.05 kB / 1.015 GB, free: 5.066 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001188/1.086, allocations: 81.11 kB / 1.015 GB, free: 4.969 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.101e-05/1.086, allocations: 30.56 kB / 1.015 GB, free: 4.93 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=3): time 1.222e-06/1.086, allocations: 0 / 1.015 GB, free: 4.93 MB / 0.6355 GB Notification: Performance of matching and sorting (n=3): time 0.000181/1.087, allocations: 56.88 kB / 1.015 GB, free: 4.875 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.724e-05/1.087, allocations: 55.41 kB / 1.016 GB, free: 4.809 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.178e-05/1.087, allocations: 96.42 kB / 1.016 GB, free: 4.711 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.537e-05/1.087, allocations: 25.7 kB / 1.016 GB, free: 4.68 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 3.22e-05/1.087, allocations: 84.14 kB / 1.016 GB, free: 4.594 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 1.468e-05/1.087, allocations: 3.906 kB / 1.016 GB, free: 4.59 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.849e-06/1.087, allocations: 0 / 1.016 GB, free: 4.59 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 8.748e-05/1.087, allocations: 314 kB / 1.016 GB, free: 4.277 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.837e-05/1.087, allocations: 4 kB / 1.016 GB, free: 4.273 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.747e-05/1.087, allocations: 11.48 kB / 1.016 GB, free: 4.266 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.155e-05/1.087, allocations: 15.66 kB / 1.016 GB, free: 4.254 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/1.087, allocations: 0 / 1.016 GB, free: 4.254 MB / 0.6355 GB Notification: Performance of matching and sorting (n=3) (initialization): time 9.967e-05/1.087, allocations: 48.81 kB / 1.016 GB, free: 4.203 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.254e-05/1.087, allocations: 4 kB / 1.016 GB, free: 4.199 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.2e-06/1.087, allocations: 0 / 1.016 GB, free: 4.199 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.054e-05/1.087, allocations: 0 / 1.016 GB, free: 4.199 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.933e-05/1.087, allocations: 19.92 kB / 1.016 GB, free: 4.18 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.92e-06/1.087, allocations: 4 kB / 1.016 GB, free: 4.176 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.889e-05/1.087, allocations: 12.64 kB / 1.016 GB, free: 4.164 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.708e-06/1.087, allocations: 11.95 kB / 1.016 GB, free: 4.156 MB / 0.6355 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.y,fac.u) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.912e-05/1.087, allocations: 101 kB / 1.016 GB, free: 4.051 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.767e-05/1.088, allocations: 4 kB / 1.016 GB, free: 4.047 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001738/1.088, allocations: 57.3 kB / 1.016 GB, free: 3.988 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.913e-06/1.088, allocations: 0 / 1.016 GB, free: 3.988 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.081e-06/1.088, allocations: 3.906 kB / 1.016 GB, free: 3.984 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.637e-06/1.088, allocations: 4.359 kB / 1.016 GB, free: 3.98 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001162/1.088, allocations: 141.2 kB / 1.016 GB, free: 3.812 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.924e-06/1.088, allocations: 3.75 kB / 1.016 GB, free: 3.812 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.947e-05/1.088, allocations: 11.98 kB / 1.016 GB, free: 3.801 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.104e-06/1.088, allocations: 3.938 kB / 1.016 GB, free: 3.797 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.133e-06/1.088, allocations: 8 kB / 1.016 GB, free: 3.789 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.464e-06/1.088, allocations: 3.984 kB / 1.016 GB, free: 3.785 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/1.088, allocations: 0 / 1.016 GB, free: 3.785 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001256/1.088, allocations: 148.4 kB / 1.017 GB, free: 3.633 MB / 0.6355 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002117/1.088, allocations: 0.5113 MB / 1.017 GB, free: 3.109 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 2.842e-05/1.088, allocations: 81.11 kB / 1.017 GB, free: 3.012 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.439e-05/1.088, allocations: 4 kB / 1.017 GB, free: 3.008 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.884e-05/1.089, allocations: 11.89 kB / 1.017 GB, free: 2.996 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.6e-05/1.089, allocations: 11.67 kB / 1.017 GB, free: 2.988 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.318e-06/1.089, allocations: 3.938 kB / 1.017 GB, free: 2.984 MB / 0.6355 GB Notification: Performance of sort global known variables: time 2.657e-05/1.089, allocations: 79.28 kB / 1.017 GB, free: 2.906 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0007613/1.089, allocations: 19.69 kB / 1.017 GB, free: 2.891 MB / 0.6355 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,fac.u) * Number of discrete 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 (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.0001586/1.09, allocations: 111.2 kB / 1.017 GB, free: 2.773 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 7.87e-05/1.09, allocations: 19.31 kB / 1.017 GB, free: 2.762 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/1.09, allocations: 3.938 kB / 1.017 GB, free: 2.758 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 2.824e-05/1.09, allocations: 8 kB / 1.017 GB, free: 2.75 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001567/1.09, allocations: 11.28 kB / 1.017 GB, free: 2.742 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002037/1.09, allocations: 67.09 kB / 1.018 GB, free: 2.656 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002205/1.09, allocations: 0.6993 MB / 1.018 GB, free: 1.934 MB / 0.6355 GB Notification: Performance of SimCode: time 3.01e-07/1.09, allocations: 0 / 1.018 GB, free: 1.934 MB / 0.6355 GB (rm -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Factorial.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Factorial.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Factorial.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Utilities_Math_Examples_Factorial_fmu --startTime=0 --stopTime=13 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Utilities_Math_Examples_Factorial.fmu > Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1)