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.00159/0.00159, allocations: 114.3 kB / 18.94 MB, free: 2.934 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.001821/0.001821, allocations: 213 kB / 22.25 MB, free: 5.086 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.611/1.611, allocations: 230.6 MB / 256 MB, free: 8.016 MB / 206.1 MB " [Timeout remaining time 178] 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.09122/0.09122, allocations: 9.237 MB / 321.7 MB, free: 10.06 MB / 254.1 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: PlanarMechanics 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.002068/0.002068, allocations: 63.91 kB / 448.2 MB, free: 14.56 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1219/0.124, allocations: 55.46 MB / 0.4919 GB, free: 7.016 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.FreeBody): time 0.00787/0.1319, allocations: 5.889 MB / 0.4976 GB, free: 1.102 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.004322/0.1362, allocations: 2.114 MB / 0.4997 GB, free: 14.98 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005344/0.1367, allocations: 23.94 kB / 0.4997 GB, free: 14.95 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006679/0.1374, allocations: 274.3 kB / 0.5 GB, free: 14.68 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002582/0.14, allocations: 1.129 MB / 0.5011 GB, free: 13.55 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001622/0.1401, allocations: 47.88 kB / 0.5011 GB, free: 13.5 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00246/0.1426, allocations: 1.864 MB / 0.503 GB, free: 11.64 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002187/0.1428, allocations: 62.98 kB / 0.503 GB, free: 11.56 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000893/0.1437, allocations: 0.6498 MB / 0.5036 GB, free: 10.91 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001535/0.1453, allocations: 1.102 MB / 0.5047 GB, free: 9.801 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003209/0.1456, allocations: 179.9 kB / 0.5049 GB, free: 9.625 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00136/0.1469, allocations: 0.7762 MB / 0.5057 GB, free: 8.848 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009712/0.1479, allocations: 0.958 MB / 0.5066 GB, free: 7.887 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001224/0.1491, allocations: 1.181 MB / 0.5077 GB, free: 6.699 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005517/0.1546, allocations: 4.051 MB / 0.5117 GB, free: 2.633 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.005e-05/0.1547, allocations: 3.984 kB / 0.5117 GB, free: 2.629 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.475e-06/0.1547, allocations: 0 / 0.5117 GB, free: 2.629 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.794e-05/0.1547, allocations: 7.938 kB / 0.5117 GB, free: 2.621 MB / 382.1 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.006478/0.1612, allocations: 2.557 MB / 0.5142 GB, free: 20 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.075e-05/0.1613, allocations: 12.03 kB / 0.5142 GB, free: 8 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2854/0.4467, allocations: 1.685 MB / 0.5159 GB, free: 24.57 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002761/0.4495, allocations: 1.031 MB / 0.5169 GB, free: 24.41 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.69e-05/0.4495, allocations: 101.4 kB / 0.517 GB, free: 24.41 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000359/0.4499, allocations: 132.3 kB / 0.5171 GB, free: 24.41 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01066/0.4606, allocations: 6.499 MB / 0.5234 GB, free: 23.03 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.768e-05/0.4606, allocations: 17.27 kB / 0.5235 GB, free: 23.02 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002414/0.4609, allocations: 61.58 kB / 0.5235 GB, free: 23 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002994/0.4639, allocations: 1.625 MB / 0.5251 GB, free: 22.68 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01325/0.4771, allocations: 6.043 MB / 0.531 GB, free: 20.57 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03104/0.5082, allocations: 18.15 MB / 0.5487 GB, free: 7.613 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002158/0.5103, allocations: 1.044 MB / 0.5497 GB, free: 6.957 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006024/0.5109, allocations: 0.5007 MB / 0.5502 GB, free: 6.453 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003214/0.5141, allocations: 1.755 MB / 0.5519 GB, free: 4.711 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.493e-05/0.5142, allocations: 36.12 kB / 0.552 GB, free: 4.668 MB / 382.1 MB Notification: Performance of pre-optimization done (n=80): time 2.605e-06/0.5142, allocations: 0 / 0.552 GB, free: 4.668 MB / 382.1 MB Notification: Performance of matching and sorting (n=80): time 0.002773/0.5169, allocations: 1.499 MB / 0.5534 GB, free: 3.168 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.794e-05/0.517, allocations: 67.77 kB / 0.5535 GB, free: 3.086 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002661/0.5196, allocations: 2.012 MB / 0.5555 GB, free: 1.066 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.992e-05/0.5197, allocations: 37.7 kB / 0.5555 GB, free: 1.023 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00112/0.5208, allocations: 1.713 MB / 0.5572 GB, free: 15.29 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003374/0.5211, allocations: 338.9 kB / 0.5575 GB, free: 14.96 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008456/0.522, allocations: 0.5679 MB / 0.5581 GB, free: 14.38 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002142/0.5222, allocations: 365.9 kB / 0.5584 GB, free: 14.02 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001588/0.5238, allocations: 0.9227 MB / 0.5593 GB, free: 13.09 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003565/0.5274, allocations: 2.567 MB / 0.5618 GB, free: 9.699 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005268/0.5326, allocations: 3.725 MB / 0.5655 GB, free: 5.16 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.845e-05/0.5327, allocations: 20 kB / 0.5655 GB, free: 5.141 MB / 398.1 MB Notification: Performance of matching and sorting (n=360) (initialization): time 0.006634/0.5393, allocations: 3.438 MB / 0.5688 GB, free: 1.703 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.183e-05/0.5393, allocations: 28 kB / 0.5689 GB, free: 1.676 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.44e-05/0.5394, allocations: 60 kB / 0.5689 GB, free: 1.617 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.876e-05/0.5395, allocations: 76.56 kB / 0.569 GB, free: 1.543 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001924/0.5414, allocations: 0.6121 MB / 0.5696 GB, free: 0.9297 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000119/0.5416, allocations: 115.3 kB / 0.5697 GB, free: 0.8203 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002316/0.5439, allocations: 431.4 kB / 0.5701 GB, free: 408 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002675/0.5441, allocations: 176 kB / 0.5703 GB, free: 232 kB / 398.1 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.002426/0.5466, allocations: 1.312 MB / 0.5716 GB, free: 14.9 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00034/0.5469, allocations: 158.9 kB / 0.5717 GB, free: 14.75 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002077/0.549, allocations: 1.052 MB / 0.5727 GB, free: 13.68 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001035/0.5491, allocations: 27.92 kB / 0.5728 GB, free: 13.65 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.071e-06/0.5491, allocations: 0 / 0.5728 GB, free: 13.65 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.538e-06/0.5491, allocations: 3.984 kB / 0.5728 GB, free: 13.64 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007229/0.5563, allocations: 3.564 MB / 0.5762 GB, free: 10.02 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.082e-06/0.5563, allocations: 0 / 0.5762 GB, free: 10.02 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005207/0.5569, allocations: 100.9 kB / 0.5763 GB, free: 9.922 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.244e-05/0.5569, allocations: 4 kB / 0.5763 GB, free: 9.918 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.82e-05/0.5569, allocations: 19.98 kB / 0.5764 GB, free: 9.898 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.809e-06/0.5569, allocations: 0 / 0.5764 GB, free: 9.898 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.905e-06/0.5569, allocations: 8.812 kB / 0.5764 GB, free: 9.891 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002914/0.5599, allocations: 1.748 MB / 0.5781 GB, free: 8.113 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005766/0.5604, allocations: 174.8 kB / 0.5782 GB, free: 7.941 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001835/0.5606, allocations: 15.98 kB / 0.5783 GB, free: 7.926 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005118/0.5611, allocations: 27.97 kB / 0.5783 GB, free: 7.898 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.843e-05/0.5612, allocations: 40.31 kB / 0.5783 GB, free: 7.859 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.96e-05/0.5613, allocations: 28.23 kB / 0.5784 GB, free: 7.832 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002445/0.5637, allocations: 1.31 MB / 0.5796 GB, free: 6.527 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5637, allocations: 0 / 0.5796 GB, free: 6.527 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003381/0.5671, allocations: 0.6385 MB / 0.5803 GB, free: 5.887 MB / 414.1 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.0003792/0.5675, allocations: 139.5 kB / 0.5804 GB, free: 5.742 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003755/0.5713, allocations: 1.942 MB / 0.5823 GB, free: 3.812 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.238e-06/0.5713, allocations: 3.938 kB / 0.5823 GB, free: 3.809 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007315/0.572, allocations: 450.9 kB / 0.5827 GB, free: 3.367 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001577/0.5736, allocations: 289.2 kB / 0.583 GB, free: 3.098 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01101/0.5846, allocations: 4.986 MB / 0.5879 GB, free: 14.08 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002548/0.5871, allocations: 2.171 MB / 0.59 GB, free: 11.88 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.002248/0.5894, allocations: 0.8811 MB / 0.5908 GB, free: 11 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003134/0.5897, allocations: 119.4 kB / 0.591 GB, free: 10.88 MB / 430.1 MB Notification: Performance of SimCode: time 6.91e-07/0.5897, allocations: 0 / 0.591 GB, free: 10.88 MB / 430.1 MB Notification: Performance of Templates: time 0.04217/0.6319, allocations: 20.16 MB / 0.6107 GB, free: 6.797 MB / 446.1 MB " [Timeout remaining time 659] 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: 6.022200634004548] Failed to read output from testmodel.py, exit status != 0: 0.6410963209345937 0.6582254660000001 0.500123373 Calling exit ...