Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.Factorial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.000741/0.000741, allocations: 109.9 kB / 18.93 MB, free: 1.266 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0008334/0.0008334, allocations: 218.3 kB / 22.26 MB, free: 3.699 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.021/1.021, allocations: 230.6 MB / 256 MB, free: 9.824 MB / 202.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/package.mo", uses=false) [Timeout 180] "[/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/Examples/PPD12/Structure.mo:531:21-531:190:writable] Warning: Lexer treating \\ as \\\\, since \\e is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/Examples/PPD12/Structure.mo:531:21-531:198:writable] Warning: Lexer treating \\ as \\\\, since \\< is not a valid Modelica escape sequence. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/package.mo): time 0.826/0.826, allocations: 203.8 MB / 0.5042 GB, free: 10.77 MB / 410.7 MB " [Timeout remaining time 179] Using package IDEAS with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(IDEAS.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="IDEAS_dev_IDEAS_Utilities_Math_Functions_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="IDEAS_dev_IDEAS_Utilities_Math_Functions_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: IDEAS requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0009741/0.0009741, allocations: 69.98 kB / 0.7183 GB, free: 4.324 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5879/0.5888, allocations: 102 MB / 0.8179 GB, free: 1.27 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.Factorial): time 0.001372/0.5902, allocations: 0.5922 MB / 0.8185 GB, free: 0.9023 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0002595/0.5905, allocations: 52.38 kB / 0.8185 GB, free: 0.8672 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.002e-05/0.5905, allocations: 1.688 kB / 0.8185 GB, free: 0.8672 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 1.761e-05/0.5905, allocations: 0 / 0.8185 GB, free: 0.8672 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 8.185e-06/0.5905, allocations: 0 / 0.8185 GB, free: 0.8672 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002697/0.5908, allocations: 16.23 kB / 0.8185 GB, free: 0.8594 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 5.952e-05/0.5908, allocations: 7.875 kB / 0.8186 GB, free: 0.8555 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 4.551e-05/0.5909, allocations: 5.172 kB / 0.8186 GB, free: 0.8516 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 1.767e-05/0.5909, allocations: 0 / 0.8186 GB, free: 0.8516 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 2.416e-05/0.5909, allocations: 4.609 kB / 0.8186 GB, free: 0.8477 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 1.293e-05/0.5909, allocations: 7.266 kB / 0.8186 GB, free: 0.8438 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 8.609e-05/0.591, allocations: 13.5 kB / 0.8186 GB, free: 0.8359 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 1.05e-05/0.591, allocations: 3.938 kB / 0.8186 GB, free: 0.832 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 2.147e-05/0.5911, allocations: 1.094 kB / 0.8186 GB, free: 0.832 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 9.946e-05/0.5912, allocations: 12.7 kB / 0.8186 GB, free: 0.832 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 4.157e-06/0.5912, allocations: 0 / 0.8186 GB, free: 0.832 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.733e-06/0.5912, allocations: 0 / 0.8186 GB, free: 0.832 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 7.203e-06/0.5912, allocations: 0 / 0.8186 GB, free: 0.832 MB / 0.6042 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.0002192/0.5914, allocations: 240.5 kB / 0.8188 GB, free: 0.5703 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.943e-05/0.5914, allocations: 10.22 kB / 0.8188 GB, free: 0.5703 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.719e-05/0.5915, allocations: 31.55 kB / 0.8189 GB, free: 0.5312 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.634e-05/0.5915, allocations: 6.953 kB / 0.8189 GB, free: 0.5273 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 3.935e-05/0.5915, allocations: 103.1 kB / 0.819 GB, free: 412 kB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.335e-05/0.5915, allocations: 1.078 kB / 0.819 GB, free: 412 kB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.141e-05/0.5916, allocations: 1.688 kB / 0.819 GB, free: 412 kB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001093/0.5917, allocations: 40.12 kB / 0.819 GB, free: 372 kB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.117e-06/0.5917, allocations: 7.922 kB / 0.819 GB, free: 364 kB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.135e-06/0.5917, allocations: 4 kB / 0.819 GB, free: 360 kB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.591e-06/0.5917, allocations: 0 / 0.819 GB, free: 360 kB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.749e-05/0.5917, allocations: 8.703 kB / 0.819 GB, free: 356 kB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001017/0.5918, allocations: 120.5 kB / 0.8191 GB, free: 196 kB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 4.842e-05/0.5919, allocations: 20.73 kB / 0.8192 GB, free: 172 kB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.784e-05/0.5919, allocations: 8.594 kB / 0.8192 GB, free: 164 kB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001697/0.5921, allocations: 8.016 kB / 0.8192 GB, free: 160 kB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.055e-05/0.5921, allocations: 41.27 kB / 0.8192 GB, free: 112 kB / 0.6042 GB Notification: Performance of pre-optimization done (n=2): time 1.002e-06/0.5921, allocations: 0 / 0.8192 GB, free: 112 kB / 0.6042 GB Notification: Performance of matching and sorting (n=2): time 0.000148/0.5922, allocations: 41.92 kB / 0.8193 GB, free: 76 kB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.613e-05/0.5923, allocations: 56.16 kB / 0.8193 GB, free: 8 kB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.212e-05/0.5923, allocations: 89.86 kB / 0.8194 GB, free: 15.91 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.21e-05/0.5923, allocations: 25.7 kB / 0.8194 GB, free: 15.88 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 2.754e-05/0.5924, allocations: 80.75 kB / 0.8195 GB, free: 15.8 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 2.259e-05/0.5924, allocations: 128 / 0.8195 GB, free: 15.8 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.867e-05/0.5924, allocations: 19 kB / 0.8195 GB, free: 15.78 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 0.0001013/0.5925, allocations: 315.5 kB / 0.8198 GB, free: 15.46 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.996e-05/0.5925, allocations: 6.062 kB / 0.8198 GB, free: 15.46 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.999e-06/0.5925, allocations: 2.984 kB / 0.8198 GB, free: 15.46 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.314e-05/0.5926, allocations: 14.58 kB / 0.8198 GB, free: 15.45 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.5926, allocations: 0 / 0.8198 GB, free: 15.45 MB / 0.6198 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.816e-05/0.5927, allocations: 43.2 kB / 0.8199 GB, free: 15.41 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.937e-05/0.5927, allocations: 14.02 kB / 0.8199 GB, free: 15.4 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.696e-06/0.5927, allocations: 3.938 kB / 0.8199 GB, free: 15.4 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.321e-05/0.5927, allocations: 0 / 0.8199 GB, free: 15.4 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.61e-05/0.5928, allocations: 3.875 kB / 0.8199 GB, free: 15.4 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.143e-06/0.5928, allocations: 0.6562 kB / 0.8199 GB, free: 15.4 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.015e-05/0.5928, allocations: 1.969 kB / 0.8199 GB, free: 15.4 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.701e-06/0.5928, allocations: 4 kB / 0.8199 GB, free: 15.39 MB / 0.6198 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 6.362e-05/0.5929, allocations: 112.1 kB / 0.82 GB, free: 15.28 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.903e-06/0.5929, allocations: 4.797 kB / 0.82 GB, free: 15.27 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001152/0.593, allocations: 55.73 kB / 0.8201 GB, free: 15.22 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-06/0.593, allocations: 0 / 0.8201 GB, free: 15.22 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/0.593, allocations: 0 / 0.8201 GB, free: 15.22 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.11e-06/0.593, allocations: 4.078 kB / 0.8201 GB, free: 15.22 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.996e-05/0.5931, allocations: 125.4 kB / 0.8202 GB, free: 15.06 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.02e-07/0.5931, allocations: 0 / 0.8202 GB, free: 15.06 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.571e-05/0.5931, allocations: 3.5 kB / 0.8202 GB, free: 15.06 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.026e-06/0.5931, allocations: 7.031 kB / 0.8202 GB, free: 15.06 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.568e-06/0.5931, allocations: 4.5 kB / 0.8202 GB, free: 15.05 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.11e-07/0.5931, allocations: 0 / 0.8202 GB, free: 15.05 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.5931, allocations: 4.031 kB / 0.8202 GB, free: 15.05 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.433e-05/0.5932, allocations: 64.28 kB / 0.8203 GB, free: 14.98 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 7.374e-06/0.5932, allocations: 4.344 kB / 0.8203 GB, free: 14.98 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.336e-05/0.5932, allocations: 3.938 kB / 0.8203 GB, free: 14.98 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.402e-06/0.5932, allocations: 1.031 kB / 0.8203 GB, free: 14.98 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.786e-05/0.5933, allocations: 0.6562 kB / 0.8203 GB, free: 14.98 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.084e-06/0.5933, allocations: 1.219 kB / 0.8203 GB, free: 14.98 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0004179/0.5937, allocations: 79.92 kB / 0.8204 GB, free: 14.9 MB / 0.6198 GB Notification: Performance of sort global known variables: time 4e-08/0.5937, allocations: 2.219 kB / 0.8204 GB, free: 14.9 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0001379/0.5938, allocations: 6.219 kB / 0.8204 GB, free: 14.89 MB / 0.6198 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 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003791/0.5942, allocations: 0.5958 MB / 0.821 GB, free: 14.3 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 9.33e-05/0.5943, allocations: 17.11 kB / 0.821 GB, free: 14.29 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.295e-06/0.5943, allocations: 0 / 0.821 GB, free: 14.29 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 1.31e-05/0.5943, allocations: 7.375 kB / 0.821 GB, free: 14.29 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001144/0.5944, allocations: 6 kB / 0.821 GB, free: 14.29 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003101/0.5948, allocations: 114.3 kB / 0.8211 GB, free: 14.15 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001608/0.5949, allocations: 0.672 MB / 0.8218 GB, free: 13.45 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 1.294e-05/0.5949, allocations: 0.6562 kB / 0.8218 GB, free: 13.45 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.543e-05/0.5949, allocations: 10.69 kB / 0.8218 GB, free: 13.45 MB / 0.6198 GB Notification: Performance of SimCode: time 3.61e-07/0.5949, allocations: 7.938 kB / 0.8218 GB, free: 13.44 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01574/0.6107, allocations: 1.164 MB / 0.8229 GB, free: 13.04 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.518/7.128, allocations: 6.969 kB / 0.8229 GB, free: 13.03 MB / 0.6198 GB " [Timeout remaining time 653] (rm -f IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.Factorial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Utilities_Math_Functions_Examples_Factorial_fmu --startTime=0 --stopTime=12.9 --stepSize=0.00516 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Utilities_Math_Functions_Examples_Factorial.fmu > IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 10.200216450029984] Failed to read output from testmodel.py, exit status != 0: 7.20661827782169 7.226372046 6.631820796 Calling exit ...