Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.Examples.FallingFactorial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.FallingFactorial,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Examples_FallingFactorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.FallingFactorial,fileNamePrefix="Buildings_9_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 9.1.1-maint.9.1.x/package.mo): time 1.965/1.965, allocations: 387.2 MB / 394.5 MB, free: 1.641 MB / 302.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001065/0.001065, allocations: 173 kB / 487 MB, free: 9.82 MB / 398.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.261/1.261, allocations: 221.3 MB / 0.7819 GB, free: 5.387 MB / 0.545 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008536/0.0008537, allocations: 94.92 kB / 0.9213 GB, free: 6.684 MB / 0.6856 GB Notification: Performance of FrontEnd - loaded program: time 0.5236/0.5245, allocations: 148.4 MB / 1.066 GB, free: 189.9 MB / 0.7637 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2235/0.7479, allocations: 142.3 MB / 1.205 GB, free: 48.16 MB / 0.7637 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6193/1.367, allocations: 148.8 MB / 1.351 GB, free: 17.37 MB / 0.8262 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002389/1.368, allocations: 72.58 kB / 1.351 GB, free: 17.37 MB / 0.8262 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.00345/1.371, allocations: 1.096 MB / 1.352 GB, free: 32.97 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.734e-05/1.371, allocations: 11.62 kB / 1.352 GB, free: 32.97 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.848e-05/1.371, allocations: 7.688 kB / 1.352 GB, free: 32.96 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.168e-05/1.371, allocations: 164.5 kB / 1.352 GB, free: 32.77 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.956e-05/1.371, allocations: 3.969 kB / 1.352 GB, free: 32.77 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.758e-06/1.371, allocations: 3.938 kB / 1.352 GB, free: 32.76 MB / 0.8419 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.425e-05/1.371, allocations: 20.98 kB / 1.352 GB, free: 32.76 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.169e-05/1.371, allocations: 46.56 kB / 1.352 GB, free: 32.73 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.893e-06/1.371, allocations: 0 / 1.352 GB, free: 32.73 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.086e-05/1.371, allocations: 4 kB / 1.352 GB, free: 32.73 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.709e-06/1.371, allocations: 0 / 1.352 GB, free: 32.73 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003253/1.372, allocations: 254.4 kB / 1.352 GB, free: 32.49 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002029/1.372, allocations: 49.95 kB / 1.352 GB, free: 32.46 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.804e-05/1.372, allocations: 9.266 kB / 1.352 GB, free: 32.46 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002328/1.372, allocations: 405.3 kB / 1.353 GB, free: 31.98 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.65e-05/1.372, allocations: 34.98 kB / 1.353 GB, free: 31.94 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=3): time 1.012e-06/1.372, allocations: 0 / 1.353 GB, free: 31.94 MB / 0.8419 GB Notification: Performance of matching and sorting (n=3): time 0.0001998/1.373, allocations: 45.44 kB / 1.353 GB, free: 31.91 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.769e-05/1.373, allocations: 55.8 kB / 1.353 GB, free: 31.85 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.958e-05/1.373, allocations: 93.78 kB / 1.353 GB, free: 31.76 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 1.407e-05/1.373, allocations: 29.64 kB / 1.353 GB, free: 31.72 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 3.514e-05/1.373, allocations: 96.06 kB / 1.353 GB, free: 31.63 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 1.666e-05/1.373, allocations: 9.172 kB / 1.353 GB, free: 31.62 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.018e-06/1.373, allocations: 0 / 1.353 GB, free: 31.62 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 9.878e-05/1.373, allocations: 315.4 kB / 1.353 GB, free: 31.31 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.913e-05/1.373, allocations: 6.781 kB / 1.353 GB, free: 31.31 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.848e-05/1.373, allocations: 7.703 kB / 1.353 GB, free: 31.31 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.912e-05/1.373, allocations: 5.109 kB / 1.353 GB, free: 31.31 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/1.373, allocations: 4.406 kB / 1.353 GB, free: 31.31 MB / 0.8419 GB Notification: Performance of matching and sorting (n=3) (initialization): time 9.572e-05/1.373, allocations: 48.89 kB / 1.353 GB, free: 31.28 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.047e-05/1.373, allocations: 16.38 kB / 1.353 GB, free: 31.27 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.779e-06/1.373, allocations: 3.844 kB / 1.353 GB, free: 31.27 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.136e-05/1.373, allocations: 0 / 1.353 GB, free: 31.27 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000101/1.373, allocations: 11.16 kB / 1.353 GB, free: 31.27 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.14e-06/1.373, allocations: 4.406 kB / 1.353 GB, free: 31.27 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.939e-05/1.373, allocations: 10.33 kB / 1.353 GB, free: 31.27 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.786e-06/1.373, allocations: 4.5 kB / 1.353 GB, free: 31.27 MB / 0.8419 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 6.611e-05/1.373, allocations: 104.9 kB / 1.354 GB, free: 31.16 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.688e-05/1.373, allocations: 4.703 kB / 1.354 GB, free: 31.15 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001404/1.374, allocations: 63.03 kB / 1.354 GB, free: 31.11 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.994e-06/1.374, allocations: 0 / 1.354 GB, free: 31.11 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.206e-06/1.374, allocations: 0 / 1.354 GB, free: 31.11 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/1.374, allocations: 0.5156 kB / 1.354 GB, free: 31.11 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001234/1.374, allocations: 152.1 kB / 1.354 GB, free: 30.95 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.42e-07/1.374, allocations: 0 / 1.354 GB, free: 30.95 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.858e-05/1.374, allocations: 15.16 kB / 1.354 GB, free: 30.95 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.465e-06/1.374, allocations: 0 / 1.354 GB, free: 30.95 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.856e-06/1.374, allocations: 6.516 kB / 1.354 GB, free: 30.95 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/1.374, allocations: 0.625 kB / 1.354 GB, free: 30.95 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.398e-06/1.374, allocations: 0.5625 kB / 1.354 GB, free: 30.95 MB / 0.8419 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001341/1.374, allocations: 154.8 kB / 1.354 GB, free: 30.8 MB / 0.8419 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0001936/1.374, allocations: 0.5139 MB / 1.354 GB, free: 30.3 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 2.872e-05/1.374, allocations: 82.11 kB / 1.355 GB, free: 30.21 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.576e-05/1.374, allocations: 0 / 1.355 GB, free: 30.21 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000103/1.374, allocations: 14.59 kB / 1.355 GB, free: 30.2 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.605e-05/1.374, allocations: 2.812 kB / 1.355 GB, free: 30.2 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.54e-06/1.374, allocations: 4.438 kB / 1.355 GB, free: 30.2 MB / 0.8419 GB Notification: Performance of sort global known variables: time 2.981e-05/1.374, allocations: 79.27 kB / 1.355 GB, free: 30.13 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0007915/1.375, allocations: 24.45 kB / 1.355 GB, free: 30.12 MB / 0.8419 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.0001486/1.375, allocations: 112.5 kB / 1.355 GB, free: 30.02 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 8.074e-05/1.375, allocations: 19.52 kB / 1.355 GB, free: 30.02 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/1.375, allocations: 4 kB / 1.355 GB, free: 30.02 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 2.914e-05/1.376, allocations: 15.7 kB / 1.355 GB, free: 30.02 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001631/1.376, allocations: 3.688 kB / 1.355 GB, free: 30.02 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002195/1.376, allocations: 68.08 kB / 1.355 GB, free: 29.95 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002956/1.376, allocations: 0.6986 MB / 1.356 GB, free: 29.25 MB / 0.8419 GB Notification: Performance of SimCode: time 2.5e-07/1.376, allocations: 0 / 1.356 GB, free: 29.25 MB / 0.8419 GB (rm -f Buildings_9_Buildings.Utilities.Math.Examples.FallingFactorial.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.FallingFactorial.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.FallingFactorial.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.FallingFactorial.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Utilities.Math.Examples.FallingFactorial_res.mat --tempDir=temp_Buildings_9_Buildings_Utilities_Math_Examples_FallingFactorial_fmu --startTime=0 --stopTime=11 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Utilities_Math_Examples_FallingFactorial.fmu > Buildings_9_Buildings.Utilities.Math.Examples.FallingFactorial.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Utilities.Math.Examples.FallingFactorial_res.mat does not exist to compare? outputFormat=mat