Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.KinematicLoop.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.001078/0.001078, allocations: 77.09 kB / 20.66 MB, free: 3.844 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.001062/0.001062, allocations: 169 kB / 24.06 MB, free: 456 kB / 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 1.084/1.084, allocations: 177.1 MB / 204.5 MB, free: 5.5 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.7.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.7.0/package.mo): time 0.02985/0.02985, allocations: 7.182 MB / 268.2 MB, free: 5.906 MB / 250.7 MB " [Timeout remaining time 180] Using package PlanarMechanics with version 1.7.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.7.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.KinematicLoop,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.KinematicLoop") translateModel(PlanarMechanics.Examples.KinematicLoop,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.KinematicLoop") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.134e-06/2.134e-06, allocations: 4 kB / 340.1 MB, free: 9.941 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.901e-05/2.114e-05, allocations: 2.312 kB / 340.1 MB, free: 9.938 MB / 266.7 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.KinematicLoop): time 0.006351/0.006372, allocations: 9.99 MB / 350.1 MB, free: 15.89 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.005357/0.01173, allocations: 2.959 MB / 353 MB, free: 12.93 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001676/0.01341, allocations: 51.81 kB / 353.1 MB, free: 12.88 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001571/0.01498, allocations: 476.5 kB / 353.6 MB, free: 12.41 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004946/0.01992, allocations: 1.707 MB / 355.3 MB, free: 10.69 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000819/0.02074, allocations: 211.5 kB / 355.5 MB, free: 10.48 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.004533/0.02527, allocations: 3.111 MB / 358.6 MB, free: 7.367 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002185/0.02746, allocations: 1.027 MB / 359.6 MB, free: 6.309 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003386/0.03085, allocations: 1.699 MB / 361.3 MB, free: 4.605 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002182/0.03303, allocations: 1.519 MB / 362.8 MB, free: 3.082 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005541/0.03358, allocations: 280 kB / 363.1 MB, free: 2.809 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00133/0.03491, allocations: 0.8893 MB / 364 MB, free: 1.918 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001054/0.03597, allocations: 1.464 MB / 365.5 MB, free: 460 kB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001217/0.03718, allocations: 1.004 MB / 366.5 MB, free: 15.44 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004023/0.04121, allocations: 3.77 MB / 370.2 MB, free: 11.66 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.781e-06/0.04121, allocations: 0 / 370.2 MB, free: 11.66 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.163e-06/0.04121, allocations: 0 / 370.2 MB, free: 11.66 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.00011/0.04132, allocations: 4 kB / 370.2 MB, free: 11.65 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1376 * Number of variables: 1376 Notification: Performance of Generate backend data structure: time 0.008969/0.05029, allocations: 6.043 MB / 376.3 MB, free: 5.547 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.273e-05/0.05033, allocations: 12.62 kB / 376.3 MB, free: 5.535 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003633/0.05397, allocations: 1.368 MB / 377.7 MB, free: 4.164 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002251/0.05622, allocations: 1.384 MB / 379 MB, free: 2.75 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001365/0.05635, allocations: 196.8 kB / 379.2 MB, free: 2.555 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000441/0.0568, allocations: 243.8 kB / 379.5 MB, free: 2.316 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007149/0.06394, allocations: 4.596 MB / 384.1 MB, free: 13.06 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.559e-05/0.06403, allocations: 35.7 kB / 384.1 MB, free: 13.02 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002996/0.06433, allocations: 119.8 kB / 384.2 MB, free: 12.91 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00203/0.06636, allocations: 1.884 MB / 386.1 MB, free: 11.02 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005746/0.07211, allocations: 2.349 MB / 388.5 MB, free: 8.66 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1767/0.2488, allocations: 31.54 MB / 420 MB, free: 47.57 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004375/0.2532, allocations: 1.494 MB / 421.5 MB, free: 47.51 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008122/0.254, allocations: 426.6 kB / 421.9 MB, free: 47.49 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005053/0.2591, allocations: 2.923 MB / 424.8 MB, free: 47.1 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.905e-05/0.2591, allocations: 61.38 kB / 424.9 MB, free: 47.05 MB / 330.7 MB Notification: Performance of pre-optimization done (n=184): time 3.997e-06/0.2591, allocations: 0 / 424.9 MB, free: 47.05 MB / 330.7 MB Notification: Performance of matching and sorting (n=238): time 0.01004/0.2692, allocations: 5.003 MB / 429.9 MB, free: 46.44 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.018e-05/0.2692, allocations: 76.77 kB / 430 MB, free: 46.38 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001764/0.271, allocations: 2.269 MB / 432.2 MB, free: 45.94 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 6.82e-05/0.271, allocations: 57.92 kB / 432.3 MB, free: 45.91 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008122/0.2718, allocations: 2.677 MB / 435 MB, free: 44.33 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004451/0.2723, allocations: 0.9302 MB / 435.9 MB, free: 43.78 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008165/0.2731, allocations: 1.092 MB / 437 MB, free: 43.66 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 8.309e-05/0.2732, allocations: 0.5311 MB / 437.5 MB, free: 43.18 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005971/0.2738, allocations: 447.9 kB / 438 MB, free: 43.16 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001645/0.2754, allocations: 4.366 MB / 442.3 MB, free: 38.09 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002899/0.2783, allocations: 5.413 MB / 447.7 MB, free: 31.93 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.494e-05/0.2784, allocations: 28 kB / 447.8 MB, free: 31.91 MB / 330.7 MB Notification: Performance of matching and sorting (n=672) (initialization): time 0.004375/0.2827, allocations: 4.094 MB / 451.9 MB, free: 28.1 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.934e-05/0.2828, allocations: 50.75 kB / 451.9 MB, free: 28.05 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.013e-05/0.2828, allocations: 96.12 kB / 452 MB, free: 27.96 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001043/0.2839, allocations: 0.5268 MB / 452.5 MB, free: 27.42 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001724/0.2856, allocations: 1.045 MB / 453.6 MB, free: 26.38 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005504/0.2911, allocations: 10.41 MB / 464 MB, free: 15.53 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002258/0.2934, allocations: 199.9 kB / 464.2 MB, free: 15.34 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000248/0.2936, allocations: 252 kB / 464.4 MB, free: 15.09 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 418 * Number of states: 0 () * Number of discrete variables: 27 (fixedTranslation3.color[3],fixedTranslation3.color[2],fixedTranslation3.color[1],fixedTranslation2.color[3],fixedTranslation2.color[2],fixedTranslation2.color[1],fixedTranslation1.color[3],fixedTranslation1.color[2],fixedTranslation1.color[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],prismatic1.boxColor[3],prismatic1.boxColor[2],prismatic1.boxColor[1],revolute4.cylinderColor[3],revolute4.cylinderColor[2],revolute4.cylinderColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (596): * Single equations (assignments): 587 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,8,100.0%), (2,17,100.0%), (2,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,10)} Notification: Performance of prepare postOptimizeDAE: time 0.001048/0.2947, allocations: 0.5556 MB / 465 MB, free: 14.52 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003148/0.295, allocations: 318.3 kB / 465.3 MB, free: 14.21 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001682/0.2967, allocations: 1.533 MB / 466.8 MB, free: 12.64 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.873e-05/0.2967, allocations: 31.06 kB / 466.9 MB, free: 12.61 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.774e-06/0.2967, allocations: 4 kB / 466.9 MB, free: 12.61 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.172e-05/0.2967, allocations: 15.95 kB / 466.9 MB, free: 12.59 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005404/0.3021, allocations: 4.483 MB / 471.4 MB, free: 7.934 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.173e-06/0.3021, allocations: 4 kB / 471.4 MB, free: 7.93 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005582/0.3027, allocations: 283.6 kB / 471.6 MB, free: 7.652 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007465/0.3034, allocations: 390.5 kB / 472 MB, free: 7.25 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.123e-05/0.3035, allocations: 40 kB / 472.1 MB, free: 7.211 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004073/0.3076, allocations: 8.919 MB / 481 MB, free: 13.85 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.399e-06/0.3076, allocations: 4 kB / 481 MB, free: 13.84 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002986/0.3106, allocations: 2.197 MB / 483.2 MB, free: 11.52 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004804/0.3111, allocations: 226.3 kB / 483.4 MB, free: 11.3 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002047/0.3113, allocations: 40 kB / 483.4 MB, free: 11.26 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004664/0.3117, allocations: 47.17 kB / 483.5 MB, free: 11.22 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002471/0.312, allocations: 172.4 kB / 483.7 MB, free: 11.05 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.394e-05/0.3121, allocations: 51.98 kB / 483.7 MB, free: 11 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0009889/0.3131, allocations: 0.9353 MB / 484.6 MB, free: 10.05 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3131, allocations: 0 / 484.6 MB, free: 10.05 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.003268/0.3163, allocations: 0.8944 MB / 485.5 MB, free: 9.152 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * Number of states: 4 (revolute1.phi,revolute1.w,revolute4.phi,revolute4.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 (175): * Single equations (assignments): 166 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,6,100.0%), (2,15,100.0%), (2,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,8)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003534/0.3167, allocations: 182.8 kB / 485.7 MB, free: 8.965 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.003787/0.3205, allocations: 3.112 MB / 488.8 MB, free: 5.785 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.268e-06/0.3205, allocations: 0 / 488.8 MB, free: 5.785 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001304/0.3218, allocations: 1.478 MB / 490.3 MB, free: 4.234 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001264/0.323, allocations: 359.7 kB / 490.7 MB, free: 3.898 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009045/0.3321, allocations: 6.66 MB / 497.3 MB, free: 13.09 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001084/0.3332, allocations: 1.087 MB / 498.4 MB, free: 11.98 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.001007/0.3342, allocations: 381.3 kB / 498.8 MB, free: 11.6 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006214/0.3348, allocations: 486.1 kB / 499.2 MB, free: 11.12 MB / 362.7 MB Notification: Performance of SimCode: time 1.844e-06/0.3348, allocations: 0 / 499.2 MB, free: 11.12 MB / 362.7 MB Notification: Performance of Templates: time 0.04515/0.38, allocations: 30.33 MB / 0.5172 GB, free: 13.18 MB / 394.7 MB " [Timeout remaining time 660] make -j1 -f PlanarMechanics_PlanarMechanics.Examples.KinematicLoop.makefile [Timeout 660] (rm -f PlanarMechanics_PlanarMechanics.Examples.KinematicLoop.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.KinematicLoop.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.KinematicLoop.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.KinematicLoop.sim & ./PlanarMechanics_PlanarMechanics.Examples.KinematicLoop -abortSlowSimulation -alarm=240 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.KinematicLoop.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 4.15625033294782]