Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Functions.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.Functions.Examples.FallingFactorial,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_FallingFactorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Functions_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.7269/0.7269, allocations: 141.8 MB / 149.1 MB, free: 12.97 MB / 138.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001053/0.001053, allocations: 184 kB / 181.9 MB, free: 9.668 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.319/1.319, allocations: 221.4 MB / 436 MB, free: 2.105 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.001026/0.001026, allocations: 101.7 kB / 0.507 GB, free: 10.89 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001734/0.001734, allocations: 281.9 kB / 0.5884 GB, free: 7.715 MB / 474.9 MB Notification: Performance of FrontEnd - loaded program: time 0.3555/0.3573, allocations: 89.65 MB / 0.676 GB, free: 168.4 MB / 0.5419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1403/0.4976, allocations: 82.79 MB / 0.7568 GB, free: 118.9 MB / 0.5419 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1067/0.6044, allocations: 107.2 MB / 0.8615 GB, free: 11.59 MB / 0.5419 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002198/0.6047, allocations: 78.97 kB / 0.8616 GB, free: 11.52 MB / 0.5419 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.001891/0.6066, allocations: 0.8377 MB / 0.8624 GB, free: 10.64 MB / 0.5419 GB Notification: Performance of prepare preOptimizeDAE: time 4.394e-05/0.6066, allocations: 12.94 kB / 0.8624 GB, free: 10.62 MB / 0.5419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.24e-05/0.6067, allocations: 11.89 kB / 0.8624 GB, free: 10.61 MB / 0.5419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.616e-05/0.6067, allocations: 163 kB / 0.8626 GB, free: 10.41 MB / 0.5419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.247e-05/0.6067, allocations: 4 kB / 0.8626 GB, free: 10.41 MB / 0.5419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.106e-05/0.6068, allocations: 7.938 kB / 0.8626 GB, free: 10.4 MB / 0.5419 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001587/0.6069, allocations: 99.88 kB / 0.8627 GB, free: 10.3 MB / 0.5419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001115/0.607, allocations: 53.67 kB / 0.8627 GB, free: 10.25 MB / 0.5419 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.603e-06/0.6071, allocations: 0 / 0.8627 GB, free: 10.25 MB / 0.5419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.098e-05/0.6071, allocations: 7.906 kB / 0.8627 GB, free: 10.24 MB / 0.5419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.909e-06/0.6071, allocations: 0 / 0.8627 GB, free: 10.24 MB / 0.5419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001207/0.6072, allocations: 146.2 kB / 0.8629 GB, free: 10.06 MB / 0.5419 GB Notification: Performance of preOpt comSubExp (simulation): time 8.691e-05/0.6073, allocations: 78.48 kB / 0.8629 GB, free: 9.973 MB / 0.5419 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.523e-05/0.6074, allocations: 20.86 kB / 0.863 GB, free: 9.949 MB / 0.5419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002159/0.6076, allocations: 405.5 kB / 0.8633 GB, free: 9.461 MB / 0.5419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.789e-05/0.6076, allocations: 42.45 kB / 0.8634 GB, free: 9.41 MB / 0.5419 GB Notification: Performance of pre-optimization done (n=11): time 1.142e-06/0.6076, allocations: 0 / 0.8634 GB, free: 9.41 MB / 0.5419 GB Notification: Performance of matching and sorting (n=11): time 0.0003042/0.6079, allocations: 89.92 kB / 0.8635 GB, free: 9.316 MB / 0.5419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.493e-05/0.6079, allocations: 55.34 kB / 0.8635 GB, free: 9.25 MB / 0.5419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.083e-05/0.608, allocations: 96.89 kB / 0.8636 GB, free: 9.148 MB / 0.5419 GB Notification: Performance of collectPreVariables (initialization): time 8.977e-06/0.608, allocations: 29.7 kB / 0.8636 GB, free: 9.113 MB / 0.5419 GB Notification: Performance of collectInitialEqns (initialization): time 1.072e-05/0.608, allocations: 80.33 kB / 0.8637 GB, free: 9.027 MB / 0.5419 GB Notification: Performance of collectInitialBindings (initialization): time 2.115e-05/0.608, allocations: 15.81 kB / 0.8637 GB, free: 9.012 MB / 0.5419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.107e-06/0.608, allocations: 0 / 0.8637 GB, free: 9.012 MB / 0.5419 GB Notification: Performance of setup shared object (initialization): time 3.832e-05/0.6081, allocations: 314.8 kB / 0.864 GB, free: 8.695 MB / 0.5419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.637e-05/0.6081, allocations: 19.98 kB / 0.8641 GB, free: 8.676 MB / 0.5419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.416e-05/0.6081, allocations: 19.94 kB / 0.8641 GB, free: 8.656 MB / 0.5419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001606/0.6083, allocations: 35.81 kB / 0.8641 GB, free: 8.621 MB / 0.5419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.332e-06/0.6083, allocations: 0 / 0.8641 GB, free: 8.621 MB / 0.5419 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002212/0.6085, allocations: 97.66 kB / 0.8642 GB, free: 8.52 MB / 0.5419 GB Notification: Performance of prepare postOptimizeDAE: time 9.428e-06/0.6086, allocations: 4 kB / 0.8642 GB, free: 8.516 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.848e-06/0.6086, allocations: 0 / 0.8642 GB, free: 8.516 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.298e-06/0.6086, allocations: 0 / 0.8642 GB, free: 8.516 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.098e-05/0.6087, allocations: 19.98 kB / 0.8642 GB, free: 8.496 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.562e-06/0.6087, allocations: 0 / 0.8642 GB, free: 8.496 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.997e-05/0.6087, allocations: 7.844 kB / 0.8642 GB, free: 8.488 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.606e-06/0.6087, allocations: 4 kB / 0.8642 GB, free: 8.484 MB / 0.5419 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 11 (falFac[1],falFac[2],falFac[3],falFac[4],falFac[5],falFac[6],falFac[7],falFac[8],falFac[9],falFac[10],n) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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.622e-05/0.6088, allocations: 112.9 kB / 0.8643 GB, free: 8.367 MB / 0.5419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.087e-05/0.6088, allocations: 7.906 kB / 0.8643 GB, free: 8.359 MB / 0.5419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003032/0.6091, allocations: 121.7 kB / 0.8645 GB, free: 8.23 MB / 0.5419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.853e-06/0.6091, allocations: 0 / 0.8645 GB, free: 8.23 MB / 0.5419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/0.6091, allocations: 3.906 kB / 0.8645 GB, free: 8.227 MB / 0.5419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.967e-06/0.6091, allocations: 0 / 0.8645 GB, free: 8.227 MB / 0.5419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.139e-05/0.6092, allocations: 146.2 kB / 0.8646 GB, free: 8.047 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.42e-07/0.6092, allocations: 0 / 0.8646 GB, free: 8.047 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.64e-05/0.6093, allocations: 31.86 kB / 0.8646 GB, free: 8.016 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.285e-06/0.6093, allocations: 3.906 kB / 0.8646 GB, free: 8.012 MB / 0.5419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.647e-06/0.6093, allocations: 4 kB / 0.8646 GB, free: 8.008 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.6093, allocations: 0 / 0.8646 GB, free: 8.008 MB / 0.5419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.554e-06/0.6093, allocations: 0 / 0.8646 GB, free: 8.008 MB / 0.5419 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002256/0.6096, allocations: 117.4 kB / 0.8648 GB, free: 7.875 MB / 0.5419 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.00027/0.6098, allocations: 0.4945 MB / 0.8652 GB, free: 7.359 MB / 0.5419 GB Notification: Performance of postOpt removeConstants (simulation): time 1.669e-05/0.6099, allocations: 81.09 kB / 0.8653 GB, free: 7.262 MB / 0.5419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.503e-05/0.6099, allocations: 4 kB / 0.8653 GB, free: 7.258 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.573e-05/0.6099, allocations: 0 / 0.8653 GB, free: 7.258 MB / 0.5419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.497e-05/0.6099, allocations: 11.92 kB / 0.8653 GB, free: 7.246 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.781e-06/0.6099, allocations: 3.906 kB / 0.8653 GB, free: 7.242 MB / 0.5419 GB Notification: Performance of sort global known variables: time 1.267e-05/0.61, allocations: 75.28 kB / 0.8654 GB, free: 7.168 MB / 0.5419 GB Notification: Performance of remove unused functions: time 0.0007636/0.6107, allocations: 20 kB / 0.8654 GB, free: 7.148 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: 11 (falFac[1],falFac[2],falFac[3],falFac[4],falFac[5],falFac[6],falFac[7],falFac[8],falFac[9],falFac[10],n) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 11 * 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.0001611/0.6109, allocations: 119.2 kB / 0.8655 GB, free: 7.023 MB / 0.5419 GB Notification: Performance of simCode: created initialization part: time 0.0001181/0.611, allocations: 52.03 kB / 0.8656 GB, free: 6.973 MB / 0.5419 GB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.611, allocations: 7.938 kB / 0.8656 GB, free: 6.965 MB / 0.5419 GB Notification: Performance of simCode: created simulation system equations: time 3.698e-05/0.6111, allocations: 31.98 kB / 0.8656 GB, free: 6.934 MB / 0.5419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.687e-05/0.6112, allocations: 4 kB / 0.8656 GB, free: 6.93 MB / 0.5419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002094/0.6114, allocations: 87.84 kB / 0.8657 GB, free: 6.82 MB / 0.5419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001503/0.6116, allocations: 0.7114 MB / 0.8664 GB, free: 6.082 MB / 0.5419 GB Notification: Performance of SimCode: time 2.3e-07/0.6116, allocations: 0 / 0.8664 GB, free: 6.082 MB / 0.5419 GB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_FallingFactorial_fmu --startTime=0 --stopTime=13.9 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_FallingFactorial.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial.pipe 2>&1)