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.001269/0.001269, allocations: 92.22 kB / 19.65 MB, free: 276 kB / 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.001503/0.001503, allocations: 173 kB / 23.02 MB, free: 1.547 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.9659/0.9659, allocations: 177.1 MB / 203.4 MB, free: 5.629 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.02862/0.02862, allocations: 7.175 MB / 267.1 MB, free: 6.062 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.284e-06/2.284e-06, allocations: 0 / 338.9 MB, free: 10.23 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.784e-05/4.012e-05, allocations: 2.312 kB / 338.9 MB, free: 10.22 MB / 266.7 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.KinematicLoop): time 0.01067/0.01071, allocations: 10.2 MB / 349.1 MB, free: 15.97 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.00772/0.01843, allocations: 2.99 MB / 352 MB, free: 12.97 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00113/0.01956, allocations: 47.81 kB / 352.1 MB, free: 12.93 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008049/0.02037, allocations: 472.6 kB / 352.6 MB, free: 12.46 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002427/0.02279, allocations: 1.706 MB / 354.3 MB, free: 10.75 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000325/0.02312, allocations: 223.4 kB / 354.5 MB, free: 10.53 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.001997/0.02511, allocations: 3.113 MB / 357.6 MB, free: 7.406 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007254/0.02584, allocations: 1.027 MB / 358.6 MB, free: 6.348 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001405/0.02724, allocations: 1.699 MB / 360.3 MB, free: 4.645 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001379/0.02862, allocations: 1.519 MB / 361.8 MB, free: 3.121 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002529/0.02888, allocations: 284 kB / 362.1 MB, free: 2.844 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001037/0.02991, allocations: 0.8698 MB / 363 MB, free: 1.973 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008516/0.03077, allocations: 1.468 MB / 364.5 MB, free: 0.5 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007138/0.03148, allocations: 1.004 MB / 365.5 MB, free: 15.49 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003113/0.03459, allocations: 3.77 MB / 369.2 MB, free: 11.71 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.226e-06/0.0346, allocations: 0 / 369.2 MB, free: 11.71 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.523e-06/0.0346, allocations: 0 / 369.2 MB, free: 11.71 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.538e-05/0.03462, allocations: 4 kB / 369.2 MB, free: 11.7 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.007474/0.0421, allocations: 6.118 MB / 375.4 MB, free: 5.523 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.071e-05/0.04215, allocations: 8.625 kB / 375.4 MB, free: 5.516 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004/0.04615, allocations: 2.335 MB / 377.7 MB, free: 3.176 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001609/0.04776, allocations: 1.494 MB / 379.2 MB, free: 1.652 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001062/0.04786, allocations: 192.8 kB / 379.4 MB, free: 1.461 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003018/0.04816, allocations: 247.8 kB / 379.6 MB, free: 1.219 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005904/0.05407, allocations: 5.03 MB / 384.6 MB, free: 11.53 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.251e-05/0.05412, allocations: 31.7 kB / 384.7 MB, free: 11.5 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002092/0.05433, allocations: 123.8 kB / 384.8 MB, free: 11.38 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001767/0.0561, allocations: 2.068 MB / 386.9 MB, free: 9.305 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005107/0.0612, allocations: 2.898 MB / 389.8 MB, free: 6.398 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1794/0.2406, allocations: 31.75 MB / 421.5 MB, free: 36.51 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00363/0.2442, allocations: 1.611 MB / 423.1 MB, free: 36.45 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006689/0.2449, allocations: 490.3 kB / 423.6 MB, free: 36.43 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004045/0.2489, allocations: 3.069 MB / 426.7 MB, free: 36.02 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.406e-05/0.249, allocations: 56.02 kB / 426.7 MB, free: 35.98 MB / 330.7 MB Notification: Performance of pre-optimization done (n=184): time 2.996e-06/0.249, allocations: 2.812 kB / 426.7 MB, free: 35.98 MB / 330.7 MB Notification: Performance of matching and sorting (n=238): time 0.01118/0.2602, allocations: 5.869 MB / 432.6 MB, free: 35.09 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.315e-05/0.2602, allocations: 73.16 kB / 432.7 MB, free: 35.02 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002208/0.2624, allocations: 2.295 MB / 435 MB, free: 34.59 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 6.951e-05/0.2625, allocations: 58.45 kB / 435 MB, free: 34.55 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001022/0.2635, allocations: 2.658 MB / 437.7 MB, free: 32.96 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004976/0.264, allocations: 0.9173 MB / 438.6 MB, free: 32.41 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008264/0.2648, allocations: 1.075 MB / 439.7 MB, free: 32.29 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 7.413e-05/0.2649, allocations: 0.5229 MB / 440.2 MB, free: 31.81 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000876/0.2658, allocations: 0.5604 MB / 440.8 MB, free: 31.8 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001868/0.2676, allocations: 4.456 MB / 445.2 MB, free: 26.82 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003601/0.2712, allocations: 5.59 MB / 450.8 MB, free: 21.4 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.919e-05/0.2713, allocations: 25.28 kB / 450.8 MB, free: 21.4 MB / 330.7 MB Notification: Performance of matching and sorting (n=672) (initialization): time 0.005146/0.2764, allocations: 4.461 MB / 455.3 MB, free: 18.36 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.588e-05/0.2765, allocations: 44 kB / 455.3 MB, free: 18.32 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.971e-05/0.2765, allocations: 95.19 kB / 455.4 MB, free: 18.23 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001014/0.2775, allocations: 0.5562 MB / 456 MB, free: 17.77 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001625/0.2792, allocations: 1.068 MB / 457.1 MB, free: 16.82 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005751/0.2849, allocations: 10.86 MB / 467.9 MB, free: 5.852 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001878/0.2868, allocations: 270.4 kB / 468.2 MB, free: 5.59 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002245/0.287, allocations: 292 kB / 468.5 MB, free: 5.305 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.001043/0.2881, allocations: 0.5468 MB / 469 MB, free: 4.746 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003387/0.2884, allocations: 325.8 kB / 469.3 MB, free: 4.434 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002045/0.2904, allocations: 1.715 MB / 471 MB, free: 2.684 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.797e-05/0.2905, allocations: 35.98 kB / 471.1 MB, free: 2.648 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.758e-06/0.2905, allocations: 11.31 kB / 471.1 MB, free: 2.641 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.409e-05/0.2905, allocations: 11.95 kB / 471.1 MB, free: 2.629 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007688/0.2982, allocations: 5.507 MB / 476.6 MB, free: 12.98 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.251e-05/0.2982, allocations: 4 kB / 476.6 MB, free: 12.98 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007585/0.299, allocations: 307.5 kB / 476.9 MB, free: 12.68 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008558/0.2998, allocations: 449 kB / 477.3 MB, free: 12.23 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.729e-05/0.2999, allocations: 47.98 kB / 477.4 MB, free: 12.18 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005353/0.3053, allocations: 9.235 MB / 486.6 MB, free: 2.477 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.047e-06/0.3053, allocations: 12 kB / 486.6 MB, free: 2.465 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003104/0.3084, allocations: 2.438 MB / 489.1 MB, free: 15.91 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004076/0.3088, allocations: 226.3 kB / 489.3 MB, free: 15.68 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002304/0.309, allocations: 40 kB / 489.3 MB, free: 15.64 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007022/0.3097, allocations: 107.1 kB / 489.4 MB, free: 15.54 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003187/0.31, allocations: 165.1 kB / 489.6 MB, free: 15.38 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001262/0.3102, allocations: 68 kB / 489.7 MB, free: 15.32 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001785/0.312, allocations: 1.006 MB / 490.7 MB, free: 14.29 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.11e-07/0.312, allocations: 8 kB / 490.7 MB, free: 14.29 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.004177/0.3161, allocations: 0.8928 MB / 491.6 MB, free: 13.39 MB / 362.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.0003653/0.3165, allocations: 179.8 kB / 491.8 MB, free: 13.21 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.004742/0.3212, allocations: 3.295 MB / 495 MB, free: 9.852 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.956e-06/0.3212, allocations: 0 / 495 MB, free: 9.852 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001599/0.3228, allocations: 1.545 MB / 496.6 MB, free: 8.234 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001332/0.3242, allocations: 348.5 kB / 496.9 MB, free: 7.902 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01097/0.3351, allocations: 6.699 MB / 0.4918 GB, free: 1.062 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001331/0.3365, allocations: 1.091 MB / 0.4929 GB, free: 15.94 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.00206/0.3385, allocations: 1.151 MB / 0.494 GB, free: 14.79 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003156/0.3389, allocations: 194.8 kB / 0.4942 GB, free: 14.6 MB / 378.7 MB Notification: Performance of SimCode: time 1.203e-06/0.3389, allocations: 0 / 0.4942 GB, free: 14.6 MB / 378.7 MB Notification: Performance of Templates: time 0.03691/0.3758, allocations: 28.04 MB / 0.5216 GB, free: 3.016 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: 3.8804779280908406]