Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.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.Factorial,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="BuildingSystems_BuildingSystems_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/BuildingSystems 2.0.0-master/package.mo): time 0.727/0.727, allocations: 141.8 MB / 149.1 MB, free: 1.555 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.001078/0.001078, allocations: 181.2 kB / 181.9 MB, free: 0.9102 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.229/1.229, allocations: 221.3 MB / 436 MB, free: 5.516 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.0008674/0.0008675, allocations: 96.67 kB / 0.507 GB, free: 2.191 MB / 410.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001686/0.001686, allocations: 266.7 kB / 0.5884 GB, free: 47.24 MB / 410.9 MB Notification: Performance of FrontEnd - loaded program: time 0.3255/0.3273, allocations: 89.64 MB / 0.676 GB, free: 59.71 MB / 442.9 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1385/0.4658, allocations: 82.78 MB / 0.7568 GB, free: 0.6211 MB / 442.9 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1339/0.5997, allocations: 107.1 MB / 0.8614 GB, free: 5.328 MB / 0.5419 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002165/0.5999, allocations: 77.98 kB / 0.8615 GB, free: 5.254 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.001256/0.6012, allocations: 0.5219 MB / 0.862 GB, free: 4.688 MB / 0.5419 GB Notification: Performance of prepare preOptimizeDAE: time 3.61e-05/0.6012, allocations: 8 kB / 0.862 GB, free: 4.68 MB / 0.5419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.409e-05/0.6013, allocations: 4 kB / 0.862 GB, free: 4.676 MB / 0.5419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.438e-05/0.6014, allocations: 163.1 kB / 0.8622 GB, free: 4.477 MB / 0.5419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.346e-05/0.6014, allocations: 7.906 kB / 0.8622 GB, free: 4.469 MB / 0.5419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.011e-06/0.6014, allocations: 0 / 0.8622 GB, free: 4.469 MB / 0.5419 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 5.189e-05/0.6014, allocations: 3.938 kB / 0.8622 GB, free: 4.465 MB / 0.5419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 5.115e-05/0.6015, allocations: 29.7 kB / 0.8622 GB, free: 4.43 MB / 0.5419 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.382e-06/0.6015, allocations: 0 / 0.8622 GB, free: 4.43 MB / 0.5419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.115e-06/0.6015, allocations: 0 / 0.8622 GB, free: 4.43 MB / 0.5419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.388e-06/0.6015, allocations: 0 / 0.8622 GB, free: 4.43 MB / 0.5419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001111/0.6017, allocations: 138.2 kB / 0.8624 GB, free: 4.258 MB / 0.5419 GB Notification: Performance of preOpt comSubExp (simulation): time 3.725e-05/0.6017, allocations: 18.61 kB / 0.8624 GB, free: 4.23 MB / 0.5419 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.687e-05/0.6017, allocations: 8.922 kB / 0.8624 GB, free: 4.219 MB / 0.5419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001216/0.6019, allocations: 77.11 kB / 0.8625 GB, free: 4.125 MB / 0.5419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.277e-05/0.6019, allocations: 42.45 kB / 0.8625 GB, free: 4.074 MB / 0.5419 GB Notification: Performance of pre-optimization done (n=2): time 1.012e-06/0.6019, allocations: 3.938 kB / 0.8625 GB, free: 4.07 MB / 0.5419 GB Notification: Performance of matching and sorting (n=2): time 0.0001311/0.602, allocations: 37.64 kB / 0.8626 GB, free: 4.027 MB / 0.5419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.455e-05/0.6021, allocations: 55.44 kB / 0.8626 GB, free: 3.961 MB / 0.5419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.869e-05/0.6021, allocations: 85 kB / 0.8627 GB, free: 3.871 MB / 0.5419 GB Notification: Performance of collectPreVariables (initialization): time 1.078e-05/0.6021, allocations: 25.7 kB / 0.8627 GB, free: 3.84 MB / 0.5419 GB Notification: Performance of collectInitialEqns (initialization): time 2.379e-05/0.6021, allocations: 84.14 kB / 0.8628 GB, free: 3.754 MB / 0.5419 GB Notification: Performance of collectInitialBindings (initialization): time 1.576e-05/0.6022, allocations: 3.938 kB / 0.8628 GB, free: 3.75 MB / 0.5419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.104e-06/0.6022, allocations: 0 / 0.8628 GB, free: 3.75 MB / 0.5419 GB Notification: Performance of setup shared object (initialization): time 8.747e-05/0.6023, allocations: 318.7 kB / 0.8631 GB, free: 3.43 MB / 0.5419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.01e-05/0.6023, allocations: 4 kB / 0.8631 GB, free: 3.426 MB / 0.5419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.512e-06/0.6023, allocations: 8 kB / 0.8631 GB, free: 3.418 MB / 0.5419 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.933e-05/0.6023, allocations: 0 / 0.8631 GB, free: 3.418 MB / 0.5419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.242e-06/0.6023, allocations: 4 kB / 0.8631 GB, free: 3.414 MB / 0.5419 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.691e-05/0.6024, allocations: 29.7 kB / 0.8631 GB, free: 3.379 MB / 0.5419 GB Notification: Performance of prepare postOptimizeDAE: time 9.959e-06/0.6024, allocations: 8 kB / 0.8631 GB, free: 3.371 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.959e-06/0.6024, allocations: 0 / 0.8631 GB, free: 3.371 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.164e-05/0.6024, allocations: 7.922 kB / 0.8632 GB, free: 3.363 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.73e-05/0.6025, allocations: 4 kB / 0.8632 GB, free: 3.359 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.486e-06/0.6025, allocations: 0 / 0.8632 GB, free: 3.359 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.519e-05/0.6025, allocations: 4.094 kB / 0.8632 GB, free: 3.355 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.226e-06/0.6025, allocations: 0 / 0.8632 GB, free: 3.355 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: 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 5.738e-05/0.6026, allocations: 104.9 kB / 0.8633 GB, free: 3.246 MB / 0.5419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.415e-06/0.6026, allocations: 4 kB / 0.8633 GB, free: 3.242 MB / 0.5419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.591e-05/0.6027, allocations: 40.84 kB / 0.8633 GB, free: 3.195 MB / 0.5419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.166e-06/0.6027, allocations: 4 kB / 0.8633 GB, free: 3.191 MB / 0.5419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.627e-06/0.6027, allocations: 0 / 0.8633 GB, free: 3.191 MB / 0.5419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.274e-06/0.6027, allocations: 0 / 0.8633 GB, free: 3.191 MB / 0.5419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.388e-05/0.6028, allocations: 130.2 kB / 0.8634 GB, free: 3.027 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.794e-06/0.6028, allocations: 11.95 kB / 0.8634 GB, free: 3.016 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.318e-05/0.6029, allocations: 4 kB / 0.8634 GB, free: 3.012 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.493e-06/0.6029, allocations: 0 / 0.8634 GB, free: 3.012 MB / 0.5419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.725e-06/0.6029, allocations: 0 / 0.8634 GB, free: 3.012 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.042e-06/0.6029, allocations: 3.938 kB / 0.8635 GB, free: 3.008 MB / 0.5419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.6029, allocations: 0 / 0.8635 GB, free: 3.008 MB / 0.5419 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 8.062e-05/0.603, allocations: 69.03 kB / 0.8635 GB, free: 2.922 MB / 0.5419 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0001708/0.6031, allocations: 441.6 kB / 0.8639 GB, free: 2.469 MB / 0.5419 GB Notification: Performance of postOpt removeConstants (simulation): time 2.762e-05/0.6032, allocations: 81.09 kB / 0.864 GB, free: 2.371 MB / 0.5419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.698e-05/0.6032, allocations: 3.906 kB / 0.864 GB, free: 2.367 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.116e-05/0.6032, allocations: 0 / 0.864 GB, free: 2.367 MB / 0.5419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.484e-05/0.6033, allocations: 8 kB / 0.864 GB, free: 2.359 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.224e-06/0.6033, allocations: 0 / 0.864 GB, free: 2.359 MB / 0.5419 GB Notification: Performance of sort global known variables: time 2.212e-05/0.6033, allocations: 79.25 kB / 0.8641 GB, free: 2.281 MB / 0.5419 GB Notification: Performance of remove unused functions: time 0.0007524/0.604, allocations: 11.98 kB / 0.8641 GB, free: 2.27 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 (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.0001549/0.6042, allocations: 104.7 kB / 0.8642 GB, free: 2.156 MB / 0.5419 GB Notification: Performance of simCode: created initialization part: time 6.603e-05/0.6043, allocations: 8 kB / 0.8642 GB, free: 2.148 MB / 0.5419 GB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.6043, allocations: 0 / 0.8642 GB, free: 2.148 MB / 0.5419 GB Notification: Performance of simCode: created simulation system equations: time 1.238e-05/0.6043, allocations: 4 kB / 0.8642 GB, free: 2.145 MB / 0.5419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.182e-05/0.6044, allocations: 7.938 kB / 0.8642 GB, free: 2.137 MB / 0.5419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001596/0.6046, allocations: 52.12 kB / 0.8643 GB, free: 2.062 MB / 0.5419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002592/0.6048, allocations: 0.6841 MB / 0.865 GB, free: 1.352 MB / 0.5419 GB Notification: Performance of SimCode: time 2.5e-07/0.6048, allocations: 0 / 0.865 GB, free: 1.352 MB / 0.5419 GB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_Factorial_fmu --startTime=0 --stopTime=12.9 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_Factorial.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1)