Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Examples.FallingFactorial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) 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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) 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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.FallingFactorial,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_FallingFactorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.FallingFactorial,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_FallingFactorial",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/BuildingSystems 2.0.0-master/package.mo): time 0.7038/0.7038, allocations: 141.8 MB / 149.1 MB, free: 3.645 MB / 122.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001009/0.001009, allocations: 189.9 kB / 181.9 MB, free: 15.43 MB / 154.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.338/1.338, allocations: 221.4 MB / 436 MB, free: 8.598 MB / 330.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009536/0.0009537, allocations: 103.3 kB / 0.507 GB, free: 24.28 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00176/0.00176, allocations: 273.3 kB / 0.5884 GB, free: 11.62 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 0.1795/0.1813, allocations: 89.65 MB / 0.676 GB, free: 1.891 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3499/0.5312, allocations: 82.76 MB / 0.7568 GB, free: 112.1 MB / 0.5263 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1143/0.6455, allocations: 108.2 MB / 0.8625 GB, free: 3.766 MB / 0.5263 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002251/0.6457, allocations: 72.69 kB / 0.8626 GB, free: 3.699 MB / 0.5263 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.003139/0.6489, allocations: 1.107 MB / 0.8637 GB, free: 2.562 MB / 0.5263 GB Notification: Performance of prepare preOptimizeDAE: time 3.823e-05/0.6489, allocations: 12.62 kB / 0.8637 GB, free: 2.551 MB / 0.5263 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.317e-05/0.649, allocations: 3.906 kB / 0.8637 GB, free: 2.547 MB / 0.5263 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.148e-05/0.6491, allocations: 163.6 kB / 0.8638 GB, free: 2.348 MB / 0.5263 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.272e-05/0.6491, allocations: 1.125 kB / 0.8638 GB, free: 2.348 MB / 0.5263 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.398e-05/0.6491, allocations: 8.5 kB / 0.8638 GB, free: 2.34 MB / 0.5263 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.42e-05/0.6492, allocations: 16.72 kB / 0.8639 GB, free: 2.324 MB / 0.5263 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.021e-05/0.6493, allocations: 53.61 kB / 0.8639 GB, free: 2.266 MB / 0.5263 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.041e-05/0.6493, allocations: 0.6562 kB / 0.8639 GB, free: 2.266 MB / 0.5263 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.033e-05/0.6493, allocations: 5.562 kB / 0.8639 GB, free: 2.262 MB / 0.5263 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.398e-06/0.6493, allocations: 0 / 0.8639 GB, free: 2.262 MB / 0.5263 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003018/0.6496, allocations: 246.5 kB / 0.8642 GB, free: 1.984 MB / 0.5263 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002268/0.6499, allocations: 47.34 kB / 0.8642 GB, free: 1.93 MB / 0.5263 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.144e-05/0.6499, allocations: 17.36 kB / 0.8642 GB, free: 1.91 MB / 0.5263 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001697/0.6501, allocations: 402.8 kB / 0.8646 GB, free: 1.426 MB / 0.5263 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.242e-05/0.6501, allocations: 31.66 kB / 0.8646 GB, free: 1.387 MB / 0.5263 GB Notification: Performance of pre-optimization done (n=3): time 1.052e-06/0.6501, allocations: 1.031 kB / 0.8646 GB, free: 1.387 MB / 0.5263 GB Notification: Performance of matching and sorting (n=3): time 0.0001747/0.6503, allocations: 49.59 kB / 0.8647 GB, free: 1.332 MB / 0.5263 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.111e-05/0.6503, allocations: 52.12 kB / 0.8647 GB, free: 1.27 MB / 0.5263 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.311e-05/0.6504, allocations: 97.53 kB / 0.8648 GB, free: 1.168 MB / 0.5263 GB Notification: Performance of collectPreVariables (initialization): time 8.245e-06/0.6504, allocations: 26.23 kB / 0.8648 GB, free: 1.137 MB / 0.5263 GB Notification: Performance of collectInitialEqns (initialization): time 2.092e-05/0.6504, allocations: 88.58 kB / 0.8649 GB, free: 1.047 MB / 0.5263 GB Notification: Performance of collectInitialBindings (initialization): time 1.29e-05/0.6505, allocations: 4.75 kB / 0.8649 GB, free: 1.043 MB / 0.5263 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.409e-06/0.6505, allocations: 0 / 0.8649 GB, free: 1.043 MB / 0.5263 GB Notification: Performance of setup shared object (initialization): time 4.052e-05/0.6505, allocations: 319.5 kB / 0.8652 GB, free: 0.7227 MB / 0.5263 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.825e-05/0.6505, allocations: 9.469 kB / 0.8652 GB, free: 0.7148 MB / 0.5263 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.479e-05/0.6506, allocations: 8 kB / 0.8653 GB, free: 0.707 MB / 0.5263 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.669e-05/0.6506, allocations: 8.875 kB / 0.8653 GB, free: 0.6992 MB / 0.5263 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.794e-06/0.6506, allocations: 0 / 0.8653 GB, free: 0.6992 MB / 0.5263 GB Notification: Performance of matching and sorting (n=3) (initialization): time 8.69e-05/0.6507, allocations: 54.38 kB / 0.8653 GB, free: 0.6406 MB / 0.5263 GB Notification: Performance of prepare postOptimizeDAE: time 9.318e-06/0.6507, allocations: 8 kB / 0.8653 GB, free: 0.6328 MB / 0.5263 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.357e-06/0.6507, allocations: 0.5625 kB / 0.8653 GB, free: 0.6328 MB / 0.5263 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.171e-05/0.6507, allocations: 4.094 kB / 0.8653 GB, free: 0.6289 MB / 0.5263 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.948e-05/0.6508, allocations: 17.89 kB / 0.8653 GB, free: 0.6133 MB / 0.5263 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.657e-06/0.6509, allocations: 1.312 kB / 0.8653 GB, free: 0.6133 MB / 0.5263 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.549e-05/0.6509, allocations: 12.55 kB / 0.8654 GB, free: 0.6016 MB / 0.5263 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.512e-06/0.6509, allocations: 4.656 kB / 0.8654 GB, free: 0.5977 MB / 0.5263 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 (falFac.y,falFac.k) * 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 4.959e-05/0.651, allocations: 107.4 kB / 0.8655 GB, free: 500 kB / 0.5263 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.648e-05/0.651, allocations: 4.594 kB / 0.8655 GB, free: 496 kB / 0.5263 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001338/0.6512, allocations: 65.89 kB / 0.8655 GB, free: 424 kB / 0.5263 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.363e-06/0.6512, allocations: 0.7188 kB / 0.8655 GB, free: 424 kB / 0.5263 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.6512, allocations: 0 / 0.8655 GB, free: 424 kB / 0.5263 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.288e-06/0.6512, allocations: 0.6875 kB / 0.8655 GB, free: 424 kB / 0.5263 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000107/0.6513, allocations: 146.3 kB / 0.8657 GB, free: 240 kB / 0.5263 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.22e-07/0.6513, allocations: 0.75 kB / 0.8657 GB, free: 240 kB / 0.5263 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.339e-05/0.6514, allocations: 21.7 kB / 0.8657 GB, free: 220 kB / 0.5263 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.823e-06/0.6514, allocations: 0 / 0.8657 GB, free: 220 kB / 0.5263 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.186e-06/0.6514, allocations: 0 / 0.8657 GB, free: 220 kB / 0.5263 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.263e-06/0.6515, allocations: 0.6875 kB / 0.8657 GB, free: 220 kB / 0.5263 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.6515, allocations: 0 / 0.8657 GB, free: 220 kB / 0.5263 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001071/0.6516, allocations: 148.7 kB / 0.8658 GB, free: 56 kB / 0.5263 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003015/0.6519, allocations: 0.5171 MB / 0.8663 GB, free: 15.52 MB / 0.5419 GB Notification: Performance of postOpt removeConstants (simulation): time 3.688e-05/0.6519, allocations: 85.02 kB / 0.8664 GB, free: 15.41 MB / 0.5419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.64e-05/0.652, allocations: 0 / 0.8664 GB, free: 15.41 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000104/0.6521, allocations: 11.98 kB / 0.8664 GB, free: 15.4 MB / 0.5419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.754e-05/0.6521, allocations: 8 kB / 0.8664 GB, free: 15.39 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.783e-06/0.6521, allocations: 3.984 kB / 0.8664 GB, free: 15.39 MB / 0.5419 GB Notification: Performance of sort global known variables: time 3.448e-05/0.6522, allocations: 81.53 kB / 0.8665 GB, free: 15.31 MB / 0.5419 GB Notification: Performance of remove unused functions: time 0.0008122/0.653, allocations: 27.78 kB / 0.8665 GB, free: 15.29 MB / 0.5419 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 (falFac.y,falFac.k) * 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.0001607/0.6532, allocations: 107.2 kB / 0.8667 GB, free: 15.17 MB / 0.5419 GB Notification: Performance of simCode: created initialization part: time 8.706e-05/0.6533, allocations: 19.98 kB / 0.8667 GB, free: 15.15 MB / 0.5419 GB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.6533, allocations: 3.938 kB / 0.8667 GB, free: 15.15 MB / 0.5419 GB Notification: Performance of simCode: created simulation system equations: time 3.126e-05/0.6533, allocations: 12 kB / 0.8667 GB, free: 15.14 MB / 0.5419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001695/0.6535, allocations: 8.469 kB / 0.8667 GB, free: 15.13 MB / 0.5419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002518/0.6537, allocations: 67.91 kB / 0.8668 GB, free: 15.04 MB / 0.5419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002847/0.654, allocations: 0.6993 MB / 0.8674 GB, free: 14.32 MB / 0.5419 GB Notification: Performance of SimCode: time 2.61e-07/0.654, allocations: 0 / 0.8674 GB, free: 14.32 MB / 0.5419 GB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.FallingFactorial.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.FallingFactorial.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.FallingFactorial.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.FallingFactorial.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Examples_FallingFactorial_fmu --startTime=0 --stopTime=11 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Math_Examples_FallingFactorial.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.FallingFactorial.pipe 2>&1)