Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_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.001362/0.001362, allocations: 99.64 kB / 18.94 MB, free: 2.551 MB / 14.72 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.001736/0.001736, allocations: 217.4 kB / 22.25 MB, free: 4.852 MB / 14.72 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.496/1.496, allocations: 230.6 MB / 256 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8762/0.8762, allocations: 134 MB / 446.4 MB, free: 9.938 MB / 350.1 MB " [Timeout remaining time 179] Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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_IDEAS_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Math.Examples.Factorial,fileNamePrefix="IDEAS_IDEAS_Utilities_Math_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.002032/0.002032, allocations: 67.3 kB / 0.6185 GB, free: 6.891 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1747/0.1767, allocations: 85.93 MB / 0.7024 GB, free: 1.055 MB / 0.5137 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.Factorial): time 0.004081/0.1808, allocations: 1.528 MB / 0.7039 GB, free: 15.51 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.0005568/0.1813, allocations: 120.5 kB / 0.704 GB, free: 15.39 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.682e-05/0.1814, allocations: 0 / 0.704 GB, free: 15.39 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 4.179e-05/0.1814, allocations: 0 / 0.704 GB, free: 15.39 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 6.333e-05/0.1815, allocations: 3.938 kB / 0.704 GB, free: 15.39 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003728/0.1819, allocations: 31.89 kB / 0.704 GB, free: 15.36 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0001101/0.182, allocations: 31.92 kB / 0.7041 GB, free: 15.32 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001341/0.1821, allocations: 11.94 kB / 0.7041 GB, free: 15.31 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 6.807e-05/0.1822, allocations: 19.92 kB / 0.7041 GB, free: 15.29 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 9.646e-05/0.1823, allocations: 15.97 kB / 0.7041 GB, free: 15.28 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 2.224e-05/0.1823, allocations: 4 kB / 0.7041 GB, free: 15.27 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 9.004e-05/0.1824, allocations: 4 kB / 0.7041 GB, free: 15.27 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 2.762e-05/0.1824, allocations: 15.92 kB / 0.7041 GB, free: 15.25 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 3.093e-05/0.1824, allocations: 7.938 kB / 0.7041 GB, free: 15.25 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0001786/0.1826, allocations: 36.17 kB / 0.7042 GB, free: 15.21 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.1826, allocations: 3.938 kB / 0.7042 GB, free: 15.21 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.533e-06/0.1826, allocations: 0 / 0.7042 GB, free: 15.21 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 5.67e-06/0.1826, allocations: 0 / 0.7042 GB, free: 15.21 MB / 0.5294 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.0006305/0.1833, allocations: 274.3 kB / 0.7044 GB, free: 14.91 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 6.29e-05/0.1833, allocations: 8.031 kB / 0.7044 GB, free: 14.9 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.933e-05/0.1834, allocations: 38.75 kB / 0.7045 GB, free: 14.85 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.891e-05/0.1834, allocations: 4.891 kB / 0.7045 GB, free: 14.85 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001469/0.1836, allocations: 106.5 kB / 0.7046 GB, free: 14.72 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.536e-05/0.1836, allocations: 384 / 0.7046 GB, free: 14.72 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.023e-05/0.1836, allocations: 384 / 0.7046 GB, free: 14.72 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002114/0.1838, allocations: 66.16 kB / 0.7046 GB, free: 14.65 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.138e-05/0.1838, allocations: 3.938 kB / 0.7047 GB, free: 14.64 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.012e-05/0.1839, allocations: 0 / 0.7047 GB, free: 14.64 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.556e-06/0.1839, allocations: 8 kB / 0.7047 GB, free: 14.64 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000188/0.1841, allocations: 39.95 kB / 0.7047 GB, free: 14.6 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004613/0.1845, allocations: 228 kB / 0.7049 GB, free: 14.33 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003332/0.1848, allocations: 54.47 kB / 0.705 GB, free: 14.27 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.635e-05/0.1849, allocations: 24.91 kB / 0.705 GB, free: 14.24 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 9.185e-05/0.185, allocations: 7.984 kB / 0.705 GB, free: 14.23 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.864e-05/0.1851, allocations: 38.56 kB / 0.705 GB, free: 14.19 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=3): time 1.072e-06/0.1851, allocations: 0 / 0.705 GB, free: 14.19 MB / 0.5294 GB Notification: Performance of matching and sorting (n=3): time 0.0004161/0.1855, allocations: 93.58 kB / 0.7051 GB, free: 14.09 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.166e-05/0.1855, allocations: 59.34 kB / 0.7052 GB, free: 14.02 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.609e-05/0.1856, allocations: 102 kB / 0.7053 GB, free: 13.91 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 2.69e-05/0.1857, allocations: 25.7 kB / 0.7053 GB, free: 13.88 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 6.528e-05/0.1857, allocations: 88.12 kB / 0.7054 GB, free: 13.79 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 2.113e-05/0.1858, allocations: 7.953 kB / 0.7054 GB, free: 13.78 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.843e-05/0.1858, allocations: 13.72 kB / 0.7054 GB, free: 13.76 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001589/0.186, allocations: 318.8 kB / 0.7057 GB, free: 13.44 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.971e-05/0.1861, allocations: 19.97 kB / 0.7057 GB, free: 13.42 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.308e-05/0.1861, allocations: 15.98 kB / 0.7057 GB, free: 13.41 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001859/0.1863, allocations: 52.75 kB / 0.7058 GB, free: 13.35 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/0.1863, allocations: 3.938 kB / 0.7058 GB, free: 13.35 MB / 0.5294 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002288/0.1866, allocations: 81.59 kB / 0.7059 GB, free: 13.26 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 1.754e-05/0.1866, allocations: 7.938 kB / 0.7059 GB, free: 13.25 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.25e-06/0.1866, allocations: 0 / 0.7059 GB, free: 13.25 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.479e-05/0.1866, allocations: 0 / 0.7059 GB, free: 13.25 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.399e-05/0.1867, allocations: 11.98 kB / 0.7059 GB, free: 13.24 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.803e-06/0.1867, allocations: 0 / 0.7059 GB, free: 13.24 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.079e-05/0.1867, allocations: 15.88 kB / 0.7059 GB, free: 13.23 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.662e-06/0.1868, allocations: 0 / 0.7059 GB, free: 13.23 MB / 0.5294 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 0.0001155/0.1869, allocations: 113.8 kB / 0.706 GB, free: 13.11 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.505e-05/0.1869, allocations: 4 kB / 0.706 GB, free: 13.1 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002786/0.1872, allocations: 85.33 kB / 0.7061 GB, free: 13.01 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.515e-06/0.1872, allocations: 0 / 0.7061 GB, free: 13.01 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.504e-06/0.1872, allocations: 4 kB / 0.7061 GB, free: 13.01 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.919e-06/0.1872, allocations: 7.922 kB / 0.7061 GB, free: 13 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001787/0.1874, allocations: 128.7 kB / 0.7062 GB, free: 12.83 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.417e-06/0.1874, allocations: 3.984 kB / 0.7062 GB, free: 12.83 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.579e-05/0.1874, allocations: 8 kB / 0.7063 GB, free: 12.82 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.495e-06/0.1874, allocations: 0 / 0.7063 GB, free: 12.82 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.132e-05/0.1875, allocations: 7.984 kB / 0.7063 GB, free: 12.81 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.453e-06/0.1875, allocations: 0 / 0.7063 GB, free: 12.81 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.1875, allocations: 0 / 0.7063 GB, free: 12.81 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002936/0.1878, allocations: 175.5 kB / 0.7064 GB, free: 12.62 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 1.193e-05/0.1878, allocations: 7.953 kB / 0.7064 GB, free: 12.62 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.633e-05/0.1878, allocations: 3.984 kB / 0.7064 GB, free: 12.61 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001002/0.1879, allocations: 4 kB / 0.7064 GB, free: 12.61 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.941e-05/0.1879, allocations: 7.984 kB / 0.7064 GB, free: 12.6 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.957e-06/0.1879, allocations: 0 / 0.7064 GB, free: 12.6 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 5.289e-05/0.188, allocations: 87.7 kB / 0.7065 GB, free: 12.52 MB / 0.5294 GB Notification: Performance of sort global known variables: time 8e-08/0.188, allocations: 0 / 0.7065 GB, free: 12.52 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0002287/0.1882, allocations: 11.94 kB / 0.7065 GB, free: 12.5 MB / 0.5294 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.0007344/0.189, allocations: 0.7047 MB / 0.7072 GB, free: 11.77 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.0002492/0.1892, allocations: 43.94 kB / 0.7073 GB, free: 11.73 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.1892, allocations: 7.938 kB / 0.7073 GB, free: 11.72 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 9.527e-05/0.1893, allocations: 27.92 kB / 0.7073 GB, free: 11.69 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003315/0.1896, allocations: 5.969 kB / 0.7073 GB, free: 11.69 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000529/0.1902, allocations: 143.2 kB / 0.7075 GB, free: 11.51 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001423/0.1903, allocations: 67.2 kB / 0.7075 GB, free: 11.42 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 3.289e-05/0.1903, allocations: 4 kB / 0.7075 GB, free: 11.42 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.364e-05/0.1904, allocations: 19.38 kB / 0.7075 GB, free: 11.4 MB / 0.5294 GB Notification: Performance of SimCode: time 3.91e-07/0.1904, allocations: 0 / 0.7075 GB, free: 11.4 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03082/0.2212, allocations: 2.118 MB / 0.7096 GB, free: 9.406 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.96/11.19, allocations: 8.656 kB / 0.7096 GB, free: 9.402 MB / 0.5294 GB " [Timeout remaining time 649] (rm -f IDEAS_IDEAS.Utilities.Math.Examples.Factorial.pipe ; mkfifo IDEAS_IDEAS.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < IDEAS_IDEAS.Utilities.Math.Examples.Factorial.pipe >> ../files/IDEAS_IDEAS.Utilities.Math.Examples.Factorial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Utilities_Math_Examples_Factorial_fmu --startTime=0 --stopTime=13 --stepSize=0.0052 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Utilities_Math_Examples_Factorial.fmu > IDEAS_IDEAS.Utilities.Math.Examples.Factorial.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.911215655971318] Failed to read output from testmodel.py, exit status != 0: 11.285993958823383 11.303684682 11.117732206 Calling exit ...