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/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.3.2/package.mo", uses=false) Using package AixLib with version 1.3.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 1.3.2/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.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="AixLib_AixLib.Utilities.Math.Functions.Examples.Factorial") translateModel(AixLib.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="AixLib_AixLib.Utilities.Math.Functions.Examples.Factorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001647/0.001648, allocations: 114 kB / 16.42 MB, free: 6.5 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.001924/0.001924, allocations: 183.9 kB / 17.34 MB, free: 5.758 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.361/1.361, allocations: 222.9 MB / 241 MB, free: 15.22 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.05814/0.05814, allocations: 12.05 MB / 303.3 MB, free: 3.121 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SDF master/package.mo): time 0.0004975/0.0004975, allocations: 23.97 kB / 356.3 MB, free: 13.99 MB / 302.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 1.3.2/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/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/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/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/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/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/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.3.2/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/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/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/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/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/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/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/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/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/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.3.2/package.mo): time 1.536/1.536, allocations: 268.2 MB / 0.6617 GB, free: 2.633 MB / 478.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002292/0.002292, allocations: 111.8 kB / 0.8881 GB, free: 4.48 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5721/0.5744, allocations: 108.4 MB / 0.9939 GB, free: 11.96 MB / 0.6857 GB Notification: Performance of NFInst.instantiate(AixLib.Utilities.Math.Functions.Examples.Factorial): time 0.001484/0.5759, allocations: 0.5713 MB / 0.9944 GB, free: 11.54 MB / 0.6857 GB Notification: Performance of NFInst.instExpressions: time 0.000221/0.5762, allocations: 53.88 kB / 0.9945 GB, free: 11.49 MB / 0.6857 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.839e-05/0.5762, allocations: 1.625 kB / 0.9945 GB, free: 11.49 MB / 0.6857 GB Notification: Performance of NFTyping.typeComponents: time 1.111e-05/0.5762, allocations: 0 / 0.9945 GB, free: 11.49 MB / 0.6857 GB Notification: Performance of NFTyping.typeBindings: time 6.122e-06/0.5762, allocations: 0 / 0.9945 GB, free: 11.49 MB / 0.6857 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001953/0.5764, allocations: 12.56 kB / 0.9945 GB, free: 11.48 MB / 0.6857 GB Notification: Performance of NFFlatten.flatten: time 4.307e-05/0.5765, allocations: 13.34 kB / 0.9945 GB, free: 11.47 MB / 0.6857 GB Notification: Performance of NFFlatten.resolveConnections: time 4.479e-05/0.5765, allocations: 5.312 kB / 0.9945 GB, free: 11.47 MB / 0.6857 GB Notification: Performance of NFEvalConstants.evaluate: time 1.322e-05/0.5766, allocations: 1.125 kB / 0.9945 GB, free: 11.47 MB / 0.6857 GB Notification: Performance of NFSimplifyModel.simplify: time 2.218e-05/0.5766, allocations: 1.125 kB / 0.9945 GB, free: 11.47 MB / 0.6857 GB Notification: Performance of NFPackage.collectConstants: time 1.02e-05/0.5766, allocations: 0 / 0.9945 GB, free: 11.47 MB / 0.6857 GB Notification: Performance of NFFlatten.collectFunctions: time 7.826e-05/0.5767, allocations: 13.73 kB / 0.9945 GB, free: 11.46 MB / 0.6857 GB Notification: Performance of NFScalarize.scalarize: time 1.067e-05/0.5767, allocations: 0 / 0.9945 GB, free: 11.46 MB / 0.6857 GB Notification: Performance of NFVerifyModel.verify: time 2.07e-05/0.5767, allocations: 5.422 kB / 0.9945 GB, free: 11.46 MB / 0.6857 GB Notification: Performance of NFConvertDAE.convert: time 8.717e-05/0.5768, allocations: 10.66 kB / 0.9946 GB, free: 11.45 MB / 0.6857 GB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.5768, allocations: 1.094 kB / 0.9946 GB, free: 11.45 MB / 0.6857 GB Notification: Performance of FrontEnd: time 1.323e-06/0.5768, allocations: 0 / 0.9946 GB, free: 11.45 MB / 0.6857 GB Notification: Performance of Transformations before backend: time 6.192e-06/0.5768, allocations: 4 kB / 0.9946 GB, free: 11.45 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0002663/0.5771, allocations: 320.2 kB / 0.9949 GB, free: 11.09 MB / 0.6857 GB Notification: Performance of prepare preOptimizeDAE: time 4.338e-05/0.5772, allocations: 8.062 kB / 0.9949 GB, free: 11.09 MB / 0.6857 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.693e-05/0.5772, allocations: 2.156 kB / 0.9949 GB, free: 11.09 MB / 0.6857 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.956e-05/0.5773, allocations: 160.4 kB / 0.995 GB, free: 10.89 MB / 0.6857 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.64e-05/0.5773, allocations: 9.641 kB / 0.995 GB, free: 10.89 MB / 0.6857 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.007e-06/0.5773, allocations: 384 / 0.995 GB, free: 10.89 MB / 0.6857 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001095/0.5774, allocations: 34.67 kB / 0.9951 GB, free: 10.85 MB / 0.6857 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.729e-06/0.5774, allocations: 192 / 0.9951 GB, free: 10.85 MB / 0.6857 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.159e-05/0.5774, allocations: 7.938 kB / 0.9951 GB, free: 10.84 MB / 0.6857 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.611e-06/0.5775, allocations: 0 / 0.9951 GB, free: 10.84 MB / 0.6857 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.11e-05/0.5775, allocations: 6.844 kB / 0.9951 GB, free: 10.84 MB / 0.6857 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001237/0.5776, allocations: 151.9 kB / 0.9952 GB, free: 10.64 MB / 0.6857 GB Notification: Performance of preOpt comSubExp (simulation): time 4.854e-05/0.5777, allocations: 19.92 kB / 0.9952 GB, free: 10.62 MB / 0.6857 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.037e-05/0.5777, allocations: 7.797 kB / 0.9953 GB, free: 10.61 MB / 0.6857 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00017/0.5779, allocations: 84.09 kB / 0.9953 GB, free: 10.52 MB / 0.6857 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.259e-05/0.5779, allocations: 38.56 kB / 0.9954 GB, free: 10.47 MB / 0.6857 GB Notification: Performance of pre-optimization done (n=2): time 1.393e-06/0.5779, allocations: 1.125 kB / 0.9954 GB, free: 10.47 MB / 0.6857 GB Notification: Performance of matching and sorting (n=2): time 0.000168/0.5781, allocations: 42.98 kB / 0.9954 GB, free: 10.43 MB / 0.6857 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.933e-05/0.5781, allocations: 55.39 kB / 0.9955 GB, free: 10.36 MB / 0.6857 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.978e-05/0.5782, allocations: 93.86 kB / 0.9956 GB, free: 10.26 MB / 0.6857 GB Notification: Performance of collectPreVariables (initialization): time 8.937e-06/0.5782, allocations: 25.7 kB / 0.9956 GB, free: 10.23 MB / 0.6857 GB Notification: Performance of collectInitialEqns (initialization): time 1.553e-05/0.5782, allocations: 81.39 kB / 0.9957 GB, free: 10.15 MB / 0.6857 GB Notification: Performance of collectInitialBindings (initialization): time 2.157e-05/0.5782, allocations: 3.953 kB / 0.9957 GB, free: 10.14 MB / 0.6857 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.715e-05/0.5783, allocations: 16.69 kB / 0.9957 GB, free: 10.12 MB / 0.6857 GB Notification: Performance of setup shared object (initialization): time 5.541e-05/0.5783, allocations: 311.9 kB / 0.996 GB, free: 9.812 MB / 0.6857 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.551e-05/0.5783, allocations: 5.125 kB / 0.996 GB, free: 9.809 MB / 0.6857 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.745e-06/0.5784, allocations: 2.438 kB / 0.996 GB, free: 9.809 MB / 0.6857 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.438e-05/0.5784, allocations: 13.53 kB / 0.996 GB, free: 9.797 MB / 0.6857 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.5784, allocations: 5.188 kB / 0.996 GB, free: 9.793 MB / 0.6857 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.387e-05/0.5785, allocations: 41.73 kB / 0.996 GB, free: 9.754 MB / 0.6857 GB Notification: Performance of prepare postOptimizeDAE: time 1.509e-05/0.5785, allocations: 9.656 kB / 0.996 GB, free: 9.75 MB / 0.6857 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.789e-06/0.5785, allocations: 0 / 0.996 GB, free: 9.75 MB / 0.6857 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.515e-05/0.5785, allocations: 3.938 kB / 0.9961 GB, free: 9.746 MB / 0.6857 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.373e-05/0.5786, allocations: 6.766 kB / 0.9961 GB, free: 9.742 MB / 0.6857 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.138e-05/0.5786, allocations: 1.062 kB / 0.9961 GB, free: 9.742 MB / 0.6857 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.548e-05/0.5786, allocations: 0 / 0.9961 GB, free: 9.742 MB / 0.6857 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.891e-06/0.5786, allocations: 1.656 kB / 0.9961 GB, free: 9.742 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 (n,fac) * Number of discrete states: 0 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.271e-05/0.5787, allocations: 110.8 kB / 0.9962 GB, free: 9.629 MB / 0.6857 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.642e-06/0.5787, allocations: 0 / 0.9962 GB, free: 9.629 MB / 0.6857 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.322e-05/0.5788, allocations: 52.75 kB / 0.9962 GB, free: 9.578 MB / 0.6857 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.637e-06/0.5788, allocations: 3.938 kB / 0.9962 GB, free: 9.574 MB / 0.6857 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.41e-07/0.5788, allocations: 0 / 0.9962 GB, free: 9.574 MB / 0.6857 GB Notification: Performance of postOpt removeConstants (simulation): time 2.379e-05/0.5788, allocations: 82.52 kB / 0.9963 GB, free: 9.477 MB / 0.6857 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.055e-05/0.5789, allocations: 0 / 0.9963 GB, free: 9.477 MB / 0.6857 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.142e-05/0.5789, allocations: 1.562 kB / 0.9963 GB, free: 9.477 MB / 0.6857 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.743e-05/0.5789, allocations: 5.812 kB / 0.9963 GB, free: 9.473 MB / 0.6857 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 7.33e-05/0.579, allocations: 112 kB / 0.9964 GB, free: 9.363 MB / 0.6857 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 9.133e-05/0.5791, allocations: 218.9 kB / 0.9966 GB, free: 9.141 MB / 0.6857 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 2.27e-05/0.5791, allocations: 7.656 kB / 0.9966 GB, free: 9.137 MB / 0.6857 GB Notification: Performance of sorting global known variables: time 1.386e-05/0.5791, allocations: 75.28 kB / 0.9967 GB, free: 9.062 MB / 0.6857 GB Notification: Performance of Backend: time 2.6e-07/0.5791, allocations: 0 / 0.9967 GB, free: 9.062 MB / 0.6857 GB Notification: Performance of simCode: created initialization part: time 0.0003983/0.5795, allocations: 88.02 kB / 0.9968 GB, free: 8.992 MB / 0.6857 GB Notification: Performance of SimCode: time 0.0002401/0.5798, allocations: 0.5364 MB / 0.9973 GB, free: 8.414 MB / 0.6857 GB Notification: Performance of Templates: time 0.002329/0.5821, allocations: 354 kB / 0.9976 GB, free: 8.23 MB / 0.6857 GB make -j1 -f AixLib_AixLib.Utilities.Math.Functions.Examples.Factorial.makefile (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 & ./AixLib_AixLib.Utilities.Math.Functions.Examples.Factorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > AixLib_AixLib.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1)