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.001056/0.001056, 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.001399/0.001399, 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.9019/0.9019, 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.7081/0.7081, allocations: 154.5 MB / 413.7 MB, free: 0.832 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 1.533e-06/1.533e-06, allocations: 0 / 0.6181 GB, free: 13.67 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.642e-05/1.795e-05, allocations: 5.094 kB / 0.6181 GB, free: 13.66 MB / 0.5886 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.Factorial): time 0.00105/0.001067, allocations: 0.5916 MB / 0.6187 GB, free: 13.07 MB / 0.5886 GB Notification: Performance of NFInst.instExpressions: time 0.0003978/0.001465, allocations: 43.81 kB / 0.6187 GB, free: 13.03 MB / 0.5886 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.973e-05/0.001485, allocations: 4 kB / 0.6187 GB, free: 13.02 MB / 0.5886 GB Notification: Performance of NFTyping.typeComponents: time 1.757e-05/0.001503, allocations: 0 / 0.6187 GB, free: 13.02 MB / 0.5886 GB Notification: Performance of NFTyping.typeBindings: time 6.883e-06/0.00151, allocations: 0 / 0.6187 GB, free: 13.02 MB / 0.5886 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002535/0.001763, allocations: 19.86 kB / 0.6187 GB, free: 13 MB / 0.5886 GB Notification: Performance of NFFlatten.flatten: time 4.766e-05/0.001811, allocations: 4 kB / 0.6187 GB, free: 13 MB / 0.5886 GB Notification: Performance of NFFlatten.resolveConnections: time 4.489e-05/0.001856, allocations: 3.984 kB / 0.6188 GB, free: 13 MB / 0.5886 GB Notification: Performance of NFEvalConstants.evaluate: time 2.722e-05/0.001883, allocations: 0 / 0.6188 GB, free: 13 MB / 0.5886 GB Notification: Performance of NFSimplifyModel.simplify: time 2.545e-05/0.001908, allocations: 4 kB / 0.6188 GB, free: 12.99 MB / 0.5886 GB Notification: Performance of NFPackage.collectConstants: time 1.237e-05/0.001921, allocations: 0 / 0.6188 GB, free: 12.99 MB / 0.5886 GB Notification: Performance of NFFlatten.collectFunctions: time 7.975e-05/0.002, allocations: 11.98 kB / 0.6188 GB, free: 12.98 MB / 0.5886 GB Notification: Performance of NFScalarize.scalarize: time 9.788e-06/0.00201, allocations: 0 / 0.6188 GB, free: 12.98 MB / 0.5886 GB Notification: Performance of NFVerifyModel.verify: time 1.501e-05/0.002025, allocations: 4 kB / 0.6188 GB, free: 12.98 MB / 0.5886 GB Notification: Performance of NFConvertDAE.convert: time 9.814e-05/0.002123, allocations: 19.91 kB / 0.6188 GB, free: 12.96 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 5.049e-06/0.002128, allocations: 4 kB / 0.6188 GB, free: 12.95 MB / 0.5886 GB Notification: Performance of FrontEnd: time 1.723e-06/0.00213, allocations: 0 / 0.6188 GB, free: 12.95 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 5.33e-06/0.002135, 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.0002608/0.002396, allocations: 242.4 kB / 0.619 GB, free: 12.68 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 4.169e-05/0.002438, allocations: 9.469 kB / 0.619 GB, free: 12.68 MB / 0.5886 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.508e-05/0.002473, allocations: 38.73 kB / 0.6191 GB, free: 12.63 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.572e-05/0.002499, allocations: 0.9375 kB / 0.6191 GB, free: 12.63 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.701e-05/0.002556, allocations: 101.8 kB / 0.6192 GB, free: 12.5 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.016e-05/0.002566, allocations: 384 / 0.6192 GB, free: 12.5 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.043e-06/0.002573, allocations: 4.375 kB / 0.6192 GB, free: 12.5 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.551e-05/0.002658, allocations: 38.19 kB / 0.6192 GB, free: 12.46 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.951e-06/0.002664, allocations: 192 / 0.6192 GB, free: 12.46 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.324e-06/0.002672, allocations: 4.375 kB / 0.6192 GB, free: 12.45 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.15e-06/0.002677, allocations: 8.125 kB / 0.6192 GB, free: 12.45 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.966e-05/0.002706, allocations: 0 / 0.6192 GB, free: 12.45 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001053/0.002812, allocations: 116.8 kB / 0.6193 GB, free: 12.29 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 4.902e-05/0.002861, allocations: 26.59 kB / 0.6194 GB, free: 12.25 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.467e-05/0.002875, allocations: 8.922 kB / 0.6194 GB, free: 12.24 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001293/0.003005, allocations: 11.94 kB / 0.6194 GB, free: 12.23 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.844e-05/0.003023, allocations: 30.56 kB / 0.6194 GB, free: 12.19 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=2): time 8.31e-07/0.003024, allocations: 0 / 0.6194 GB, free: 12.19 MB / 0.5886 GB Notification: Performance of matching and sorting (n=2): time 0.0001249/0.003149, allocations: 41.69 kB / 0.6194 GB, free: 12.14 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.177e-05/0.003181, allocations: 59.34 kB / 0.6195 GB, free: 12.07 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.86e-05/0.003209, allocations: 89.86 kB / 0.6196 GB, free: 11.98 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 9.999e-06/0.003219, allocations: 25.7 kB / 0.6196 GB, free: 11.95 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 2.181e-05/0.003241, allocations: 80.14 kB / 0.6197 GB, free: 11.86 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 1.767e-05/0.003259, allocations: 7.953 kB / 0.6197 GB, free: 11.86 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.771e-05/0.003287, allocations: 13.72 kB / 0.6197 GB, free: 11.84 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 7.563e-05/0.003362, allocations: 322.9 kB / 0.62 GB, free: 11.51 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.287e-05/0.003375, allocations: 4 kB / 0.62 GB, free: 11.51 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.324e-06/0.003382, allocations: 3.938 kB / 0.62 GB, free: 11.5 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.846e-05/0.003411, allocations: 12.86 kB / 0.62 GB, free: 11.49 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.003413, allocations: 4 kB / 0.62 GB, free: 11.48 MB / 0.5886 GB Notification: Performance of matching and sorting (n=2) (initialization): time 4.469e-05/0.003458, allocations: 45.62 kB / 0.6201 GB, free: 11.43 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.174e-05/0.00347, allocations: 4 kB / 0.6201 GB, free: 11.43 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.608e-06/0.003474, allocations: 0 / 0.6201 GB, free: 11.43 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.127e-05/0.003486, allocations: 0 / 0.6201 GB, free: 11.43 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.184e-05/0.003538, allocations: 4.094 kB / 0.6201 GB, free: 11.43 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.27e-06/0.003543, allocations: 7.938 kB / 0.6201 GB, free: 11.42 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.946e-06/0.003552, allocations: 0 / 0.6201 GB, free: 11.42 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.878e-06/0.003556, allocations: 0 / 0.6201 GB, free: 11.42 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.283e-05/0.003608, allocations: 114.8 kB / 0.6202 GB, free: 11.3 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.537e-06/0.003612, allocations: 0 / 0.6202 GB, free: 11.3 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.088e-05/0.003683, allocations: 44.84 kB / 0.6203 GB, free: 11.24 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.743e-06/0.003685, allocations: 0 / 0.6203 GB, free: 11.24 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.48e-06/0.00369, allocations: 3.938 kB / 0.6203 GB, free: 11.24 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.314e-06/0.003692, allocations: 0 / 0.6203 GB, free: 11.24 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.045e-05/0.003753, allocations: 124.8 kB / 0.6204 GB, free: 11.07 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.755e-06/0.003756, allocations: 4 kB / 0.6204 GB, free: 11.07 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.38e-05/0.003769, allocations: 4 kB / 0.6204 GB, free: 11.07 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.823e-06/0.003771, allocations: 0 / 0.6204 GB, free: 11.07 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.819e-06/0.003776, allocations: 0 / 0.6204 GB, free: 11.07 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.01e-07/0.003777, allocations: 0 / 0.6204 GB, free: 11.07 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.003778, allocations: 3.938 kB / 0.6204 GB, free: 11.06 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.825e-05/0.003827, allocations: 69.06 kB / 0.6205 GB, free: 10.98 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 3.456e-06/0.00383, allocations: 0 / 0.6205 GB, free: 10.98 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.995e-06/0.003838, allocations: 0 / 0.6205 GB, free: 10.98 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.591e-06/0.003844, allocations: 4 kB / 0.6205 GB, free: 10.97 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.719e-05/0.003871, allocations: 15.95 kB / 0.6205 GB, free: 10.96 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.743e-06/0.003873, allocations: 0 / 0.6205 GB, free: 10.96 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 2.079e-05/0.003893, allocations: 75.28 kB / 0.6205 GB, free: 10.88 MB / 0.5886 GB Notification: Performance of sort global known variables: time 4e-08/0.003894, allocations: 0 / 0.6205 GB, free: 10.88 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.000125/0.004019, allocations: 4 kB / 0.6205 GB, free: 10.88 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.0002817/0.0043, allocations: 0.5968 MB / 0.6211 GB, free: 10.25 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 6.82e-05/0.004368, allocations: 8 kB / 0.6211 GB, free: 10.25 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.00437, allocations: 0 / 0.6211 GB, free: 10.25 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 1.107e-05/0.004382, allocations: 16.03 kB / 0.6212 GB, free: 10.23 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000101/0.004483, allocations: 9.953 kB / 0.6212 GB, free: 10.22 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002751/0.004758, allocations: 106.7 kB / 0.6213 GB, free: 10.08 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.976e-05/0.004797, allocations: 63.28 kB / 0.6213 GB, free: 9.996 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 1.072e-05/0.004808, allocations: 0 / 0.6213 GB, free: 9.996 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.303e-05/0.004831, allocations: 8.5 kB / 0.6213 GB, free: 9.984 MB / 0.5886 GB Notification: Performance of SimCode: time 3.4e-07/0.004832, allocations: 0 / 0.6213 GB, free: 9.984 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01679/0.02162, allocations: 1.706 MB / 0.623 GB, free: 8.414 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.149/7.171, allocations: 12.56 kB / 0.623 GB, free: 8.406 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 & /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: 9.80861762072891] Failed to read output from testmodel.py, exit status != 0: 7.2480063028633595 7.256352478 7.252462825 Calling exit ...