Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection.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.0009746/0.0009746, 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.001195/0.001195, 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.007/1.007, allocations: 177.1 MB / 204.5 MB, free: 5.492 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.02887/0.02887, allocations: 7.185 MB / 268.2 MB, free: 5.895 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_DynamicStateSelection,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection") translateModel(PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.554e-06/2.554e-06, allocations: 3.984 kB / 340.1 MB, free: 9.93 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.478e-05/2.733e-05, allocations: 6.25 kB / 340.1 MB, free: 9.922 MB / 266.7 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection): time 0.009781/0.009808, allocations: 9.971 MB / 350.1 MB, free: 15.9 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.004447/0.01426, allocations: 2.967 MB / 353 MB, free: 12.93 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006227/0.01488, allocations: 51.81 kB / 353.1 MB, free: 12.88 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007012/0.01558, allocations: 480.5 kB / 353.6 MB, free: 12.4 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001943/0.01752, allocations: 1.707 MB / 355.3 MB, free: 10.69 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000269/0.01779, allocations: 215.5 kB / 355.5 MB, free: 10.48 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.001813/0.0196, allocations: 3.104 MB / 358.6 MB, free: 7.363 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007496/0.02035, allocations: 1.023 MB / 359.6 MB, free: 6.309 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001123/0.02148, allocations: 1.707 MB / 361.3 MB, free: 4.598 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00122/0.0227, allocations: 1.523 MB / 362.8 MB, free: 3.07 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002417/0.02294, allocations: 280 kB / 363.1 MB, free: 2.797 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008478/0.02379, allocations: 0.8815 MB / 364 MB, free: 1.914 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000784/0.02457, allocations: 1.464 MB / 365.4 MB, free: 456 kB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006569/0.02523, allocations: 1.008 MB / 366.5 MB, free: 15.43 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002519/0.02774, allocations: 3.77 MB / 370.2 MB, free: 11.65 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.126e-06/0.02775, allocations: 0 / 370.2 MB, free: 11.65 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.054e-06/0.02775, allocations: 3.984 kB / 370.2 MB, free: 11.64 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.489e-05/0.02777, allocations: 0 / 370.2 MB, free: 11.64 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.007129/0.0349, allocations: 6.039 MB / 376.3 MB, free: 5.543 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.265e-05/0.03494, allocations: 8.625 kB / 376.3 MB, free: 5.535 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003003/0.03794, allocations: 1.376 MB / 377.7 MB, free: 4.156 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001308/0.03925, allocations: 1.384 MB / 379 MB, free: 2.742 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.659e-05/0.03934, allocations: 192.8 kB / 379.2 MB, free: 2.551 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002794/0.03962, allocations: 243.8 kB / 379.5 MB, free: 2.312 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004523/0.04415, allocations: 4.6 MB / 384.1 MB, free: 13.05 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.267e-05/0.0442, allocations: 31.7 kB / 384.1 MB, free: 13.02 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002174/0.04442, allocations: 115.8 kB / 384.2 MB, free: 12.91 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001622/0.04604, allocations: 1.881 MB / 386.1 MB, free: 11.02 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003547/0.04958, allocations: 2.353 MB / 388.4 MB, free: 8.66 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1519/0.2015, allocations: 31.54 MB / 420 MB, free: 47.53 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003767/0.2053, allocations: 1.498 MB / 421.5 MB, free: 47.47 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005521/0.2058, allocations: 422.1 kB / 421.9 MB, free: 47.45 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003827/0.2096, allocations: 2.931 MB / 424.8 MB, free: 47.06 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.986e-05/0.2097, allocations: 53.17 kB / 424.9 MB, free: 47.02 MB / 330.7 MB Notification: Performance of pre-optimization done (n=184): time 4.489e-06/0.2097, allocations: 0 / 424.9 MB, free: 47.02 MB / 330.7 MB Notification: Performance of matching and sorting (n=244): time 0.01163/0.2213, allocations: 7.128 MB / 432 MB, free: 46.02 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.002958/0.2243, allocations: 6.047 MB / 438.1 MB, free: 41.62 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001664/0.2259, allocations: 2.271 MB / 440.3 MB, free: 41.18 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 7.503e-05/0.226, allocations: 66.64 kB / 440.4 MB, free: 41.15 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008392/0.2269, allocations: 2.676 MB / 443.1 MB, free: 39.3 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003836/0.2272, allocations: 0.947 MB / 444 MB, free: 38.6 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007946/0.228, allocations: 1.107 MB / 445.1 MB, free: 37.68 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 7.173e-05/0.2281, allocations: 0.5303 MB / 445.6 MB, free: 37.16 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007741/0.2289, allocations: 0.5168 MB / 446.2 MB, free: 36.68 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001702/0.2306, allocations: 4.432 MB / 450.6 MB, free: 30.52 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0032/0.2338, allocations: 5.529 MB / 456.1 MB, free: 23.54 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.529e-05/0.2338, allocations: 24 kB / 456.1 MB, free: 23.52 MB / 330.7 MB Notification: Performance of matching and sorting (n=681) (initialization): time 0.004593/0.2384, allocations: 4.217 MB / 460.4 MB, free: 19.28 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.641e-05/0.2384, allocations: 47.94 kB / 460.4 MB, free: 19.23 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.67e-05/0.2385, allocations: 92 kB / 460.5 MB, free: 19.14 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008873/0.2394, allocations: 0.5216 MB / 461 MB, free: 18.61 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001586/0.241, allocations: 1.061 MB / 462.1 MB, free: 17.54 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004961/0.2459, allocations: 10.42 MB / 472.5 MB, free: 6.691 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002019/0.2479, allocations: 199.9 kB / 472.7 MB, free: 6.496 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002434/0.2482, allocations: 256 kB / 473 MB, free: 6.246 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 (603): * Single equations (assignments): 592 * Array equations: 6 * 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.00124/0.2494, allocations: 0.5486 MB / 473.5 MB, free: 5.688 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003363/0.2498, allocations: 330.3 kB / 473.8 MB, free: 5.363 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002086/0.2518, allocations: 1.732 MB / 475.6 MB, free: 3.605 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.001461/0.2533, allocations: 1.305 MB / 476.9 MB, free: 2.27 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.551e-06/0.2533, allocations: 4 kB / 476.9 MB, free: 2.266 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.288e-05/0.2533, allocations: 11.97 kB / 476.9 MB, free: 2.254 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007969/0.2613, allocations: 6.549 MB / 483.4 MB, free: 11.5 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.186e-06/0.2613, allocations: 4 kB / 483.4 MB, free: 11.49 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005483/0.2619, allocations: 260.7 kB / 483.7 MB, free: 11.24 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001142/0.263, allocations: 0.557 MB / 484.2 MB, free: 10.67 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001098/0.2631, allocations: 55.95 kB / 484.3 MB, free: 10.61 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006663/0.2698, allocations: 9.776 MB / 494.1 MB, free: 416 kB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.003753/0.2735, allocations: 5.352 MB / 499.4 MB, free: 10.82 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003022/0.2765, allocations: 2.334 MB / 0.49 GB, free: 8.371 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004279/0.277, allocations: 242.2 kB / 0.4902 GB, free: 8.133 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001824/0.2772, allocations: 44 kB / 0.4903 GB, free: 8.09 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004751/0.2776, allocations: 43.98 kB / 0.4903 GB, free: 8.047 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002775/0.2779, allocations: 173.7 kB / 0.4905 GB, free: 7.879 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.968e-05/0.278, allocations: 55.97 kB / 0.4905 GB, free: 7.824 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001056/0.2791, allocations: 0.9431 MB / 0.4915 GB, free: 6.863 MB / 362.7 MB Notification: Performance of sort global known variables: time 6e-08/0.2791, allocations: 0 / 0.4915 GB, free: 6.863 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.003405/0.2825, allocations: 0.9882 MB / 0.4924 GB, free: 5.875 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 18 * Number of states: 4 ($STATESET2.x,$STATESET1.x[2],$STATESET1.x[1],revolute4.phi) * 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 (163): * Single equations (assignments): 154 * 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%), (4,12,87.5%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,17)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002926/0.2827, allocations: 179.2 kB / 0.4926 GB, free: 5.691 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003295/0.286, allocations: 3.211 MB / 0.4957 GB, free: 2.414 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.877e-06/0.286, allocations: 1.875 kB / 0.4957 GB, free: 2.414 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001331/0.2874, allocations: 1.645 MB / 0.4973 GB, free: 0.6992 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009678/0.2883, allocations: 368.5 kB / 0.4977 GB, free: 364 kB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008611/0.297, allocations: 7.131 MB / 0.5046 GB, free: 9.055 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001052/0.298, allocations: 1.111 MB / 0.5057 GB, free: 7.922 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0008878/0.2989, allocations: 381.4 kB / 0.5061 GB, free: 7.543 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000926/0.2998, allocations: 498 kB / 0.5066 GB, free: 7.055 MB / 378.7 MB Notification: Performance of SimCode: time 1.673e-06/0.2998, allocations: 0 / 0.5066 GB, free: 7.055 MB / 378.7 MB Notification: Performance of Templates: time 0.05269/0.3525, allocations: 34.06 MB / 0.5398 GB, free: 5.379 MB / 410.7 MB " [Timeout remaining time 660] make -j1 -f PlanarMechanics_PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection.makefile [Timeout 660] (rm -f PlanarMechanics_PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection.sim & ./PlanarMechanics_PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection -abortSlowSimulation -alarm=240 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 4.150023058988154]