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.001338/0.001338, allocations: 80.94 kB / 19.94 MB, free: 4.543 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.0009582/0.0009582, allocations: 181 kB / 23.36 MB, free: 1.129 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.953/0.953, allocations: 177.1 MB / 203.8 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.02928/0.02928, allocations: 7.189 MB / 267.4 MB, free: 5.961 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 1.213e-06/1.213e-06, allocations: 0 / 286.1 MB, free: 3.312 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.723e-05/1.845e-05, allocations: 5.828 kB / 286.1 MB, free: 3.309 MB / 266.7 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection): time 0.1223/0.1224, allocations: 10.03 MB / 296.1 MB, free: 16.29 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005722/0.1281, allocations: 3.091 MB / 299.2 MB, free: 14.36 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001172/0.1293, allocations: 50.62 kB / 299.3 MB, free: 14.35 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001022/0.1303, allocations: 468.2 kB / 299.7 MB, free: 14.15 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003825/0.1341, allocations: 1.702 MB / 301.4 MB, free: 13.29 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005876/0.1347, allocations: 222.5 kB / 301.6 MB, free: 13.17 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002979/0.1377, allocations: 3.104 MB / 304.7 MB, free: 11.52 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001046/0.1387, allocations: 1.047 MB / 305.8 MB, free: 10.72 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001685/0.1404, allocations: 1.702 MB / 307.5 MB, free: 9.629 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001611/0.142, allocations: 1.471 MB / 309 MB, free: 8.766 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004045/0.1424, allocations: 276.2 kB / 309.2 MB, free: 8.766 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001036/0.1434, allocations: 0.8873 MB / 310.1 MB, free: 7.98 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006549/0.1441, allocations: 1.468 MB / 311.6 MB, free: 6.508 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007736/0.1449, allocations: 1.005 MB / 312.6 MB, free: 5.5 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002384/0.1473, allocations: 3.774 MB / 316.4 MB, free: 1.711 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.1473, allocations: 4 kB / 316.4 MB, free: 1.707 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.683e-06/0.1473, allocations: 0 / 316.4 MB, free: 1.707 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.923e-05/0.1474, allocations: 0 / 316.4 MB, free: 1.707 MB / 266.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.005556/0.1529, allocations: 4.511 MB / 320.9 MB, free: 13.14 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.325e-05/0.1529, allocations: 12.62 kB / 320.9 MB, free: 13.13 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002942/0.1559, allocations: 1.097 MB / 322 MB, free: 12.04 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001368/0.1573, allocations: 1.148 MB / 323.1 MB, free: 10.85 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001017/0.1574, allocations: 188.8 kB / 323.3 MB, free: 10.66 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002957/0.1577, allocations: 251.8 kB / 323.6 MB, free: 10.42 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004531/0.1622, allocations: 4.231 MB / 327.8 MB, free: 5.695 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.255e-05/0.1622, allocations: 27.77 kB / 327.8 MB, free: 5.668 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002091/0.1625, allocations: 119.8 kB / 327.9 MB, free: 5.551 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001623/0.1641, allocations: 1.888 MB / 329.8 MB, free: 3.664 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004215/0.1683, allocations: 2.368 MB / 332.2 MB, free: 1.289 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.016/0.1843, allocations: 22.71 MB / 354.9 MB, free: 9.949 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003207/0.1875, allocations: 1.549 MB / 356.5 MB, free: 8.387 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004539/0.188, allocations: 373.2 kB / 356.8 MB, free: 8.023 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003147/0.1911, allocations: 2.761 MB / 359.6 MB, free: 5.238 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.254e-05/0.1911, allocations: 47.88 kB / 359.6 MB, free: 5.18 MB / 314.7 MB Notification: Performance of pre-optimization done (n=184): time 2.595e-06/0.1911, allocations: 3.938 kB / 359.6 MB, free: 5.176 MB / 314.7 MB Notification: Performance of matching and sorting (n=244): time 0.0127/0.2038, allocations: 7.212 MB / 366.9 MB, free: 13.89 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.003446/0.2073, allocations: 4.784 MB / 371.6 MB, free: 8.906 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001549/0.2088, allocations: 2.061 MB / 373.7 MB, free: 6.805 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 7.975e-05/0.2089, allocations: 61.69 kB / 373.8 MB, free: 6.738 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009177/0.2098, allocations: 2.454 MB / 376.2 MB, free: 4.254 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000437/0.2103, allocations: 0.9104 MB / 377.1 MB, free: 3.336 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007813/0.211, allocations: 0.9698 MB / 378.1 MB, free: 2.355 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 9.194e-05/0.2111, allocations: 357.8 kB / 378.4 MB, free: 2 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009904/0.2121, allocations: 0.6266 MB / 379.1 MB, free: 1.367 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002035/0.2142, allocations: 3.192 MB / 382.3 MB, free: 12.88 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003161/0.2173, allocations: 4.405 MB / 386.7 MB, free: 7.152 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.629e-05/0.2174, allocations: 28 kB / 386.7 MB, free: 7.125 MB / 346.7 MB Notification: Performance of matching and sorting (n=681) (initialization): time 0.004494/0.2218, allocations: 3.64 MB / 390.3 MB, free: 3.434 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.478e-05/0.2219, allocations: 48.91 kB / 390.4 MB, free: 3.387 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.491e-05/0.222, allocations: 92 kB / 390.5 MB, free: 3.297 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001218/0.2232, allocations: 0.5198 MB / 391 MB, free: 2.762 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002516/0.2257, allocations: 1.103 MB / 392.1 MB, free: 1.656 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006971/0.2327, allocations: 8.017 MB / 400.1 MB, free: 9.254 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002156/0.2348, allocations: 203.9 kB / 400.3 MB, free: 9.055 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003367/0.2352, allocations: 260 kB / 400.6 MB, free: 8.801 MB / 362.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.001044/0.2362, allocations: 0.5111 MB / 401.1 MB, free: 8.281 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003122/0.2365, allocations: 211.8 kB / 401.3 MB, free: 8.074 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002494/0.239, allocations: 1.474 MB / 402.8 MB, free: 6.566 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.001874/0.2409, allocations: 1.047 MB / 403.8 MB, free: 5.492 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.108e-05/0.2409, allocations: 12 kB / 403.8 MB, free: 5.48 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.85e-05/0.2409, allocations: 11.95 kB / 403.8 MB, free: 5.469 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008772/0.2497, allocations: 5.261 MB / 409.1 MB, free: 0 / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.366e-05/0.2497, allocations: 4.047 kB / 409.1 MB, free: 15.99 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007977/0.2505, allocations: 284 kB / 409.4 MB, free: 15.72 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001517/0.252, allocations: 0.6226 MB / 410 MB, free: 15.07 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001208/0.2522, allocations: 47.97 kB / 410 MB, free: 15.03 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006467/0.2586, allocations: 7.429 MB / 417.5 MB, free: 7.219 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.003487/0.2621, allocations: 4.17 MB / 421.6 MB, free: 2.84 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002995/0.2651, allocations: 1.989 MB / 423.6 MB, free: 0.7383 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002992/0.2654, allocations: 222.3 kB / 423.8 MB, free: 0.5195 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002333/0.2656, allocations: 47.92 kB / 423.9 MB, free: 484 kB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006238/0.2663, allocations: 44 kB / 423.9 MB, free: 440 kB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003104/0.2666, allocations: 173.5 kB / 424.1 MB, free: 264 kB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001094/0.2667, allocations: 51.98 kB / 424.2 MB, free: 212 kB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0008622/0.2676, allocations: 0.7518 MB / 424.9 MB, free: 15.43 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.2676, allocations: 0 / 424.9 MB, free: 15.43 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003431/0.271, allocations: 0.9843 MB / 425.9 MB, free: 14.45 MB / 394.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.0003116/0.2713, allocations: 168.1 kB / 426.1 MB, free: 14.28 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.003294/0.2746, allocations: 2.827 MB / 428.9 MB, free: 11.41 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 9.132e-05/0.2747, allocations: 63.94 kB / 428.9 MB, free: 11.34 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001743/0.2764, allocations: 1.342 MB / 430.3 MB, free: 9.934 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001183/0.2776, allocations: 353.7 kB / 430.6 MB, free: 9.594 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009023/0.2866, allocations: 7.165 MB / 437.8 MB, free: 2.285 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001061/0.2877, allocations: 1.101 MB / 438.9 MB, free: 1.156 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001166/0.2889, allocations: 373.4 kB / 439.3 MB, free: 0.7852 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009636/0.2898, allocations: 461.1 kB / 439.7 MB, free: 340 kB / 394.7 MB Notification: Performance of SimCode: time 2.084e-06/0.2898, allocations: 4 kB / 439.7 MB, free: 336 kB / 394.7 MB Notification: Performance of Templates: time 0.1434/0.4333, allocations: 33.3 MB / 473 MB, free: 105.1 MB / 394.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 -s gbode -gbm=radauIIA3 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.687861420214176]