Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IBPSA_latest_IBPSA.Utilities.Math.Functions.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.Functions.Examples.Factorial,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_Math_Functions_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="IBPSA_latest_IBPSA_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/Complex 4.0.0+maint.om/package.mo): time 0.001376/0.001376, allocations: 190.5 kB / 7.805 MB, free: 2.488 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.488/0.488, allocations: 90.85 MB / 99.08 MB, free: 14.91 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.394/1.394, allocations: 221.4 MB / 342.8 MB, free: 5.207 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.001512/0.001512, allocations: 92.7 kB / 415.5 MB, free: 6.434 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2652/0.2668, allocations: 78.46 MB / 494 MB, free: 7.984 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4953/0.7621, allocations: 72.31 MB / 0.553 GB, free: 73.42 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1176/0.8798, allocations: 100 MB / 0.6507 GB, free: 10.07 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002356/0.8801, allocations: 72.58 kB / 0.6507 GB, free: 10 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.001438/0.8815, allocations: 0.5267 MB / 0.6513 GB, free: 9.441 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.288e-05/0.8816, allocations: 8.688 kB / 0.6513 GB, free: 9.434 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.697e-05/0.8816, allocations: 3.906 kB / 0.6513 GB, free: 9.43 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001001/0.8817, allocations: 168.6 kB / 0.6514 GB, free: 9.227 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.114e-05/0.8817, allocations: 0 / 0.6514 GB, free: 9.227 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.012e-05/0.8817, allocations: 4 kB / 0.6514 GB, free: 9.223 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 5.866e-05/0.8818, allocations: 0 / 0.6514 GB, free: 9.223 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.796e-05/0.8819, allocations: 30.61 kB / 0.6515 GB, free: 9.188 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.593e-06/0.8819, allocations: 0 / 0.6515 GB, free: 9.188 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.147e-06/0.8819, allocations: 0.625 kB / 0.6515 GB, free: 9.188 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.773e-06/0.8819, allocations: 3.984 kB / 0.6515 GB, free: 9.184 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001497/0.8821, allocations: 139.3 kB / 0.6516 GB, free: 9.012 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.297e-05/0.8821, allocations: 20.17 kB / 0.6516 GB, free: 8.984 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.614e-05/0.8822, allocations: 8.797 kB / 0.6516 GB, free: 8.973 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001618/0.8823, allocations: 85.86 kB / 0.6517 GB, free: 8.871 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.486e-05/0.8824, allocations: 32 kB / 0.6517 GB, free: 8.832 MB / 474.7 MB Notification: Performance of pre-optimization done (n=2): time 1.473e-06/0.8824, allocations: 0 / 0.6517 GB, free: 8.832 MB / 474.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001642/0.8826, allocations: 38.34 kB / 0.6518 GB, free: 8.789 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.037e-05/0.8826, allocations: 52.66 kB / 0.6518 GB, free: 8.727 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.507e-05/0.8827, allocations: 92.12 kB / 0.6519 GB, free: 8.633 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 1.642e-05/0.8827, allocations: 25.7 kB / 0.6519 GB, free: 8.602 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.013e-05/0.8827, allocations: 81.52 kB / 0.652 GB, free: 8.52 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.195e-05/0.8827, allocations: 11.91 kB / 0.652 GB, free: 8.508 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.996e-06/0.8828, allocations: 0 / 0.652 GB, free: 8.508 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001251/0.8829, allocations: 312.6 kB / 0.6523 GB, free: 8.195 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.037e-06/0.8829, allocations: 0 / 0.6523 GB, free: 8.195 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.917e-06/0.8829, allocations: 4 kB / 0.6523 GB, free: 8.191 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.13e-05/0.883, allocations: 5.203 kB / 0.6523 GB, free: 8.188 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.447e-06/0.883, allocations: 0 / 0.6523 GB, free: 8.188 MB / 474.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 8.453e-05/0.8831, allocations: 41.64 kB / 0.6524 GB, free: 8.141 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.312e-05/0.8831, allocations: 4.969 kB / 0.6524 GB, free: 8.137 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.53e-06/0.8831, allocations: 4 kB / 0.6524 GB, free: 8.133 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.274e-05/0.8831, allocations: 3.906 kB / 0.6524 GB, free: 8.129 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.793e-05/0.8832, allocations: 4.828 kB / 0.6524 GB, free: 8.125 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.721e-06/0.8832, allocations: 5.25 kB / 0.6524 GB, free: 8.121 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.487e-05/0.8833, allocations: 1.031 kB / 0.6524 GB, free: 8.121 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.071e-06/0.8833, allocations: 1.875 kB / 0.6524 GB, free: 8.121 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,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 6.857e-05/0.8833, allocations: 101.9 kB / 0.6525 GB, free: 8.016 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.765e-06/0.8834, allocations: 0 / 0.6525 GB, free: 8.016 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001195/0.8835, allocations: 50.5 kB / 0.6525 GB, free: 7.961 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.725e-06/0.8835, allocations: 0 / 0.6525 GB, free: 7.961 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-06/0.8835, allocations: 0 / 0.6525 GB, free: 7.961 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.421e-06/0.8835, allocations: 4 kB / 0.6525 GB, free: 7.957 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.074e-05/0.8836, allocations: 126.9 kB / 0.6527 GB, free: 7.797 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.392e-06/0.8836, allocations: 0.7188 kB / 0.6527 GB, free: 7.797 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.856e-05/0.8836, allocations: 7.984 kB / 0.6527 GB, free: 7.789 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.426e-06/0.8837, allocations: 0.625 kB / 0.6527 GB, free: 7.789 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.835e-06/0.8837, allocations: 5.625 kB / 0.6527 GB, free: 7.785 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.8837, allocations: 0.8125 kB / 0.6527 GB, free: 7.785 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.426e-06/0.8837, allocations: 3.906 kB / 0.6527 GB, free: 7.781 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 9.961e-05/0.8838, allocations: 63.22 kB / 0.6527 GB, free: 7.703 MB / 474.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002045/0.884, allocations: 447.2 kB / 0.6532 GB, free: 7.246 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.974e-05/0.8841, allocations: 81.09 kB / 0.6532 GB, free: 7.148 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.187e-05/0.8841, allocations: 3.875 kB / 0.6532 GB, free: 7.148 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.196e-05/0.8841, allocations: 0 / 0.6532 GB, free: 7.148 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.888e-05/0.8841, allocations: 0.9375 kB / 0.6533 GB, free: 7.148 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.136e-06/0.8841, allocations: 4 kB / 0.6533 GB, free: 7.145 MB / 474.7 MB Notification: Performance of sort global known variables: time 4.098e-05/0.8842, allocations: 76.5 kB / 0.6533 GB, free: 7.07 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.0008415/0.885, allocations: 4 kB / 0.6533 GB, free: 7.066 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,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.0001864/0.8852, allocations: 115.8 kB / 0.6534 GB, free: 6.941 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 6.067e-05/0.8853, allocations: 8.625 kB / 0.6534 GB, free: 6.934 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.8853, allocations: 0.875 kB / 0.6535 GB, free: 6.934 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 1.62e-05/0.8853, allocations: 7.938 kB / 0.6535 GB, free: 6.926 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.629e-05/0.8854, allocations: 1.438 kB / 0.6535 GB, free: 6.926 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001783/0.8856, allocations: 51.92 kB / 0.6535 GB, free: 6.852 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002771/0.8859, allocations: 0.6847 MB / 0.6542 GB, free: 6.141 MB / 474.7 MB Notification: Performance of SimCode: time 2.8e-07/0.8859, allocations: 0.75 kB / 0.6542 GB, free: 6.141 MB / 474.7 MB (rm -f IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.Factorial.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Utilities_Math_Functions_Examples_Factorial_fmu --startTime=0 --stopTime=12.9 --timeout=50 --tolerance=1e-06 IBPSA_latest_IBPSA_Utilities_Math_Functions_Examples_Factorial.fmu > IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1)