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.0007964/0.0007964, 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.0008546/0.0008546, 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.9235/0.9235, allocations: 177.1 MB / 202.8 MB, free: 5.734 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.7214/0.7214, allocations: 154.6 MB / 413.7 MB, free: 0.8281 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.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: Performance of FrontEnd - loaded program: time 2.545e-06/2.545e-06, allocations: 0 / 0.6181 GB, free: 13.67 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.23e-05/2.485e-05, allocations: 9.047 kB / 0.6181 GB, free: 13.67 MB / 0.5886 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.Factorial): time 0.001251/0.001275, allocations: 0.5999 MB / 0.6187 GB, free: 13.07 MB / 0.5886 GB Notification: Performance of NFInst.instExpressions: time 0.0002627/0.001538, allocations: 55.72 kB / 0.6187 GB, free: 13.01 MB / 0.5886 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.558e-05/0.001554, allocations: 0 / 0.6187 GB, free: 13.01 MB / 0.5886 GB Notification: Performance of NFTyping.typeComponents: time 1.538e-05/0.001569, allocations: 0 / 0.6187 GB, free: 13.01 MB / 0.5886 GB Notification: Performance of NFTyping.typeBindings: time 6.613e-06/0.001576, allocations: 0 / 0.6187 GB, free: 13.01 MB / 0.5886 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002298/0.001805, allocations: 8 kB / 0.6187 GB, free: 13 MB / 0.5886 GB Notification: Performance of NFFlatten.flatten: time 5.214e-05/0.001858, allocations: 3.984 kB / 0.6188 GB, free: 13 MB / 0.5886 GB Notification: Performance of NFFlatten.resolveConnections: time 4.716e-05/0.001905, allocations: 8 kB / 0.6188 GB, free: 12.99 MB / 0.5886 GB Notification: Performance of NFEvalConstants.evaluate: time 2.927e-05/0.001934, allocations: 0 / 0.6188 GB, free: 12.99 MB / 0.5886 GB Notification: Performance of NFSimplifyModel.simplify: time 2.168e-05/0.001956, allocations: 3.938 kB / 0.6188 GB, free: 12.99 MB / 0.5886 GB Notification: Performance of NFPackage.collectConstants: time 1.266e-05/0.001968, allocations: 4 kB / 0.6188 GB, free: 12.98 MB / 0.5886 GB Notification: Performance of NFFlatten.collectFunctions: time 8.289e-05/0.002051, allocations: 11.98 kB / 0.6188 GB, free: 12.97 MB / 0.5886 GB Notification: Performance of NFScalarize.scalarize: time 1.287e-05/0.002064, allocations: 7.922 kB / 0.6188 GB, free: 12.96 MB / 0.5886 GB Notification: Performance of NFVerifyModel.verify: time 1.468e-05/0.002079, allocations: 0 / 0.6188 GB, free: 12.96 MB / 0.5886 GB Notification: Performance of NFConvertDAE.convert: time 8.497e-05/0.002164, allocations: 11.98 kB / 0.6188 GB, free: 12.95 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 1.754e-06/0.002166, allocations: 0 / 0.6188 GB, free: 12.95 MB / 0.5886 GB Notification: Performance of FrontEnd: time 9.22e-07/0.002166, allocations: 0 / 0.6188 GB, free: 12.95 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 4.078e-06/0.002171, allocations: 0 / 0.6188 GB, free: 12.95 MB / 0.5886 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.0002239/0.002394, allocations: 242.4 kB / 0.619 GB, free: 12.68 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 3.791e-05/0.002432, allocations: 9.469 kB / 0.619 GB, free: 12.68 MB / 0.5886 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.725e-05/0.00246, allocations: 34.75 kB / 0.6191 GB, free: 12.63 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.01e-05/0.00248, allocations: 0.9375 kB / 0.6191 GB, free: 12.63 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.675e-05/0.002536, allocations: 109.8 kB / 0.6192 GB, free: 12.5 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.23e-05/0.002549, allocations: 384 / 0.6192 GB, free: 12.5 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.344e-06/0.002556, allocations: 384 / 0.6192 GB, free: 12.5 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.804e-05/0.002644, allocations: 30.27 kB / 0.6192 GB, free: 12.46 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.795e-06/0.002652, allocations: 192 / 0.6192 GB, free: 12.46 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.814e-06/0.00266, allocations: 384 / 0.6192 GB, free: 12.46 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.261e-06/0.002666, allocations: 8.125 kB / 0.6192 GB, free: 12.46 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.412e-05/0.0027, allocations: 19.91 kB / 0.6192 GB, free: 12.44 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001043/0.002804, allocations: 116.8 kB / 0.6193 GB, free: 12.28 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 4.719e-05/0.002852, allocations: 22.61 kB / 0.6194 GB, free: 12.25 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.567e-05/0.002867, allocations: 8.922 kB / 0.6194 GB, free: 12.24 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001337/0.003001, allocations: 3.984 kB / 0.6194 GB, free: 12.23 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.895e-05/0.00302, allocations: 38.5 kB / 0.6194 GB, free: 12.19 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=2): time 8.11e-07/0.003021, allocations: 0 / 0.6194 GB, free: 12.19 MB / 0.5886 GB Notification: Performance of matching and sorting (n=2): time 0.0001283/0.003149, allocations: 41.64 kB / 0.6195 GB, free: 12.14 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.173e-05/0.003181, allocations: 63.45 kB / 0.6195 GB, free: 12.07 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.938e-05/0.00321, allocations: 89.86 kB / 0.6196 GB, free: 11.97 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 1.303e-05/0.003223, allocations: 33.64 kB / 0.6196 GB, free: 11.93 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 1.791e-05/0.003241, allocations: 80.14 kB / 0.6197 GB, free: 11.85 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 1.633e-05/0.003257, allocations: 3.953 kB / 0.6197 GB, free: 11.84 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.088e-05/0.003278, allocations: 17.72 kB / 0.6197 GB, free: 11.82 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 7.292e-05/0.003351, allocations: 310.8 kB / 0.62 GB, free: 11.51 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.598e-06/0.003361, allocations: 0 / 0.62 GB, free: 11.51 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.953e-06/0.003368, allocations: 4 kB / 0.62 GB, free: 11.5 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.579e-05/0.003394, allocations: 16.84 kB / 0.62 GB, free: 11.48 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.003395, allocations: 4.062 kB / 0.62 GB, free: 11.48 MB / 0.5886 GB Notification: Performance of matching and sorting (n=2) (initialization): time 3.725e-05/0.003432, allocations: 37.64 kB / 0.6201 GB, free: 11.44 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.201e-05/0.003444, allocations: 8 kB / 0.6201 GB, free: 11.43 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.218e-06/0.003449, allocations: 0 / 0.6201 GB, free: 11.43 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.051e-05/0.003459, allocations: 0 / 0.6201 GB, free: 11.43 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.948e-05/0.003509, allocations: 7.984 kB / 0.6201 GB, free: 11.42 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.031e-06/0.003515, allocations: 3.938 kB / 0.6201 GB, free: 11.42 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.544e-06/0.003522, allocations: 0 / 0.6201 GB, free: 11.42 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.981e-06/0.003528, allocations: 4 kB / 0.6201 GB, free: 11.41 MB / 0.5886 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.096e-05/0.003579, allocations: 114.9 kB / 0.6202 GB, free: 11.29 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.327e-06/0.003582, allocations: 0 / 0.6202 GB, free: 11.29 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.041e-05/0.003653, allocations: 48.78 kB / 0.6203 GB, free: 11.23 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.092e-06/0.003654, allocations: 0 / 0.6203 GB, free: 11.23 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.68e-06/0.00366, allocations: 3.938 kB / 0.6203 GB, free: 11.23 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.876e-06/0.003662, allocations: 0 / 0.6203 GB, free: 11.23 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.14e-05/0.003724, allocations: 120.8 kB / 0.6204 GB, free: 11.07 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.993e-06/0.003726, allocations: 4 kB / 0.6204 GB, free: 11.07 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.267e-06/0.003735, allocations: 3.984 kB / 0.6204 GB, free: 11.06 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.154e-06/0.003737, allocations: 4 kB / 0.6204 GB, free: 11.06 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.512e-06/0.003744, allocations: 0 / 0.6204 GB, free: 11.06 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.31e-07/0.003744, allocations: 4.031 kB / 0.6204 GB, free: 11.05 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.003747, allocations: 3.938 kB / 0.6204 GB, free: 11.05 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.745e-05/0.003794, allocations: 61.12 kB / 0.6205 GB, free: 10.97 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 4.228e-06/0.003798, allocations: 4 kB / 0.6205 GB, free: 10.97 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.405e-06/0.003807, allocations: 0 / 0.6205 GB, free: 10.97 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.208e-06/0.003811, allocations: 0 / 0.6205 GB, free: 10.97 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.863e-05/0.003839, allocations: 7.938 kB / 0.6205 GB, free: 10.96 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.254e-06/0.003842, allocations: 7.938 kB / 0.6205 GB, free: 10.95 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 2.032e-05/0.003862, allocations: 79.22 kB / 0.6206 GB, free: 10.88 MB / 0.5886 GB Notification: Performance of sort global known variables: time 5e-08/0.003862, allocations: 3.938 kB / 0.6206 GB, free: 10.87 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.000121/0.003983, allocations: 8.031 kB / 0.6206 GB, free: 10.86 MB / 0.5886 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.0002838/0.004267, allocations: 0.6007 MB / 0.6212 GB, free: 10.23 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 6.296e-05/0.00433, allocations: 4 kB / 0.6212 GB, free: 10.23 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.004331, allocations: 4 kB / 0.6212 GB, free: 10.23 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 9.368e-06/0.004341, allocations: 3.938 kB / 0.6212 GB, free: 10.22 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.802e-05/0.004439, allocations: 11.94 kB / 0.6212 GB, free: 10.21 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002412/0.00468, allocations: 98.72 kB / 0.6213 GB, free: 10.07 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.427e-05/0.004714, allocations: 59.52 kB / 0.6213 GB, free: 9.996 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 1.103e-05/0.004725, allocations: 4 kB / 0.6213 GB, free: 9.992 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.286e-05/0.004748, allocations: 12.5 kB / 0.6213 GB, free: 9.977 MB / 0.5886 GB Notification: Performance of SimCode: time 3.3e-07/0.004749, allocations: 0 / 0.6213 GB, free: 9.977 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01416/0.01891, allocations: 1.702 MB / 0.623 GB, free: 8.406 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.762/6.781, allocations: 17.52 kB / 0.623 GB, free: 8.398 MB / 0.5886 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 & python3 -m fmpy simulate --output-file IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.Factorial_res.csv --start-time 0 --stop-time 12.9 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00516 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: 9.607433997094631] Failed to read output from testmodel.py, exit status != 0: 6.859882130287588 6.869025203 6.8651322949999996 Calling exit ...