Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial.conf.json 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/IBPSA 4.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/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) Running command: "" <> buildModelFMU(IBPSA.Utilities.Math.Examples.Factorial,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Utilities.Math.Examples.Factorial,fileNamePrefix="IBPSA_latest_IBPSA_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/Complex 4.0.0+maint.om/package.mo): time 0.001008/0.001008, allocations: 186.5 kB / 7.8 MB, free: 2.504 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.4862/0.4862, allocations: 90.85 MB / 99.07 MB, free: 14.92 MB / 90.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.391/1.391, allocations: 221.4 MB / 342.8 MB, free: 5.121 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009655/0.0009656, allocations: 100.4 kB / 415.5 MB, free: 6.398 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1556/0.1566, allocations: 78.45 MB / 493.9 MB, free: 7.949 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3175/0.4742, allocations: 72.3 MB / 0.553 GB, free: 73.2 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1128/0.587, allocations: 101 MB / 0.6516 GB, free: 8.969 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002418/0.5873, allocations: 67.97 kB / 0.6517 GB, free: 8.902 MB / 474.7 MB 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.003126/0.5904, allocations: 0.977 MB / 0.6526 GB, free: 7.902 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.108e-05/0.5905, allocations: 11.94 kB / 0.6526 GB, free: 7.891 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.27e-05/0.5905, allocations: 1.844 kB / 0.6526 GB, free: 7.891 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001246/0.5907, allocations: 171 kB / 0.6528 GB, free: 7.684 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.104e-05/0.5907, allocations: 0 / 0.6528 GB, free: 7.684 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.238e-05/0.5907, allocations: 0 / 0.6528 GB, free: 7.684 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.416e-05/0.5908, allocations: 20 kB / 0.6528 GB, free: 7.664 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.267e-05/0.5909, allocations: 42.53 kB / 0.6529 GB, free: 7.617 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.518e-06/0.5909, allocations: 3.984 kB / 0.6529 GB, free: 7.613 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.889e-06/0.5909, allocations: 0.7812 kB / 0.6529 GB, free: 7.613 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.306e-06/0.5909, allocations: 0 / 0.6529 GB, free: 7.613 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004384/0.5914, allocations: 273.3 kB / 0.6531 GB, free: 7.312 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002345/0.5916, allocations: 43.53 kB / 0.6532 GB, free: 7.262 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.107e-05/0.5917, allocations: 13.67 kB / 0.6532 GB, free: 7.246 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001192/0.5918, allocations: 83.55 kB / 0.6533 GB, free: 7.148 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.472e-05/0.5918, allocations: 37.39 kB / 0.6533 GB, free: 7.105 MB / 474.7 MB Notification: Performance of pre-optimization done (n=3): time 1.162e-06/0.5918, allocations: 1.438 kB / 0.6533 GB, free: 7.105 MB / 474.7 MB Notification: Performance of matching and sorting (n=3): time 0.0001974/0.592, allocations: 53.55 kB / 0.6534 GB, free: 7.047 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.099e-05/0.5921, allocations: 51.41 kB / 0.6534 GB, free: 6.984 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.233e-05/0.5921, allocations: 93.48 kB / 0.6535 GB, free: 6.887 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 1.503e-05/0.5922, allocations: 30.27 kB / 0.6535 GB, free: 6.852 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.995e-05/0.5922, allocations: 80.92 kB / 0.6536 GB, free: 6.77 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.644e-05/0.5922, allocations: 7.906 kB / 0.6536 GB, free: 6.762 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.308e-06/0.5922, allocations: 1.469 kB / 0.6536 GB, free: 6.762 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001007/0.5923, allocations: 310.8 kB / 0.6539 GB, free: 6.449 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.363e-05/0.5924, allocations: 11.98 kB / 0.6539 GB, free: 6.438 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.84e-05/0.5924, allocations: 8.969 kB / 0.6539 GB, free: 6.43 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.924e-05/0.5924, allocations: 4 kB / 0.6539 GB, free: 6.426 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.273e-06/0.5925, allocations: 0 / 0.6539 GB, free: 6.426 MB / 474.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001039/0.5926, allocations: 54.31 kB / 0.654 GB, free: 6.367 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.096e-05/0.5926, allocations: 8 kB / 0.654 GB, free: 6.359 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.48e-06/0.5926, allocations: 0.5312 kB / 0.654 GB, free: 6.359 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.628e-06/0.5926, allocations: 0.75 kB / 0.654 GB, free: 6.359 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001048/0.5927, allocations: 17.27 kB / 0.654 GB, free: 6.344 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.859e-06/0.5927, allocations: 4.875 kB / 0.654 GB, free: 6.34 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.07e-05/0.5928, allocations: 10.33 kB / 0.654 GB, free: 6.332 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.967e-06/0.5928, allocations: 4 kB / 0.654 GB, free: 6.328 MB / 474.7 MB 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 6.253e-05/0.5929, allocations: 109.4 kB / 0.6541 GB, free: 6.215 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.648e-05/0.5929, allocations: 0.6562 kB / 0.6541 GB, free: 6.215 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001767/0.5931, allocations: 61.95 kB / 0.6542 GB, free: 6.145 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-06/0.5931, allocations: 4.844 kB / 0.6542 GB, free: 6.145 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.5931, allocations: 0 / 0.6542 GB, free: 6.145 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.66e-06/0.5931, allocations: 5.219 kB / 0.6542 GB, free: 6.141 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001284/0.5933, allocations: 138.2 kB / 0.6543 GB, free: 5.969 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.5933, allocations: 1.141 kB / 0.6543 GB, free: 5.969 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.273e-05/0.5934, allocations: 13.38 kB / 0.6543 GB, free: 5.957 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.047e-06/0.5934, allocations: 3.984 kB / 0.6543 GB, free: 5.953 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.384e-06/0.5934, allocations: 0.5 kB / 0.6543 GB, free: 5.953 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.012e-06/0.5934, allocations: 0.5 kB / 0.6543 GB, free: 5.953 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.955e-06/0.5934, allocations: 7.938 kB / 0.6544 GB, free: 5.945 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001392/0.5936, allocations: 149.8 kB / 0.6545 GB, free: 5.785 MB / 474.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002338/0.5938, allocations: 0.5155 MB / 0.655 GB, free: 5.254 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.761e-05/0.5938, allocations: 77.11 kB / 0.6551 GB, free: 5.16 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.7e-05/0.5939, allocations: 3.984 kB / 0.6551 GB, free: 5.156 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001245/0.594, allocations: 9.844 kB / 0.6551 GB, free: 5.148 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.74e-05/0.5941, allocations: 11.89 kB / 0.6551 GB, free: 5.137 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.32e-06/0.5941, allocations: 0 / 0.6551 GB, free: 5.137 MB / 474.7 MB Notification: Performance of sort global known variables: time 3.347e-05/0.5941, allocations: 83.84 kB / 0.6552 GB, free: 5.055 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.0007952/0.5949, allocations: 11.94 kB / 0.6552 GB, free: 5.043 MB / 474.7 MB 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.00016/0.5951, allocations: 112.3 kB / 0.6553 GB, free: 4.926 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 8.117e-05/0.5952, allocations: 24 kB / 0.6553 GB, free: 4.902 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 3.868e-06/0.5952, allocations: 0 / 0.6553 GB, free: 4.902 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 3.955e-05/0.5952, allocations: 15.92 kB / 0.6553 GB, free: 4.887 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001629/0.5954, allocations: 8 kB / 0.6553 GB, free: 4.879 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002286/0.5956, allocations: 67.72 kB / 0.6554 GB, free: 4.789 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002659/0.5959, allocations: 0.6915 MB / 0.6561 GB, free: 4.074 MB / 474.7 MB Notification: Performance of SimCode: time 2.5e-07/0.5959, allocations: 0 / 0.6561 GB, free: 4.074 MB / 474.7 MB (rm -f IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial.pipe ; mkfifo IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial.pipe >> ../files/IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Utilities_Math_Examples_Factorial_fmu --startTime=0 --stopTime=13 --timeout=50 --tolerance=1e-06 IBPSA_latest_IBPSA_Utilities_Math_Examples_Factorial.fmu > IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial.pipe 2>&1)