Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.Functions.Examples.Factorial.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.Functions.Examples.Factorial,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Functions_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="Buildings_9_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 9.1.1-maint.9.1.x/package.mo): time 1.861/1.861, allocations: 387.2 MB / 394.5 MB, free: 13.24 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.00108/0.00108, allocations: 173.9 kB / 487 MB, free: 0.6797 MB / 378.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.22/1.22, allocations: 221.3 MB / 0.7819 GB, free: 6.727 MB / 0.573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009439/0.0009438, allocations: 89 kB / 0.9213 GB, free: 43.64 MB / 0.6198 GB Notification: Performance of FrontEnd - loaded program: time 0.2481/0.249, allocations: 148.5 MB / 1.066 GB, free: 7.441 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5564/0.8055, allocations: 142.3 MB / 1.205 GB, free: 72.6 MB / 0.7917 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1594/0.9649, allocations: 147.8 MB / 1.35 GB, free: 15.46 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002185/0.9652, allocations: 72.55 kB / 1.35 GB, free: 15.39 MB / 0.8542 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.001238/0.9665, allocations: 0.5256 MB / 1.35 GB, free: 14.83 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 3.342e-05/0.9665, allocations: 8 kB / 1.35 GB, free: 14.82 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.252e-05/0.9665, allocations: 4.688 kB / 1.35 GB, free: 14.82 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.041e-05/0.9666, allocations: 163.1 kB / 1.35 GB, free: 14.62 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.08e-05/0.9666, allocations: 5.031 kB / 1.35 GB, free: 14.61 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.041e-06/0.9666, allocations: 0 / 1.35 GB, free: 14.61 MB / 0.8542 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 4.605e-05/0.9667, allocations: 4 kB / 1.35 GB, free: 14.61 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 4.813e-05/0.9668, allocations: 34.27 kB / 1.35 GB, free: 14.57 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.454e-06/0.9668, allocations: 1.594 kB / 1.35 GB, free: 14.57 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.502e-06/0.9668, allocations: 3.938 kB / 1.35 GB, free: 14.57 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.128e-06/0.9668, allocations: 0.7188 kB / 1.35 GB, free: 14.57 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001144/0.9669, allocations: 127.1 kB / 1.35 GB, free: 14.41 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 3.774e-05/0.967, allocations: 19.23 kB / 1.351 GB, free: 14.38 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.897e-05/0.967, allocations: 13.45 kB / 1.351 GB, free: 14.36 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001454/0.9671, allocations: 85.58 kB / 1.351 GB, free: 14.26 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.964e-05/0.9672, allocations: 35.08 kB / 1.351 GB, free: 14.22 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=2): time 1.102e-06/0.9672, allocations: 1.094 kB / 1.351 GB, free: 14.22 MB / 0.8542 GB Notification: Performance of matching and sorting (n=2): time 0.0001295/0.9673, allocations: 29.7 kB / 1.351 GB, free: 14.18 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.705e-05/0.9673, allocations: 56.38 kB / 1.351 GB, free: 14.12 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.203e-05/0.9674, allocations: 88.94 kB / 1.351 GB, free: 14.02 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 1.045e-05/0.9674, allocations: 26.48 kB / 1.351 GB, free: 13.99 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 2.611e-05/0.9674, allocations: 84.14 kB / 1.351 GB, free: 13.91 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 1.645e-05/0.9675, allocations: 0.5625 kB / 1.351 GB, free: 13.91 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.655e-06/0.9675, allocations: 4.625 kB / 1.351 GB, free: 13.9 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0001167/0.9676, allocations: 322 kB / 1.351 GB, free: 13.58 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.628e-06/0.9676, allocations: 4 kB / 1.351 GB, free: 13.58 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.891e-06/0.9676, allocations: 0.5625 kB / 1.351 GB, free: 13.58 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.229e-05/0.9677, allocations: 4.844 kB / 1.351 GB, free: 13.57 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.393e-06/0.9677, allocations: 0.5 kB / 1.351 GB, free: 13.57 MB / 0.8542 GB Notification: Performance of matching and sorting (n=2) (initialization): time 7.095e-05/0.9677, allocations: 39.48 kB / 1.351 GB, free: 13.53 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 1.205e-05/0.9678, allocations: 4 kB / 1.351 GB, free: 13.53 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.566e-06/0.9678, allocations: 0.5312 kB / 1.351 GB, free: 13.53 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.373e-05/0.9678, allocations: 3.984 kB / 1.351 GB, free: 13.52 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.106e-05/0.9678, allocations: 4.812 kB / 1.351 GB, free: 13.52 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.507e-06/0.9678, allocations: 0 / 1.351 GB, free: 13.52 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.218e-05/0.9679, allocations: 1.469 kB / 1.351 GB, free: 13.52 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.448e-06/0.9679, allocations: 3.75 kB / 1.351 GB, free: 13.52 MB / 0.8542 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.701e-05/0.9679, allocations: 113.5 kB / 1.351 GB, free: 13.4 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.542e-06/0.968, allocations: 0 / 1.351 GB, free: 13.4 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.068e-05/0.968, allocations: 47.78 kB / 1.351 GB, free: 13.36 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.503e-06/0.9681, allocations: 0 / 1.351 GB, free: 13.36 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.996e-06/0.9681, allocations: 0 / 1.351 GB, free: 13.36 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.505e-06/0.9681, allocations: 0 / 1.351 GB, free: 13.36 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.651e-05/0.9682, allocations: 132.8 kB / 1.352 GB, free: 13.19 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.106e-06/0.9682, allocations: 7.984 kB / 1.352 GB, free: 13.18 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.369e-05/0.9682, allocations: 0.6875 kB / 1.352 GB, free: 13.18 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.453e-06/0.9682, allocations: 0 / 1.352 GB, free: 13.18 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.28e-06/0.9682, allocations: 4 kB / 1.352 GB, free: 13.18 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.01e-07/0.9682, allocations: 0 / 1.352 GB, free: 13.18 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.9682, allocations: 1.125 kB / 1.352 GB, free: 13.18 MB / 0.8542 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 8.616e-05/0.9683, allocations: 70.78 kB / 1.352 GB, free: 13.09 MB / 0.8542 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0001751/0.9685, allocations: 440.9 kB / 1.352 GB, free: 12.64 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 3.748e-05/0.9685, allocations: 77.11 kB / 1.352 GB, free: 12.55 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.321e-05/0.9686, allocations: 11.84 kB / 1.352 GB, free: 12.54 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.144e-05/0.9686, allocations: 1.062 kB / 1.352 GB, free: 12.54 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.115e-05/0.9686, allocations: 0 / 1.352 GB, free: 12.54 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.245e-06/0.9686, allocations: 0 / 1.352 GB, free: 12.54 MB / 0.8542 GB Notification: Performance of sort global known variables: time 2.312e-05/0.9686, allocations: 79.5 kB / 1.352 GB, free: 12.46 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0007464/0.9694, allocations: 12 kB / 1.352 GB, free: 12.45 MB / 0.8542 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.0001448/0.9695, allocations: 103.2 kB / 1.352 GB, free: 12.34 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 5.942e-05/0.9696, allocations: 17.44 kB / 1.352 GB, free: 12.32 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 1.182e-06/0.9696, allocations: 0 / 1.352 GB, free: 12.32 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 1.257e-05/0.9696, allocations: 4 kB / 1.352 GB, free: 12.32 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 7.815e-05/0.9697, allocations: 0 / 1.352 GB, free: 12.32 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001647/0.9699, allocations: 54.84 kB / 1.352 GB, free: 12.25 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002472/0.9702, allocations: 0.6891 MB / 1.353 GB, free: 11.53 MB / 0.8542 GB Notification: Performance of SimCode: time 3.01e-07/0.9702, allocations: 0 / 1.353 GB, free: 11.53 MB / 0.8542 GB (rm -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.Factorial.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Utilities.Math.Functions.Examples.Factorial_res.mat --tempDir=temp_Buildings_9_Buildings_Utilities_Math_Functions_Examples_Factorial_fmu --startTime=0 --stopTime=12.9 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Utilities_Math_Functions_Examples_Factorial.fmu > Buildings_9_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Utilities.Math.Functions.Examples.Factorial_res.mat does not exist to compare? outputFormat=mat