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.00138/0.00138, allocations: 80.94 kB / 19.94 MB, free: 4.547 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.001416/0.001416, allocations: 177.3 kB / 23.35 MB, free: 1.137 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.9378/0.9378, allocations: 177.1 MB / 203.8 MB, free: 5.469 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.02867/0.02867, allocations: 7.184 MB / 267.4 MB, free: 5.934 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.433e-06/1.433e-06, allocations: 0 / 286 MB, free: 3.34 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.823e-05/1.967e-05, allocations: 2.312 kB / 286 MB, free: 3.336 MB / 266.7 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection): time 0.1178/0.1178, allocations: 9.994 MB / 296 MB, free: 15.8 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005853/0.1237, allocations: 3.09 MB / 299.1 MB, free: 14.22 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001312/0.125, allocations: 47.25 kB / 299.2 MB, free: 14.21 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00085/0.1258, allocations: 474.5 kB / 299.6 MB, free: 14.01 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003287/0.1291, allocations: 1.716 MB / 301.3 MB, free: 13.16 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005061/0.1296, allocations: 219.1 kB / 301.6 MB, free: 13.04 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.003175/0.1328, allocations: 3.105 MB / 304.7 MB, free: 11.41 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001231/0.134, allocations: 1.054 MB / 305.7 MB, free: 10.61 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002144/0.1362, allocations: 1.703 MB / 307.4 MB, free: 9.516 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001797/0.138, allocations: 1.471 MB / 308.9 MB, free: 8.648 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006351/0.1386, allocations: 278.8 kB / 309.2 MB, free: 8.648 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001323/0.1399, allocations: 0.8627 MB / 310 MB, free: 7.918 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008068/0.1407, allocations: 1.47 MB / 311.5 MB, free: 6.445 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001111/0.1418, allocations: 1 MB / 312.5 MB, free: 5.441 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003101/0.1449, allocations: 3.774 MB / 316.3 MB, free: 1.652 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.036e-06/0.1449, allocations: 0.625 kB / 316.3 MB, free: 1.652 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.342e-06/0.1449, allocations: 0 / 316.3 MB, free: 1.652 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001099/0.145, allocations: 0.5 kB / 316.3 MB, free: 1.652 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.005706/0.1508, allocations: 4.517 MB / 320.8 MB, free: 13.09 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.564e-05/0.1508, allocations: 12.62 kB / 320.8 MB, free: 13.08 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003055/0.1538, allocations: 1.093 MB / 321.9 MB, free: 11.98 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001682/0.1555, allocations: 1.153 MB / 323 MB, free: 10.8 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00011/0.1556, allocations: 188.8 kB / 323.2 MB, free: 10.61 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000307/0.1559, allocations: 251.8 kB / 323.5 MB, free: 10.36 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005011/0.161, allocations: 4.235 MB / 327.7 MB, free: 5.637 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.007e-05/0.161, allocations: 31.75 kB / 327.7 MB, free: 5.605 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002322/0.1613, allocations: 115.8 kB / 327.9 MB, free: 5.492 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001988/0.1632, allocations: 1.888 MB / 329.7 MB, free: 3.602 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005037/0.1683, allocations: 2.365 MB / 332.1 MB, free: 1.234 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02116/0.1894, allocations: 22.71 MB / 354.8 MB, free: 9.891 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003401/0.1928, allocations: 1.546 MB / 356.4 MB, free: 8.332 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006007/0.1934, allocations: 369.2 kB / 356.7 MB, free: 7.973 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003878/0.1973, allocations: 2.761 MB / 359.5 MB, free: 5.188 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.259e-05/0.1974, allocations: 51.88 kB / 359.5 MB, free: 5.125 MB / 314.7 MB Notification: Performance of pre-optimization done (n=184): time 4.228e-06/0.1974, allocations: 0 / 359.5 MB, free: 5.125 MB / 314.7 MB Notification: Performance of matching and sorting (n=244): time 0.01425/0.2116, allocations: 7.221 MB / 366.8 MB, free: 13.84 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.003774/0.2154, allocations: 4.771 MB / 371.5 MB, free: 8.855 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001967/0.2174, allocations: 2.061 MB / 373.6 MB, free: 6.754 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000149/0.2175, allocations: 65.69 kB / 373.7 MB, free: 6.684 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001148/0.2187, allocations: 2.458 MB / 376.1 MB, free: 4.195 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006582/0.2193, allocations: 0.9143 MB / 377 MB, free: 3.273 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009258/0.2202, allocations: 0.9698 MB / 378 MB, free: 2.293 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001085/0.2203, allocations: 357.8 kB / 378.3 MB, free: 1.938 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001177/0.2215, allocations: 0.6188 MB / 379 MB, free: 1.312 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002281/0.2238, allocations: 3.189 MB / 382.2 MB, free: 12.82 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003566/0.2274, allocations: 4.41 MB / 386.6 MB, free: 7.098 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.6e-05/0.2274, allocations: 28 kB / 386.6 MB, free: 7.07 MB / 346.7 MB Notification: Performance of matching and sorting (n=681) (initialization): time 0.004889/0.2323, allocations: 3.639 MB / 390.2 MB, free: 3.379 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.609e-05/0.2324, allocations: 56.17 kB / 390.3 MB, free: 3.324 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.448e-05/0.2324, allocations: 92 kB / 390.4 MB, free: 3.234 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009673/0.2334, allocations: 0.5044 MB / 390.9 MB, free: 2.711 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00177/0.2352, allocations: 1.057 MB / 391.9 MB, free: 1.652 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005682/0.2408, allocations: 8.023 MB / 400 MB, free: 9.246 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002078/0.2429, allocations: 199.9 kB / 400.2 MB, free: 9.051 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002978/0.2432, allocations: 259.9 kB / 400.4 MB, free: 8.797 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.001116/0.2443, allocations: 0.4945 MB / 400.9 MB, free: 8.289 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002899/0.2446, allocations: 215.7 kB / 401.1 MB, free: 8.078 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002027/0.2467, allocations: 1.474 MB / 402.6 MB, free: 6.57 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.001515/0.2482, allocations: 1.055 MB / 403.6 MB, free: 5.488 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.007e-06/0.2482, allocations: 8 kB / 403.7 MB, free: 5.48 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.556e-05/0.2482, allocations: 11.95 kB / 403.7 MB, free: 5.469 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007542/0.2557, allocations: 5.257 MB / 408.9 MB, free: 4 kB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.444e-06/0.2557, allocations: 4.531 kB / 408.9 MB, free: 0 / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00056/0.2563, allocations: 267.5 kB / 409.2 MB, free: 15.73 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001237/0.2575, allocations: 0.6274 MB / 409.8 MB, free: 15.09 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001139/0.2577, allocations: 51.95 kB / 409.9 MB, free: 15.04 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00569/0.2633, allocations: 7.405 MB / 417.3 MB, free: 7.254 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.003205/0.2666, allocations: 4.146 MB / 421.4 MB, free: 2.895 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002811/0.2694, allocations: 1.997 MB / 423.4 MB, free: 0.7852 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003547/0.2697, allocations: 218.3 kB / 423.6 MB, free: 0.5703 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001946/0.2699, allocations: 47.98 kB / 423.7 MB, free: 0.5234 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004669/0.2704, allocations: 44 kB / 423.7 MB, free: 492 kB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002638/0.2706, allocations: 173.5 kB / 423.9 MB, free: 316 kB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.488e-05/0.2707, allocations: 55.98 kB / 423.9 MB, free: 260 kB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0007879/0.2715, allocations: 0.748 MB / 424.7 MB, free: 15.48 MB / 394.7 MB Notification: Performance of sort global known variables: time 9e-08/0.2715, allocations: 0 / 424.7 MB, free: 15.48 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.002915/0.2744, allocations: 0.9958 MB / 425.7 MB, free: 14.49 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.0003066/0.2747, allocations: 156 kB / 425.8 MB, free: 14.33 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.003187/0.2779, allocations: 2.826 MB / 428.7 MB, free: 11.46 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 9.413e-05/0.278, allocations: 64 kB / 428.7 MB, free: 11.39 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001325/0.2793, allocations: 1.346 MB / 430.1 MB, free: 9.98 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001008/0.2804, allocations: 361.1 kB / 430.4 MB, free: 9.637 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01013/0.2905, allocations: 7.16 MB / 437.6 MB, free: 2.332 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001132/0.2916, allocations: 1.101 MB / 438.7 MB, free: 1.203 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001118/0.2927, allocations: 373.4 kB / 439 MB, free: 0.832 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007214/0.2935, allocations: 457.2 kB / 439.5 MB, free: 392 kB / 394.7 MB Notification: Performance of SimCode: time 2.014e-06/0.2935, allocations: 7.938 kB / 439.5 MB, free: 384 kB / 394.7 MB Notification: Performance of Templates: time 0.1443/0.4378, allocations: 33.31 MB / 472.8 MB, free: 105.2 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 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.823747423943132]