Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AixLib_latest_AixLib.Utilities.Math.Examples.Factorial.conf.json 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/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/Modelica_DeviceDrivers 2.1.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/SDF master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 1.4.0-development/package.mo", uses=false) Using package AixLib with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 1.4.0-development/package.mo) 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-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(AixLib.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="AixLib_latest_AixLib.Utilities.Math.Examples.Factorial") translateModel(AixLib.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="AixLib_latest_AixLib.Utilities.Math.Examples.Factorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001407/0.001407, allocations: 115.2 kB / 16.42 MB, free: 6.449 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001598/0.001598, allocations: 183.9 kB / 17.35 MB, free: 5.738 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.367/1.367, allocations: 222.9 MB / 241.1 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/package.mo): time 0.05835/0.05835, allocations: 12.04 MB / 303.3 MB, free: 3.133 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SDF master/package.mo): time 0.0005251/0.000525, allocations: 39.92 kB / 356.3 MB, free: 13.99 MB / 302.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 1.4.0-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.4.0-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.4.0-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.4.0-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.4.0-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.4.0-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.4.0-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. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 1.4.0-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.4.0-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.4.0-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.4.0-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.4.0-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.4.0-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.4.0-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.4.0-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.4.0-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.4.0-development/BoundaryConditions/InternalGains/Examples/InternalGains/Lights.mo:27:20-27:398: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.4.0-development/package.mo): time 1.932/1.932, allocations: 272.3 MB / 0.6657 GB, free: 18.41 MB / 478.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00417/0.00417, allocations: 111.8 kB / 0.8936 GB, free: 15.06 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5581/0.5623, allocations: 109.1 MB / 1 GB, free: 8.316 MB / 0.6857 GB Notification: Performance of NFInst.instantiate(AixLib.Utilities.Math.Examples.Factorial): time 0.002347/0.5647, allocations: 1.51 MB / 1.002 GB, free: 7.141 MB / 0.6857 GB Notification: Performance of NFInst.instExpressions: time 0.0003309/0.5651, allocations: 136.3 kB / 1.002 GB, free: 7.031 MB / 0.6857 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.412e-05/0.5651, allocations: 1.312 kB / 1.002 GB, free: 7.031 MB / 0.6857 GB Notification: Performance of NFTyping.typeComponents: time 2.258e-05/0.5651, allocations: 0 / 1.002 GB, free: 7.031 MB / 0.6857 GB Notification: Performance of NFTyping.typeBindings: time 3.834e-05/0.5652, allocations: 3.938 kB / 1.002 GB, free: 7.027 MB / 0.6857 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001936/0.5654, allocations: 23.06 kB / 1.002 GB, free: 7.012 MB / 0.6857 GB Notification: Performance of NFFlatten.flatten: time 6.613e-05/0.5655, allocations: 27.92 kB / 1.002 GB, free: 6.996 MB / 0.6857 GB Notification: Performance of NFFlatten.resolveConnections: time 9.246e-05/0.5656, allocations: 13.27 kB / 1.002 GB, free: 6.988 MB / 0.6857 GB Notification: Performance of NFEvalConstants.evaluate: time 3.747e-05/0.5656, allocations: 11.75 kB / 1.002 GB, free: 6.98 MB / 0.6857 GB Notification: Performance of NFSimplifyModel.simplify: time 4.391e-05/0.5657, allocations: 20.94 kB / 1.002 GB, free: 6.965 MB / 0.6857 GB Notification: Performance of NFPackage.collectConstants: time 1.407e-05/0.5657, allocations: 2.906 kB / 1.002 GB, free: 6.965 MB / 0.6857 GB Notification: Performance of NFFlatten.collectFunctions: time 5.621e-05/0.5657, allocations: 17.83 kB / 1.002 GB, free: 6.953 MB / 0.6857 GB Notification: Performance of NFScalarize.scalarize: time 1.328e-05/0.5658, allocations: 5.406 kB / 1.002 GB, free: 6.949 MB / 0.6857 GB Notification: Performance of NFVerifyModel.verify: time 2.433e-05/0.5658, allocations: 10.78 kB / 1.002 GB, free: 6.941 MB / 0.6857 GB Notification: Performance of NFConvertDAE.convert: time 0.0001001/0.5659, allocations: 40.56 kB / 1.002 GB, free: 6.91 MB / 0.6857 GB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.5659, allocations: 0 / 1.002 GB, free: 6.91 MB / 0.6857 GB Notification: Performance of FrontEnd: time 1.443e-06/0.5659, allocations: 1.406 kB / 1.002 GB, free: 6.91 MB / 0.6857 GB Notification: Performance of Transformations before backend: time 4.899e-06/0.5659, allocations: 0 / 1.002 GB, free: 6.91 MB / 0.6857 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0003722/0.5663, allocations: 347.3 kB / 1.002 GB, free: 6.539 MB / 0.6857 GB Notification: Performance of prepare preOptimizeDAE: time 3.858e-05/0.5663, allocations: 7.938 kB / 1.002 GB, free: 6.539 MB / 0.6857 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.873e-05/0.5664, allocations: 2.469 kB / 1.002 GB, free: 6.539 MB / 0.6857 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.837e-05/0.5664, allocations: 171.3 kB / 1.002 GB, free: 6.336 MB / 0.6857 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.827e-05/0.5665, allocations: 384 / 1.002 GB, free: 6.336 MB / 0.6857 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.328e-05/0.5665, allocations: 3.156 kB / 1.002 GB, free: 6.336 MB / 0.6857 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001679/0.5667, allocations: 56.55 kB / 1.002 GB, free: 6.289 MB / 0.6857 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.426e-06/0.5667, allocations: 192 / 1.002 GB, free: 6.289 MB / 0.6857 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.979e-06/0.5667, allocations: 3.938 kB / 1.002 GB, free: 6.285 MB / 0.6857 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.697e-06/0.5667, allocations: 5.25 kB / 1.002 GB, free: 6.281 MB / 0.6857 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001784/0.5669, allocations: 46.2 kB / 1.003 GB, free: 6.258 MB / 0.6857 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002783/0.5672, allocations: 260.9 kB / 1.003 GB, free: 5.969 MB / 0.6857 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002971/0.5675, allocations: 66.02 kB / 1.003 GB, free: 5.918 MB / 0.6857 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.325e-05/0.5676, allocations: 28.16 kB / 1.003 GB, free: 5.898 MB / 0.6857 GB Notification: Performance of preOpt evalFunc (simulation): time 9.238e-05/0.5677, allocations: 84.98 kB / 1.003 GB, free: 5.801 MB / 0.6857 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.375e-05/0.5677, allocations: 38.48 kB / 1.003 GB, free: 5.754 MB / 0.6857 GB Notification: Performance of pre-optimization done (n=3): time 1.212e-06/0.5677, allocations: 0 / 1.003 GB, free: 5.754 MB / 0.6857 GB Notification: Performance of matching and sorting (n=3): time 0.00036/0.5681, allocations: 86.45 kB / 1.003 GB, free: 5.699 MB / 0.6857 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.349e-05/0.5681, allocations: 59.41 kB / 1.003 GB, free: 5.629 MB / 0.6857 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.714e-05/0.5681, allocations: 99.34 kB / 1.003 GB, free: 5.527 MB / 0.6857 GB Notification: Performance of collectPreVariables (initialization): time 8.165e-06/0.5682, allocations: 30.73 kB / 1.003 GB, free: 5.492 MB / 0.6857 GB Notification: Performance of collectInitialEqns (initialization): time 2.564e-05/0.5682, allocations: 89.17 kB / 1.003 GB, free: 5.402 MB / 0.6857 GB Notification: Performance of collectInitialBindings (initialization): time 1.235e-05/0.5682, allocations: 1.062 kB / 1.003 GB, free: 5.402 MB / 0.6857 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.99e-05/0.5682, allocations: 21.42 kB / 1.003 GB, free: 5.379 MB / 0.6857 GB Notification: Performance of setup shared object (initialization): time 3.782e-05/0.5683, allocations: 312.1 kB / 1.004 GB, free: 5.066 MB / 0.6857 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.027e-05/0.5684, allocations: 22.58 kB / 1.004 GB, free: 5.055 MB / 0.6857 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.825e-05/0.5685, allocations: 22.62 kB / 1.004 GB, free: 5.043 MB / 0.6857 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00016/0.5686, allocations: 45.88 kB / 1.004 GB, free: 5.016 MB / 0.6857 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.5686, allocations: 1.031 kB / 1.004 GB, free: 5.016 MB / 0.6857 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001961/0.5688, allocations: 79.09 kB / 1.004 GB, free: 4.957 MB / 0.6857 GB Notification: Performance of prepare postOptimizeDAE: time 1.238e-05/0.5689, allocations: 5.656 kB / 1.004 GB, free: 4.957 MB / 0.6857 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.017e-06/0.5689, allocations: 4 kB / 1.004 GB, free: 4.953 MB / 0.6857 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.167e-05/0.5689, allocations: 1.125 kB / 1.004 GB, free: 4.953 MB / 0.6857 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.958e-05/0.569, allocations: 11.8 kB / 1.004 GB, free: 4.949 MB / 0.6857 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.871e-06/0.569, allocations: 4 kB / 1.004 GB, free: 4.945 MB / 0.6857 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.683e-05/0.569, allocations: 7.422 kB / 1.004 GB, free: 4.941 MB / 0.6857 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.47e-06/0.5691, allocations: 1.156 kB / 1.004 GB, free: 4.941 MB / 0.6857 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 (rea2Int.y,fac.y) * Number of discrete states: 0 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 4.958e-05/0.5691, allocations: 120.3 kB / 1.004 GB, free: 4.816 MB / 0.6857 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.587e-05/0.5691, allocations: 2.375 kB / 1.004 GB, free: 4.816 MB / 0.6857 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002327/0.5694, allocations: 81.77 kB / 1.004 GB, free: 4.75 MB / 0.6857 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.925e-06/0.5694, allocations: 1.344 kB / 1.004 GB, free: 4.75 MB / 0.6857 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.72e-07/0.5694, allocations: 0 / 1.004 GB, free: 4.75 MB / 0.6857 GB Notification: Performance of postOpt removeConstants (simulation): time 1.438e-05/0.5694, allocations: 78.55 kB / 1.004 GB, free: 4.656 MB / 0.6857 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.18e-05/0.5694, allocations: 0 / 1.004 GB, free: 4.656 MB / 0.6857 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.508e-05/0.5695, allocations: 7.766 kB / 1.004 GB, free: 4.652 MB / 0.6857 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.595e-05/0.5696, allocations: 15.92 kB / 1.004 GB, free: 4.641 MB / 0.6857 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0002425/0.5698, allocations: 161.1 kB / 1.004 GB, free: 4.504 MB / 0.6857 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0002203/0.57, allocations: 251 kB / 1.005 GB, free: 4.27 MB / 0.6857 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 9.267e-05/0.5701, allocations: 20.8 kB / 1.005 GB, free: 4.262 MB / 0.6857 GB Notification: Performance of sorting global known variables: time 1.992e-05/0.5702, allocations: 90.8 kB / 1.005 GB, free: 4.176 MB / 0.6857 GB Notification: Performance of Backend: time 2.11e-07/0.5702, allocations: 0 / 1.005 GB, free: 4.176 MB / 0.6857 GB Notification: Performance of simCode: created initialization part: time 0.0004187/0.5706, allocations: 108.6 kB / 1.005 GB, free: 4.094 MB / 0.6857 GB Notification: Performance of SimCode: time 0.0002878/0.5709, allocations: 0.5688 MB / 1.005 GB, free: 3.488 MB / 0.6857 GB Notification: Performance of Templates: time 0.002715/0.5736, allocations: 0.8066 MB / 1.006 GB, free: 3.078 MB / 0.6857 GB make -j1 -f AixLib_latest_AixLib.Utilities.Math.Examples.Factorial.makefile (rm -f AixLib_latest_AixLib.Utilities.Math.Examples.Factorial.pipe ; mkfifo AixLib_latest_AixLib.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < AixLib_latest_AixLib.Utilities.Math.Examples.Factorial.pipe >> ../files/AixLib_latest_AixLib.Utilities.Math.Examples.Factorial.sim & ./AixLib_latest_AixLib.Utilities.Math.Examples.Factorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > AixLib_latest_AixLib.Utilities.Math.Examples.Factorial.pipe 2>&1)