Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.Utilities.Math.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.0007759/0.0007759, allocations: 80.44 kB / 19.17 MB, free: 0.7422 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.0007907/0.0007907, allocations: 169.9 kB / 22.46 MB, free: 2.105 MB / 18.57 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 0.9192/0.9192, allocations: 177.1 MB / 202.8 MB, free: 5.727 MB / 186.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.7387/0.7387, allocations: 154.5 MB / 413.7 MB, free: 0.8164 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/Utilities/Cryptographics/BaseClasses/sha.mo:2:1-19:8:writable] Warning: External function annotation should occur on the external-clause, not on the function. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/Utilities/File/sha2.mo:2:1-9:9:writable] Warning: External function annotation should occur on the external-clause, not on the function. " [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.Examples.Factorial,fileNamePrefix="IDEAS_dev_IDEAS_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Math.Examples.Factorial,fileNamePrefix="IDEAS_dev_IDEAS_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.255e-06/2.255e-06, allocations: 4 kB / 0.618 GB, free: 12.59 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.884e-05/2.109e-05, allocations: 3.469 kB / 0.618 GB, free: 12.58 MB / 0.5417 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.Factorial): time 0.001976/0.001997, allocations: 1.538 MB / 0.6195 GB, free: 11.04 MB / 0.5417 GB Notification: Performance of NFInst.instExpressions: time 0.0003063/0.002303, allocations: 131.6 kB / 0.6197 GB, free: 10.91 MB / 0.5417 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.627e-05/0.002339, allocations: 0 / 0.6197 GB, free: 10.91 MB / 0.5417 GB Notification: Performance of NFTyping.typeComponents: time 2.651e-05/0.002366, allocations: 0 / 0.6197 GB, free: 10.91 MB / 0.5417 GB Notification: Performance of NFTyping.typeBindings: time 3.961e-05/0.002406, allocations: 7.922 kB / 0.6197 GB, free: 10.9 MB / 0.5417 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004265/0.002832, allocations: 19.97 kB / 0.6197 GB, free: 10.88 MB / 0.5417 GB Notification: Performance of NFFlatten.flatten: time 6.325e-05/0.002895, allocations: 35.86 kB / 0.6197 GB, free: 10.85 MB / 0.5417 GB Notification: Performance of NFFlatten.resolveConnections: time 8.708e-05/0.002982, allocations: 4 kB / 0.6197 GB, free: 10.84 MB / 0.5417 GB Notification: Performance of NFEvalConstants.evaluate: time 4.724e-05/0.00303, allocations: 19.98 kB / 0.6198 GB, free: 10.82 MB / 0.5417 GB Notification: Performance of NFSimplifyModel.simplify: time 4.028e-05/0.00307, allocations: 11.97 kB / 0.6198 GB, free: 10.81 MB / 0.5417 GB Notification: Performance of NFPackage.collectConstants: time 1.295e-05/0.003083, allocations: 4 kB / 0.6198 GB, free: 10.81 MB / 0.5417 GB Notification: Performance of NFFlatten.collectFunctions: time 5.655e-05/0.003139, allocations: 15.98 kB / 0.6198 GB, free: 10.79 MB / 0.5417 GB Notification: Performance of NFScalarize.scalarize: time 1.142e-05/0.003151, allocations: 7.938 kB / 0.6198 GB, free: 10.79 MB / 0.5417 GB Notification: Performance of NFVerifyModel.verify: time 1.769e-05/0.003169, allocations: 8 kB / 0.6198 GB, free: 10.78 MB / 0.5417 GB Notification: Performance of NFConvertDAE.convert: time 0.0001135/0.003282, allocations: 39.81 kB / 0.6198 GB, free: 10.74 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 1.994e-06/0.003284, allocations: 0 / 0.6198 GB, free: 10.74 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.342e-06/0.003285, allocations: 4 kB / 0.6198 GB, free: 10.73 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 3.296e-06/0.003289, allocations: 0 / 0.6198 GB, free: 10.73 MB / 0.5417 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.0003312/0.00362, allocations: 278.3 kB / 0.6201 GB, free: 10.43 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 3.557e-05/0.003655, allocations: 9.469 kB / 0.6201 GB, free: 10.42 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.528e-05/0.003681, allocations: 30.75 kB / 0.6201 GB, free: 10.38 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.265e-05/0.003703, allocations: 12.83 kB / 0.6202 GB, free: 10.37 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.513e-05/0.003768, allocations: 101.8 kB / 0.6203 GB, free: 10.25 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.852e-05/0.003787, allocations: 4.375 kB / 0.6203 GB, free: 10.24 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.917e-06/0.003796, allocations: 4.375 kB / 0.6203 GB, free: 10.24 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001257/0.003922, allocations: 58.22 kB / 0.6203 GB, free: 10.18 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.331e-06/0.003928, allocations: 192 / 0.6203 GB, free: 10.18 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.426e-06/0.003936, allocations: 4.375 kB / 0.6203 GB, free: 10.17 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.21e-06/0.003942, allocations: 4.125 kB / 0.6203 GB, free: 10.17 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001002/0.004042, allocations: 47.89 kB / 0.6204 GB, free: 10.12 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002894/0.004331, allocations: 224 kB / 0.6206 GB, free: 9.859 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000209/0.00454, allocations: 54.53 kB / 0.6206 GB, free: 9.797 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.079e-05/0.004591, allocations: 24.91 kB / 0.6207 GB, free: 9.77 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 7.255e-05/0.004664, allocations: 15.92 kB / 0.6207 GB, free: 9.754 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.725e-05/0.004681, allocations: 42.44 kB / 0.6207 GB, free: 9.703 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=3): time 1.032e-06/0.004682, allocations: 0 / 0.6207 GB, free: 9.703 MB / 0.5417 GB Notification: Performance of matching and sorting (n=3): time 0.0002307/0.004913, allocations: 89.62 kB / 0.6208 GB, free: 9.609 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.868e-05/0.004941, allocations: 51.41 kB / 0.6209 GB, free: 9.547 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.011e-05/0.004991, allocations: 101.9 kB / 0.621 GB, free: 9.438 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 1.016e-05/0.005002, allocations: 25.7 kB / 0.621 GB, free: 9.406 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 3.452e-05/0.005036, allocations: 84.14 kB / 0.6211 GB, free: 9.32 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 1.39e-05/0.00505, allocations: 11.92 kB / 0.6211 GB, free: 9.309 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.539e-05/0.005075, allocations: 17.72 kB / 0.6211 GB, free: 9.285 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 6.786e-05/0.005143, allocations: 318.8 kB / 0.6214 GB, free: 8.965 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.104e-05/0.005194, allocations: 15.97 kB / 0.6214 GB, free: 8.949 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.124e-05/0.005235, allocations: 19.98 kB / 0.6214 GB, free: 8.93 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.871e-05/0.005324, allocations: 53.22 kB / 0.6215 GB, free: 8.875 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.774e-06/0.005326, allocations: 0 / 0.6215 GB, free: 8.875 MB / 0.5417 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001148/0.005441, allocations: 85.53 kB / 0.6216 GB, free: 8.785 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.194e-05/0.005453, allocations: 8 kB / 0.6216 GB, free: 8.777 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.019e-06/0.005458, allocations: 0 / 0.6216 GB, free: 8.777 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.084e-05/0.005469, allocations: 0 / 0.6216 GB, free: 8.777 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.555e-05/0.005514, allocations: 11.98 kB / 0.6216 GB, free: 8.766 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.358e-06/0.005518, allocations: 0 / 0.6216 GB, free: 8.766 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.552e-05/0.005544, allocations: 7.984 kB / 0.6216 GB, free: 8.758 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.049e-06/0.005549, allocations: 7.938 kB / 0.6216 GB, free: 8.75 MB / 0.5417 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 5.404e-05/0.005603, allocations: 114.8 kB / 0.6217 GB, free: 8.629 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.247e-05/0.005616, allocations: 7.938 kB / 0.6217 GB, free: 8.621 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001481/0.005764, allocations: 85.27 kB / 0.6218 GB, free: 8.523 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.953e-06/0.005766, allocations: 4 kB / 0.6218 GB, free: 8.52 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.005769, allocations: 0 / 0.6218 GB, free: 8.52 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.204e-06/0.005772, allocations: 0 / 0.6218 GB, free: 8.52 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.828e-05/0.00587, allocations: 128.8 kB / 0.6219 GB, free: 8.352 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.005871, allocations: 0 / 0.6219 GB, free: 8.352 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.421e-05/0.005905, allocations: 15.92 kB / 0.6219 GB, free: 8.336 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.754e-06/0.005907, allocations: 4 kB / 0.6219 GB, free: 8.332 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.114e-06/0.005914, allocations: 3.984 kB / 0.6219 GB, free: 8.328 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-06/0.005915, allocations: 0 / 0.6219 GB, free: 8.328 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.005916, allocations: 0 / 0.6219 GB, free: 8.328 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001306/0.006047, allocations: 167.5 kB / 0.6221 GB, free: 8.148 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 8.857e-06/0.006056, allocations: 15.89 kB / 0.6221 GB, free: 8.133 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.397e-06/0.006065, allocations: 0 / 0.6221 GB, free: 8.133 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.632e-05/0.006111, allocations: 11.98 kB / 0.6221 GB, free: 8.121 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.023e-05/0.006152, allocations: 3.984 kB / 0.6221 GB, free: 8.117 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.957e-06/0.006156, allocations: 8 kB / 0.6221 GB, free: 8.109 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 2.4e-05/0.00618, allocations: 79.28 kB / 0.6222 GB, free: 8.031 MB / 0.5417 GB Notification: Performance of sort global known variables: time 6e-08/0.00618, allocations: 7.938 kB / 0.6222 GB, free: 8.023 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0001492/0.006329, allocations: 4 kB / 0.6222 GB, free: 8.02 MB / 0.5417 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.y,rea2Int.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (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 Backend phase and start with SimCode phase: time 0.0003484/0.006677, allocations: 0.7045 MB / 0.6229 GB, free: 7.285 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0001313/0.006809, allocations: 47.94 kB / 0.623 GB, free: 7.238 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.092e-06/0.00681, allocations: 4 kB / 0.623 GB, free: 7.234 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 4.564e-05/0.006855, allocations: 24.41 kB / 0.623 GB, free: 7.211 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001946/0.00705, allocations: 0 / 0.623 GB, free: 7.211 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003256/0.007376, allocations: 150.4 kB / 0.6231 GB, free: 7.023 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.957e-05/0.007415, allocations: 67.22 kB / 0.6232 GB, free: 6.938 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 2.252e-05/0.007438, allocations: 11.94 kB / 0.6232 GB, free: 6.926 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.094e-05/0.007469, allocations: 12.59 kB / 0.6232 GB, free: 6.914 MB / 0.5417 GB Notification: Performance of SimCode: time 4.11e-07/0.007469, allocations: 0 / 0.6232 GB, free: 6.914 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01595/0.02342, allocations: 2.272 MB / 0.6254 GB, free: 4.785 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.96/6.983, allocations: 0.7031 kB / 0.6254 GB, free: 4.785 MB / 0.5417 GB " [Timeout remaining time 653] (rm -f IDEAS_dev_IDEAS.Utilities.Math.Examples.Factorial.pipe ; mkfifo IDEAS_dev_IDEAS.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Utilities.Math.Examples.Factorial.pipe >> ../files/IDEAS_dev_IDEAS.Utilities.Math.Examples.Factorial.sim & python3 -m fmpy simulate --output-file IDEAS_dev_IDEAS.Utilities.Math.Examples.Factorial_res.csv --start-time 0 --stop-time 13 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0052 IDEAS_dev_IDEAS_Utilities_Math_Examples_Factorial.fmu > IDEAS_dev_IDEAS.Utilities.Math.Examples.Factorial.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 9.767138574272394] Failed to read output from testmodel.py, exit status != 0: 7.063899012282491 7.074555595 7.069536829 Calling exit ...