Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AixLib_AixLib.Utilities.Math.Functions.Examples.Factorial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 1.3.2-development/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/Modelica_DeviceDrivers 2.1.1/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/SDF master/package.mo", uses=false) Using package SDF with version 0.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/SDF master/package.mo) Using package Modelica_DeviceDrivers with version 2.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1/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 AixLib with version 1.3.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 1.3.2-development/package.mo) Running command: "" <> buildModelFMU(AixLib.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="AixLib_AixLib_Utilities_Math_Functions_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AixLib.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="AixLib_AixLib_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). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 1.3.2-development/BoundaryConditions/InternalGains/Examples/InternalGains/Lights.mo:27:20-27:398:writable] Warning: Lexer treating \ as \\, since \ is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 1.3.2-development/BoundaryConditions/InternalGains/Examples/InternalGains/Machines.mo:31:20-31:400:writable] Warning: Lexer treating \ as \\, since \ is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 1.3.2-development/DataBase/CHP/CHPDataSimple/CHP_Cleanergy_C9G.mo:36:34-36:594:writable] Warning: Lexer treating \ as \\, since \ is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 1.3.2-development/DataBase/CHP/CHPDataSimple/CHP_XRGI_9kWel.mo:25:34-25:588:writable] Warning: Lexer treating \ as \\, since \ is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 1.3.2-development/DataBase/CHP/CHPDataSimple/CHP_XRGI_9kWel.mo:25:34-25:3852:writable] Warning: Lexer treating \ as \\, since \ is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 1.3.2-development/DataBase/Weather/SurfaceOrientation/SurfaceOrientationData_NE_SE_SW_NW_Hor.mo:5:35-5:324:writable] Warning: Lexer treating \ as \\, since \ is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 1.3.2-development/DataBase/Weather/SurfaceOrientation/SurfaceOrientationData_N_E_S_W_Hor.mo:5:35-5:320:writable] Warning: Lexer treating \ as \\, since \ is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 1.3.2-development/DataBase/Weather/SurfaceOrientation/SurfaceOrientationData_N_E_S_W_RoofN_Roof_S.mo:5:35-5:362:writable] Warning: Lexer treating \ as \\, since \ is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 1.3.2-development/Obsolete/YearIndependent/FastHVAC/Components/HeatExchangers/RadiatorMultiLayer.mo:265:34-265:6228:writable] Warning: Lexer treating \ as \\, since \ is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 1.3.2-development/Obsolete/YearIndependent/FastHVAC/Components/HeatExchangers/RadiatorMultiLayer.mo:265:34-265:6853:writable] Warning: Lexer treating \ as \\, since \ is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 1.3.2-development/Obsolete/YearIndependent/FastHVAC/Components/HeatExchangers/RadiatorMultiLayer.mo:265:34-265:8435:writable] Warning: Lexer treating \ as \\, since \ is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 1.3.2-development/Obsolete/YearIndependent/FastHVAC/Components/HeatExchangers/RadiatorMultiLayer.mo:265:34-265:9369:writable] Warning: Lexer treating \ as \\, since \ is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 1.3.2-development/Obsolete/YearIndependent/FastHVAC/Components/HeatExchangers/RadiatorMultiLayer.mo:265:34-265:11505:writable] Warning: Lexer treating \ as \\, since \ is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 1.3.2-development/Obsolete/YearIndependent/FastHVAC/Components/HeatExchangers/RadiatorMultiLayer.mo:265:34-265:12875:writable] Warning: Lexer treating \ as \\, since \ is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 1.3.2-development/ThermalZones/HighOrder/Components/DryAir/InfiltrationRate_DIN12831.mo:20:192-20:2066:writable] Warning: Lexer treating \ as \\, since \ is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 1.3.2-development/ThermalZones/HighOrder/Components/DryAir/InfiltrationRate_DIN12831.mo:20:192-20:4252:writable] Warning: Lexer treating \ as \\, since \ is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 1.3.2-development/ThermalZones/HighOrder/Components/Examples/DryAir/DryAir_test.mo:71:18-71:405:writable] Warning: Lexer treating \ as \\, since \ is not a valid Modelica escape sequence. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 1.3.2-development/package.mo): time 1.68/1.68, allocations: 265.2 MB / 272.5 MB, free: 13.59 MB / 234.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001242/0.001242, allocations: 194.2 kB / 329.9 MB, free: 6.957 MB / 266.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.671/1.671, allocations: 221.4 MB / 0.5943 GB, free: 9.84 MB / 442.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001031/0.001031, allocations: 95.7 kB / 0.6995 GB, free: 3.074 MB / 0.5262 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1/package.mo): time 0.4677/0.4677, allocations: 11.88 MB / 0.8162 GB, free: 131.9 MB / 0.6355 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/SDF master/package.mo:9:42-9:258:writable] Notification: This is an open source dummy package of a commercial library. If you want it to be supported, you will need to add an implemention on our github repository: https://github.com/Modelica-OpenVendorSpecificLibraries. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SDF master/package.mo): time 0.0005281/0.0005279, allocations: 23.89 kB / 0.9242 GB, free: 66.55 MB / 0.6355 GB Notification: Performance of FrontEnd - loaded program: time 0.294/0.2946, allocations: 117.8 MB / 1.039 GB, free: 12.63 MB / 0.698 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7298/1.024, allocations: 110.2 MB / 1.147 GB, free: 152.6 MB / 0.7293 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1615/1.186, allocations: 133.1 MB / 1.277 GB, free: 34.51 MB / 0.7293 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000259/1.186, allocations: 67.95 kB / 1.277 GB, free: 34.45 MB / 0.7293 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.001182/1.187, allocations: 0.5173 MB / 1.277 GB, free: 33.89 MB / 0.7293 GB Notification: Performance of prepare preOptimizeDAE: time 3.899e-05/1.188, allocations: 12 kB / 1.277 GB, free: 33.88 MB / 0.7293 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.104e-05/1.188, allocations: 5.875 kB / 1.277 GB, free: 33.87 MB / 0.7293 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.949e-05/1.188, allocations: 163.1 kB / 1.278 GB, free: 33.67 MB / 0.7293 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.195e-05/1.188, allocations: 0 / 1.278 GB, free: 33.67 MB / 0.7293 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.959e-06/1.188, allocations: 0 / 1.278 GB, free: 33.67 MB / 0.7293 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 5.675e-05/1.188, allocations: 15.84 kB / 1.278 GB, free: 33.66 MB / 0.7293 GB Notification: Performance of preOpt clockPartitioning (simulation): time 4.99e-05/1.188, allocations: 25.7 kB / 1.278 GB, free: 33.62 MB / 0.7293 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.623e-06/1.188, allocations: 4 kB / 1.278 GB, free: 33.62 MB / 0.7293 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.657e-06/1.188, allocations: 0 / 1.278 GB, free: 33.62 MB / 0.7293 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.979e-06/1.188, allocations: 0 / 1.278 GB, free: 33.62 MB / 0.7293 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.305e-05/1.188, allocations: 130.9 kB / 1.278 GB, free: 33.46 MB / 0.7293 GB Notification: Performance of preOpt comSubExp (simulation): time 3.825e-05/1.188, allocations: 26.55 kB / 1.278 GB, free: 33.42 MB / 0.7293 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.677e-05/1.188, allocations: 8.922 kB / 1.278 GB, free: 33.41 MB / 0.7293 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001248/1.188, allocations: 81.11 kB / 1.278 GB, free: 33.31 MB / 0.7293 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.886e-05/1.188, allocations: 34.55 kB / 1.278 GB, free: 33.27 MB / 0.7293 GB Notification: Performance of pre-optimization done (n=2): time 1.152e-06/1.188, allocations: 0 / 1.278 GB, free: 33.27 MB / 0.7293 GB Notification: Performance of matching and sorting (n=2): time 0.0001588/1.188, allocations: 41.55 kB / 1.278 GB, free: 33.22 MB / 0.7293 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.046e-05/1.188, allocations: 55.41 kB / 1.278 GB, free: 33.16 MB / 0.7293 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.49e-05/1.188, allocations: 89 kB / 1.278 GB, free: 33.06 MB / 0.7293 GB Notification: Performance of collectPreVariables (initialization): time 9.237e-06/1.188, allocations: 25.7 kB / 1.278 GB, free: 33.03 MB / 0.7293 GB Notification: Performance of collectInitialEqns (initialization): time 1.638e-05/1.188, allocations: 80.14 kB / 1.278 GB, free: 32.95 MB / 0.7293 GB Notification: Performance of collectInitialBindings (initialization): time 2.403e-05/1.188, allocations: 3.938 kB / 1.278 GB, free: 32.95 MB / 0.7293 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.685e-06/1.188, allocations: 0 / 1.278 GB, free: 32.95 MB / 0.7293 GB Notification: Performance of setup shared object (initialization): time 6.635e-05/1.189, allocations: 318.7 kB / 1.278 GB, free: 32.62 MB / 0.7293 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.071e-05/1.189, allocations: 8.031 kB / 1.278 GB, free: 32.62 MB / 0.7293 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.222e-06/1.189, allocations: 0 / 1.278 GB, free: 32.62 MB / 0.7293 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.518e-05/1.189, allocations: 4 kB / 1.278 GB, free: 32.61 MB / 0.7293 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/1.189, allocations: 0 / 1.278 GB, free: 32.61 MB / 0.7293 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.273e-05/1.189, allocations: 37.7 kB / 1.279 GB, free: 32.57 MB / 0.7293 GB Notification: Performance of prepare postOptimizeDAE: time 1.268e-05/1.189, allocations: 4.625 kB / 1.279 GB, free: 32.57 MB / 0.7293 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.983e-06/1.189, allocations: 3.984 kB / 1.279 GB, free: 32.56 MB / 0.7293 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.045e-05/1.189, allocations: 3.938 kB / 1.279 GB, free: 32.56 MB / 0.7293 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.113e-05/1.189, allocations: 8 kB / 1.279 GB, free: 32.55 MB / 0.7293 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.23e-06/1.189, allocations: 0 / 1.279 GB, free: 32.55 MB / 0.7293 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.297e-05/1.189, allocations: 4.094 kB / 1.279 GB, free: 32.55 MB / 0.7293 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.509e-06/1.189, allocations: 0 / 1.279 GB, free: 32.55 MB / 0.7293 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 6.153e-05/1.189, allocations: 108.9 kB / 1.279 GB, free: 32.43 MB / 0.7293 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.462e-06/1.189, allocations: 0 / 1.279 GB, free: 32.43 MB / 0.7293 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001029/1.189, allocations: 44.84 kB / 1.279 GB, free: 32.38 MB / 0.7293 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.443e-06/1.189, allocations: 0 / 1.279 GB, free: 32.38 MB / 0.7293 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.009e-06/1.189, allocations: 0 / 1.279 GB, free: 32.38 MB / 0.7293 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.39e-06/1.189, allocations: 3.984 kB / 1.279 GB, free: 32.38 MB / 0.7293 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.161e-05/1.189, allocations: 134.2 kB / 1.279 GB, free: 32.21 MB / 0.7293 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.322e-06/1.189, allocations: 7.984 kB / 1.279 GB, free: 32.2 MB / 0.7293 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.008e-05/1.189, allocations: 0 / 1.279 GB, free: 32.2 MB / 0.7293 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.282e-06/1.189, allocations: 0 / 1.279 GB, free: 32.2 MB / 0.7293 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.596e-06/1.189, allocations: 4 kB / 1.279 GB, free: 32.2 MB / 0.7293 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.42e-07/1.189, allocations: 3.938 kB / 1.279 GB, free: 32.2 MB / 0.7293 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.465e-06/1.189, allocations: 0 / 1.279 GB, free: 32.2 MB / 0.7293 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 7.536e-05/1.189, allocations: 65.03 kB / 1.279 GB, free: 32.11 MB / 0.7293 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0001206/1.189, allocations: 444.1 kB / 1.279 GB, free: 31.66 MB / 0.7293 GB Notification: Performance of postOpt removeConstants (simulation): time 2.174e-05/1.189, allocations: 81.05 kB / 1.279 GB, free: 31.56 MB / 0.7293 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.292e-05/1.189, allocations: 4 kB / 1.279 GB, free: 31.56 MB / 0.7293 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.183e-05/1.189, allocations: 7.844 kB / 1.279 GB, free: 31.55 MB / 0.7293 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.078e-05/1.189, allocations: 0 / 1.279 GB, free: 31.55 MB / 0.7293 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.365e-06/1.189, allocations: 0 / 1.279 GB, free: 31.55 MB / 0.7293 GB Notification: Performance of sort global known variables: time 1.733e-05/1.19, allocations: 83.25 kB / 1.28 GB, free: 31.47 MB / 0.7293 GB Notification: Performance of remove unused functions: time 0.0007969/1.19, allocations: 11.98 kB / 1.28 GB, free: 31.46 MB / 0.7293 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.0001572/1.19, allocations: 110.8 kB / 1.28 GB, free: 31.34 MB / 0.7293 GB Notification: Performance of simCode: created initialization part: time 5.884e-05/1.191, allocations: 8 kB / 1.28 GB, free: 31.34 MB / 0.7293 GB Notification: Performance of simCode: created event and clocks part: time 1.553e-06/1.191, allocations: 0 / 1.28 GB, free: 31.34 MB / 0.7293 GB Notification: Performance of simCode: created simulation system equations: time 1.225e-05/1.191, allocations: 4 kB / 1.28 GB, free: 31.33 MB / 0.7293 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.211e-05/1.191, allocations: 0 / 1.28 GB, free: 31.33 MB / 0.7293 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001585/1.191, allocations: 56.12 kB / 1.28 GB, free: 31.25 MB / 0.7293 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001288/1.191, allocations: 0.688 MB / 1.28 GB, free: 30.54 MB / 0.7293 GB Notification: Performance of SimCode: time 2.4e-07/1.191, allocations: 0 / 1.28 GB, free: 30.54 MB / 0.7293 GB (rm -f AixLib_AixLib.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo AixLib_AixLib.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < AixLib_AixLib.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/AixLib_AixLib.Utilities.Math.Functions.Examples.Factorial.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_AixLib_AixLib_Utilities_Math_Functions_Examples_Factorial_fmu --startTime=0 --stopTime=12.9 --timeout=50 --tolerance=1e-06 AixLib_AixLib_Utilities_Math_Functions_Examples_Factorial.fmu > AixLib_AixLib.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1)