Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.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) 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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Functions_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="Buildings_latest_Buildings_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/Buildings 10.0.0-master/package.mo): time 1.806/1.806, allocations: 390.4 MB / 397.7 MB, free: 10.68 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009948/0.0009949, allocations: 187.5 kB / 490.8 MB, free: 11.21 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.143/1.143, allocations: 221.4 MB / 0.7863 GB, free: 13.59 MB / 0.5886 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008222/0.0008221, allocations: 86.84 kB / 0.9264 GB, free: 4.574 MB / 0.6667 GB Notification: Performance of FrontEnd - loaded program: time 0.2397/0.2405, allocations: 149.2 MB / 1.072 GB, free: 15.48 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5237/0.7643, allocations: 143 MB / 1.212 GB, free: 155.8 MB / 0.8855 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.139/0.9033, allocations: 148.6 MB / 1.357 GB, free: 43.07 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001915/0.9035, allocations: 72.73 kB / 1.357 GB, free: 43 MB / 0.8855 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.001048/0.9046, allocations: 0.5278 MB / 1.357 GB, free: 42.44 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 3.346e-05/0.9046, allocations: 8 kB / 1.357 GB, free: 42.43 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.298e-05/0.9046, allocations: 0 / 1.357 GB, free: 42.43 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 4.571e-05/0.9047, allocations: 163.6 kB / 1.357 GB, free: 42.23 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.016e-05/0.9047, allocations: 1.125 kB / 1.357 GB, free: 42.23 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.552e-06/0.9047, allocations: 0 / 1.357 GB, free: 42.23 MB / 0.8855 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 4.919e-05/0.9048, allocations: 11.89 kB / 1.357 GB, free: 42.22 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 4.349e-05/0.9048, allocations: 34.25 kB / 1.358 GB, free: 42.18 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.072e-06/0.9048, allocations: 0.6562 kB / 1.358 GB, free: 42.18 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.785e-06/0.9048, allocations: 0 / 1.358 GB, free: 42.18 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.548e-06/0.9049, allocations: 0.625 kB / 1.358 GB, free: 42.18 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.091e-05/0.905, allocations: 130.8 kB / 1.358 GB, free: 42.02 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 3.125e-05/0.905, allocations: 19.52 kB / 1.358 GB, free: 41.99 MB / 0.8855 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.428e-05/0.905, allocations: 10.61 kB / 1.358 GB, free: 41.98 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000109/0.9051, allocations: 93.14 kB / 1.358 GB, free: 41.87 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.014e-05/0.9051, allocations: 30.56 kB / 1.358 GB, free: 41.83 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=2): time 9.82e-07/0.9052, allocations: 0.5312 kB / 1.358 GB, free: 41.83 MB / 0.8855 GB Notification: Performance of matching and sorting (n=2): time 0.0001272/0.9053, allocations: 38.73 kB / 1.358 GB, free: 41.79 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.451e-05/0.9053, allocations: 51.41 kB / 1.358 GB, free: 41.73 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.56e-05/0.9053, allocations: 85.75 kB / 1.358 GB, free: 41.64 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 6.311e-06/0.9053, allocations: 25.7 kB / 1.358 GB, free: 41.61 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 9.027e-06/0.9054, allocations: 84.95 kB / 1.358 GB, free: 41.52 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 1.863e-05/0.9054, allocations: 7.984 kB / 1.358 GB, free: 41.51 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.385e-06/0.9054, allocations: 4.812 kB / 1.358 GB, free: 41.51 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 3.605e-05/0.9054, allocations: 315.8 kB / 1.358 GB, free: 41.19 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.953e-06/0.9054, allocations: 0 / 1.358 GB, free: 41.19 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.682e-06/0.9055, allocations: 8.062 kB / 1.358 GB, free: 41.19 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.091e-05/0.9055, allocations: 0.9062 kB / 1.358 GB, free: 41.19 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.433e-06/0.9055, allocations: 3.938 kB / 1.358 GB, free: 41.18 MB / 0.8855 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.274e-05/0.9056, allocations: 42.53 kB / 1.358 GB, free: 41.14 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 9.037e-06/0.9056, allocations: 4 kB / 1.358 GB, free: 41.13 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.18e-06/0.9056, allocations: 4.875 kB / 1.358 GB, free: 41.13 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.858e-06/0.9056, allocations: 4 kB / 1.358 GB, free: 41.13 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.626e-05/0.9057, allocations: 0 / 1.358 GB, free: 41.13 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.436e-06/0.9057, allocations: 0.5938 kB / 1.358 GB, free: 41.13 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.22e-05/0.9057, allocations: 4.938 kB / 1.358 GB, free: 41.12 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.867e-06/0.9057, allocations: 0 / 1.358 GB, free: 41.12 MB / 0.8855 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 3.674e-05/0.9057, allocations: 105.7 kB / 1.359 GB, free: 41.02 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.422e-06/0.9057, allocations: 0.75 kB / 1.359 GB, free: 41.02 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.771e-05/0.9058, allocations: 45.69 kB / 1.359 GB, free: 40.97 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.814e-06/0.9058, allocations: 0 / 1.359 GB, free: 40.97 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.628e-06/0.9059, allocations: 2.125 kB / 1.359 GB, free: 40.97 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.286e-06/0.9059, allocations: 0.8125 kB / 1.359 GB, free: 40.97 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.525e-05/0.9059, allocations: 138.1 kB / 1.359 GB, free: 40.8 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.362e-06/0.9059, allocations: 1 kB / 1.359 GB, free: 40.8 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.163e-05/0.9059, allocations: 4 kB / 1.359 GB, free: 40.79 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.515e-06/0.906, allocations: 0.5625 kB / 1.359 GB, free: 40.79 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.47e-06/0.906, allocations: 0 / 1.359 GB, free: 40.79 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.423e-06/0.906, allocations: 1.156 kB / 1.359 GB, free: 40.79 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.906, allocations: 3.938 kB / 1.359 GB, free: 40.79 MB / 0.8855 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 6.578e-05/0.906, allocations: 66.91 kB / 1.359 GB, free: 40.71 MB / 0.8855 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 8.981e-05/0.9061, allocations: 447.8 kB / 1.359 GB, free: 40.25 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 1.297e-05/0.9062, allocations: 77.11 kB / 1.359 GB, free: 40.16 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.608e-06/0.9062, allocations: 0 / 1.359 GB, free: 40.16 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.124e-05/0.9062, allocations: 3.906 kB / 1.359 GB, free: 40.15 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.258e-05/0.9062, allocations: 0.9062 kB / 1.359 GB, free: 40.15 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.917e-06/0.9062, allocations: 4.75 kB / 1.359 GB, free: 40.15 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.167e-05/0.9062, allocations: 80.36 kB / 1.359 GB, free: 40.07 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0007292/0.907, allocations: 8 kB / 1.359 GB, free: 40.06 MB / 0.8855 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.0001142/0.9071, allocations: 104 kB / 1.359 GB, free: 39.95 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 5.03e-05/0.9072, allocations: 10.06 kB / 1.36 GB, free: 39.95 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 1.202e-06/0.9072, allocations: 0 / 1.36 GB, free: 39.95 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 1.116e-05/0.9072, allocations: 7.938 kB / 1.36 GB, free: 39.94 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.202e-05/0.9073, allocations: 6.422 kB / 1.36 GB, free: 39.93 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001288/0.9074, allocations: 44.86 kB / 1.36 GB, free: 39.87 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.899e-05/0.9075, allocations: 0.6846 MB / 1.36 GB, free: 39.16 MB / 0.8855 GB Notification: Performance of SimCode: time 2.4e-07/0.9075, allocations: 0.875 kB / 1.36 GB, free: 39.16 MB / 0.8855 GB (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Math_Functions_Examples_Factorial_fmu --startTime=0 --stopTime=12.9 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_Math_Functions_Examples_Factorial.fmu > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial_res.mat does not exist to compare? outputFormat=mat