Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial.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.Examples.FallingFactorial,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Examples_FallingFactorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.FallingFactorial,fileNamePrefix="Buildings_latest_Buildings_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/Buildings 10.0.0-master/package.mo): time 1.844/1.844, allocations: 390.4 MB / 397.7 MB, free: 11.22 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009654/0.0009653, allocations: 173.4 kB / 490.8 MB, free: 1.945 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.155/1.155, allocations: 221.3 MB / 0.7863 GB, free: 13.8 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009043/0.0009044, allocations: 95.3 kB / 0.9264 GB, free: 14.33 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 0.4212/0.4221, allocations: 149.1 MB / 1.072 GB, free: 164.7 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1941/0.6162, allocations: 143 MB / 1.212 GB, free: 21.85 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5183/1.134, allocations: 149.8 MB / 1.358 GB, free: 3.375 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001966/1.135, allocations: 74.19 kB / 1.358 GB, free: 3.332 MB / 0.8073 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.003173/1.138, allocations: 1.098 MB / 1.359 GB, free: 2.316 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.623e-05/1.138, allocations: 8 kB / 1.359 GB, free: 2.309 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.123e-05/1.138, allocations: 5.719 kB / 1.359 GB, free: 2.305 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001177/1.138, allocations: 163.1 kB / 1.359 GB, free: 2.105 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.007e-05/1.138, allocations: 3.984 kB / 1.359 GB, free: 2.102 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.333e-05/1.138, allocations: 7.906 kB / 1.359 GB, free: 2.094 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.515e-05/1.138, allocations: 19.62 kB / 1.359 GB, free: 2.082 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.733e-05/1.138, allocations: 45.5 kB / 1.359 GB, free: 2.035 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.264e-06/1.138, allocations: 0 / 1.359 GB, free: 2.035 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.077e-06/1.138, allocations: 4 kB / 1.359 GB, free: 2.031 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.689e-06/1.138, allocations: 0 / 1.359 GB, free: 2.031 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003564/1.139, allocations: 257 kB / 1.36 GB, free: 1.758 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002048/1.139, allocations: 50.17 kB / 1.36 GB, free: 1.707 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.655e-05/1.139, allocations: 8.922 kB / 1.36 GB, free: 1.695 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002502/1.139, allocations: 405.2 kB / 1.36 GB, free: 1.211 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.223e-05/1.139, allocations: 30.56 kB / 1.36 GB, free: 1.172 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=3): time 2.425e-06/1.139, allocations: 3.984 kB / 1.36 GB, free: 1.168 MB / 0.8073 GB Notification: Performance of matching and sorting (n=3): time 0.0001701/1.139, allocations: 49.47 kB / 1.36 GB, free: 1.117 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.25e-05/1.139, allocations: 51.41 kB / 1.36 GB, free: 1.055 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.819e-05/1.14, allocations: 99.69 kB / 1.36 GB, free: 0.957 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 1.933e-05/1.14, allocations: 25.7 kB / 1.36 GB, free: 0.9258 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 6.827e-05/1.14, allocations: 95.97 kB / 1.36 GB, free: 0.8281 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 1.51e-05/1.14, allocations: 7.906 kB / 1.36 GB, free: 0.8203 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.747e-06/1.14, allocations: 4.688 kB / 1.36 GB, free: 0.8164 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 9.256e-05/1.14, allocations: 314.7 kB / 1.361 GB, free: 0.5039 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.936e-05/1.14, allocations: 7.625 kB / 1.361 GB, free: 0.5 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.522e-05/1.14, allocations: 4 kB / 1.361 GB, free: 0.4961 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.759e-05/1.14, allocations: 11.92 kB / 1.361 GB, free: 500 kB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.122e-06/1.14, allocations: 0 / 1.361 GB, free: 500 kB / 0.8073 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000105/1.14, allocations: 49.62 kB / 1.361 GB, free: 448 kB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 9.338e-06/1.14, allocations: 8 kB / 1.361 GB, free: 440 kB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.366e-06/1.14, allocations: 3.938 kB / 1.361 GB, free: 436 kB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.037e-06/1.14, allocations: 3.906 kB / 1.361 GB, free: 432 kB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.799e-05/1.14, allocations: 17.11 kB / 1.361 GB, free: 416 kB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.496e-06/1.14, allocations: 0 / 1.361 GB, free: 416 kB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.737e-05/1.14, allocations: 12 kB / 1.361 GB, free: 404 kB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.415e-06/1.14, allocations: 3.984 kB / 1.361 GB, free: 400 kB / 0.8073 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 5.85e-05/1.14, allocations: 104.8 kB / 1.361 GB, free: 292 kB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.873e-05/1.14, allocations: 7.906 kB / 1.361 GB, free: 284 kB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001364/1.14, allocations: 53.06 kB / 1.361 GB, free: 228 kB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.582e-06/1.14, allocations: 0 / 1.361 GB, free: 228 kB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.016e-06/1.14, allocations: 0 / 1.361 GB, free: 228 kB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.248e-06/1.14, allocations: 3.984 kB / 1.361 GB, free: 224 kB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001227/1.141, allocations: 145 kB / 1.361 GB, free: 48 kB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.377e-06/1.141, allocations: 0.75 kB / 1.361 GB, free: 48 kB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.732e-05/1.141, allocations: 23.83 kB / 1.361 GB, free: 24 kB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-06/1.141, allocations: 0 / 1.361 GB, free: 24 kB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.296e-06/1.141, allocations: 3.984 kB / 1.361 GB, free: 20 kB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-06/1.141, allocations: 0.875 kB / 1.361 GB, free: 20 kB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/1.141, allocations: 0 / 1.361 GB, free: 20 kB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001418/1.141, allocations: 157.2 kB / 1.361 GB, free: 15.86 MB / 0.823 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002212/1.141, allocations: 0.5075 MB / 1.362 GB, free: 15.34 MB / 0.823 GB Notification: Performance of postOpt removeConstants (simulation): time 3.603e-05/1.141, allocations: 81.02 kB / 1.362 GB, free: 15.24 MB / 0.823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.462e-05/1.141, allocations: 0 / 1.362 GB, free: 15.24 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000101/1.141, allocations: 15.98 kB / 1.362 GB, free: 15.23 MB / 0.823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.13e-05/1.141, allocations: 9.375 kB / 1.362 GB, free: 15.22 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.649e-06/1.141, allocations: 0 / 1.362 GB, free: 15.22 MB / 0.823 GB Notification: Performance of sort global known variables: time 2.946e-05/1.141, allocations: 83.16 kB / 1.362 GB, free: 15.14 MB / 0.823 GB Notification: Performance of remove unused functions: time 0.0007551/1.142, allocations: 23.84 kB / 1.362 GB, free: 15.12 MB / 0.823 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.0001354/1.142, allocations: 113.1 kB / 1.362 GB, free: 15 MB / 0.823 GB Notification: Performance of simCode: created initialization part: time 7.223e-05/1.142, allocations: 23.56 kB / 1.362 GB, free: 14.98 MB / 0.823 GB Notification: Performance of simCode: created event and clocks part: time 1.332e-06/1.142, allocations: 4 kB / 1.362 GB, free: 14.98 MB / 0.823 GB Notification: Performance of simCode: created simulation system equations: time 2.912e-05/1.142, allocations: 15.86 kB / 1.362 GB, free: 14.97 MB / 0.823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001442/1.143, allocations: 7.094 kB / 1.362 GB, free: 14.96 MB / 0.823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002084/1.143, allocations: 67.34 kB / 1.362 GB, free: 14.88 MB / 0.823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002526/1.143, allocations: 0.6991 MB / 1.363 GB, free: 14.16 MB / 0.823 GB Notification: Performance of SimCode: time 2.81e-07/1.143, allocations: 0 / 1.363 GB, free: 14.16 MB / 0.823 GB (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Math_Examples_FallingFactorial_fmu --startTime=0 --stopTime=11 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_Math_Examples_FallingFactorial.fmu > Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial_res.mat does not exist to compare? outputFormat=mat