Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.FreeBody.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.0007907/0.0007907, allocations: 76.5 kB / 19.93 MB, free: 4.633 MB / 18.57 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.0008612/0.0008612, allocations: 174.3 kB / 23.21 MB, free: 1.352 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.8707/0.8707, allocations: 177.1 MB / 203.5 MB, free: 5.754 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.02745/0.02745, allocations: 7.115 MB / 267.1 MB, free: 6.34 MB / 250.7 MB " [Timeout remaining time 180] Using package PlanarMechanics with version 1.6.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.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: translateModel(PlanarMechanics.Examples.FreeBody,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.FreeBody") translateModel(PlanarMechanics.Examples.FreeBody,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.FreeBody") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.513e-06/1.513e-06, allocations: 0 / 393.6 MB, free: 3.508 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.228e-05/2.38e-05, allocations: 10.22 kB / 393.6 MB, free: 3.496 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.FreeBody): time 0.004222/0.004246, allocations: 5.219 MB / 398.9 MB, free: 14.25 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.002444/0.00669, allocations: 1.977 MB / 400.8 MB, free: 12.26 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002459/0.006935, allocations: 27.94 kB / 400.9 MB, free: 12.23 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004856/0.007421, allocations: 274.3 kB / 401.1 MB, free: 11.96 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00131/0.008731, allocations: 1.163 MB / 402.3 MB, free: 10.8 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 7.146e-05/0.008802, allocations: 35.95 kB / 402.3 MB, free: 10.76 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.001139/0.009941, allocations: 1.907 MB / 404.2 MB, free: 8.852 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000127/0.01007, allocations: 54.98 kB / 404.3 MB, free: 8.789 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006427/0.01071, allocations: 0.9975 MB / 405.3 MB, free: 7.789 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007923/0.0115, allocations: 1.04 MB / 406.3 MB, free: 6.746 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000139/0.01164, allocations: 184 kB / 406.5 MB, free: 6.566 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006416/0.01228, allocations: 0.7137 MB / 407.2 MB, free: 5.852 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007663/0.01305, allocations: 0.9854 MB / 408.2 MB, free: 4.863 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000363/0.01341, allocations: 0.6072 MB / 408.8 MB, free: 4.254 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002377/0.01579, allocations: 4.054 MB / 412.9 MB, free: 192 kB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.216e-06/0.01579, allocations: 3.938 kB / 412.9 MB, free: 188 kB / 330.7 MB Notification: Performance of FrontEnd: time 1.483e-06/0.01579, allocations: 0 / 412.9 MB, free: 188 kB / 330.7 MB Notification: Performance of Transformations before backend: time 2.099e-05/0.01582, allocations: 3.938 kB / 412.9 MB, free: 184 kB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 902 * Number of variables: 902 Notification: Performance of Generate backend data structure: time 0.1498/0.1656, allocations: 2.544 MB / 415.4 MB, free: 29.56 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.923e-05/0.1656, allocations: 9.875 kB / 415.4 MB, free: 29.56 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003613/0.1692, allocations: 1.71 MB / 417.1 MB, free: 29.31 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001323/0.1706, allocations: 1.031 MB / 418.2 MB, free: 28.68 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.036e-05/0.1706, allocations: 105.1 kB / 418.3 MB, free: 28.66 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002063/0.1708, allocations: 131 kB / 418.4 MB, free: 28.64 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005892/0.1767, allocations: 6.501 MB / 424.9 MB, free: 25.93 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.697e-05/0.1768, allocations: 18.3 kB / 424.9 MB, free: 25.93 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001535/0.1769, allocations: 60.67 kB / 425 MB, free: 25.91 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00168/0.1786, allocations: 1.631 MB / 426.6 MB, free: 25.57 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006146/0.1847, allocations: 6.043 MB / 432.7 MB, free: 22.08 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01069/0.1954, allocations: 16.24 MB / 448.9 MB, free: 5.527 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001248/0.1967, allocations: 1.076 MB / 450 MB, free: 4.445 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000395/0.1971, allocations: 0.4914 MB / 450.5 MB, free: 3.949 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001595/0.1987, allocations: 1.555 MB / 452 MB, free: 2.379 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.548e-05/0.1987, allocations: 42.16 kB / 452.1 MB, free: 2.328 MB / 330.7 MB Notification: Performance of pre-optimization done (n=80): time 2.384e-06/0.1987, allocations: 0 / 452.1 MB, free: 2.328 MB / 330.7 MB Notification: Performance of matching and sorting (n=80): time 0.001595/0.2003, allocations: 1.503 MB / 453.6 MB, free: 0.8242 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.147e-05/0.2003, allocations: 55.91 kB / 453.6 MB, free: 0.7578 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001267/0.2016, allocations: 1.709 MB / 455.3 MB, free: 15.04 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.217e-05/0.2016, allocations: 38.52 kB / 455.4 MB, free: 15 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007749/0.2024, allocations: 1.728 MB / 457.1 MB, free: 13.25 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001765/0.2025, allocations: 336.1 kB / 457.4 MB, free: 12.93 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006262/0.2032, allocations: 0.5679 MB / 458 MB, free: 12.35 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 8.319e-05/0.2033, allocations: 337.9 kB / 458.3 MB, free: 12.02 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009168/0.2042, allocations: 0.9149 MB / 459.2 MB, free: 11.1 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001678/0.2058, allocations: 2.574 MB / 461.8 MB, free: 7.695 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00286/0.2087, allocations: 3.72 MB / 465.5 MB, free: 3.164 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.896e-05/0.2087, allocations: 16 kB / 465.5 MB, free: 3.148 MB / 346.7 MB Notification: Performance of matching and sorting (n=360) (initialization): time 0.003243/0.212, allocations: 3.417 MB / 469 MB, free: 15.73 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002495/0.2122, allocations: 32 kB / 469 MB, free: 15.7 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.64e-05/0.2123, allocations: 64.16 kB / 469.1 MB, free: 15.64 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.527e-05/0.2123, allocations: 76 kB / 469.1 MB, free: 15.56 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009295/0.2132, allocations: 0.6082 MB / 469.7 MB, free: 14.95 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.095e-05/0.2133, allocations: 119.6 kB / 469.9 MB, free: 14.84 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009774/0.2143, allocations: 385.2 kB / 470.2 MB, free: 14.46 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001379/0.2144, allocations: 168 kB / 470.4 MB, free: 14.29 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 266 * Number of states: 0 () * Number of discrete variables: 3 (body.sphereColor[3],body.sphereColor[2],body.sphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (334): * Single equations (assignments): 330 * Array equations: 4 * 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.001329/0.2157, allocations: 1.32 MB / 471.7 MB, free: 12.96 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001077/0.2158, allocations: 135.1 kB / 471.8 MB, free: 12.83 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001016/0.2169, allocations: 1.025 MB / 472.9 MB, free: 11.79 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.676e-05/0.2169, allocations: 23.97 kB / 472.9 MB, free: 11.77 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.21e-06/0.2169, allocations: 0 / 472.9 MB, free: 11.77 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.649e-06/0.2169, allocations: 0 / 472.9 MB, free: 11.77 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003057/0.22, allocations: 2.789 MB / 475.7 MB, free: 8.926 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.007e-06/0.22, allocations: 0 / 475.7 MB, free: 8.926 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002568/0.2202, allocations: 107.9 kB / 475.8 MB, free: 8.82 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.699e-06/0.2202, allocations: 4 kB / 475.8 MB, free: 8.816 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.601e-05/0.2203, allocations: 12 kB / 475.8 MB, free: 8.805 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.126e-06/0.2203, allocations: 0 / 475.8 MB, free: 8.805 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.831e-06/0.2203, allocations: 11.92 kB / 475.8 MB, free: 8.793 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001665/0.2219, allocations: 1.712 MB / 477.5 MB, free: 7.055 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001179/0.2221, allocations: 139 kB / 477.7 MB, free: 6.918 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.377e-05/0.2221, allocations: 8 kB / 477.7 MB, free: 6.91 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002229/0.2224, allocations: 39.94 kB / 477.7 MB, free: 6.871 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.74e-05/0.2224, allocations: 36.38 kB / 477.7 MB, free: 6.836 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.202e-05/0.2224, allocations: 28.23 kB / 477.8 MB, free: 6.809 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0008328/0.2233, allocations: 1.012 MB / 478.8 MB, free: 5.793 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.2233, allocations: 0 / 478.8 MB, free: 5.793 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.00136/0.2246, allocations: 0.6616 MB / 479.4 MB, free: 5.133 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (body.r[1],body.r[2],body.v[1],body.v[2],body.phi,body.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (55): * Single equations (assignments): 51 * Array equations: 4 * 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.0002328/0.2249, allocations: 143.9 kB / 479.6 MB, free: 4.984 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001737/0.2266, allocations: 1.947 MB / 481.5 MB, free: 3.055 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.2266, allocations: 0 / 481.5 MB, free: 3.055 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003741/0.227, allocations: 442.8 kB / 482 MB, free: 2.617 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005495/0.2275, allocations: 183 kB / 482.1 MB, free: 2.445 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004881/0.2324, allocations: 5.08 MB / 487.2 MB, free: 13.32 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001252/0.2337, allocations: 1.608 MB / 488.8 MB, free: 11.67 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002361/0.2339, allocations: 148.4 kB / 489 MB, free: 11.52 MB / 378.7 MB Notification: Performance of SimCode: time 5.41e-07/0.2339, allocations: 0 / 489 MB, free: 11.52 MB / 378.7 MB Notification: Performance of Templates: time 0.02581/0.2597, allocations: 29.85 MB / 0.5067 GB, free: 13.8 MB / 410.7 MB " [Timeout remaining time 660] make -j1 -f PlanarMechanics_PlanarMechanics.Examples.FreeBody.makefile [Timeout 660] (rm -f PlanarMechanics_PlanarMechanics.Examples.FreeBody.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.FreeBody.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.FreeBody.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.FreeBody.sim & ./PlanarMechanics_PlanarMechanics.Examples.FreeBody -abortSlowSimulation -alarm=480 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.FreeBody.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.84492960292846] Failed to read output from testmodel.py, exit status != 0: 0.2650869032368064 0.272981287 0.255522605 Calling exit ...