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.001142/0.001142, allocations: 92.2 kB / 20.19 MB, free: 4.359 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.001224/0.001224, allocations: 173 kB / 23.49 MB, free: 1.055 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.9797/0.9797, allocations: 177.1 MB / 203.8 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.02871/0.02871, allocations: 7.183 MB / 267.5 MB, free: 6.117 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.823e-06/1.823e-06, allocations: 0 / 338.9 MB, free: 10.53 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.962e-05/2.144e-05, allocations: 5.125 kB / 338.9 MB, free: 10.53 MB / 266.7 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection): time 0.01002/0.01004, allocations: 10.16 MB / 349 MB, free: 320 kB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00577/0.01581, allocations: 2.975 MB / 352 MB, free: 13.33 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007944/0.0166, allocations: 51.81 kB / 352.1 MB, free: 13.28 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001018/0.01762, allocations: 472.6 kB / 352.5 MB, free: 12.81 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003182/0.0208, allocations: 1.699 MB / 354.2 MB, free: 11.11 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004501/0.02125, allocations: 223.4 kB / 354.4 MB, free: 10.89 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.003105/0.02436, allocations: 3.104 MB / 357.5 MB, free: 7.773 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004277/0.02864, allocations: 1.027 MB / 358.6 MB, free: 6.715 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001927/0.03056, allocations: 1.699 MB / 360.3 MB, free: 5.012 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00273/0.03329, allocations: 1.519 MB / 361.8 MB, free: 3.488 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003588/0.03365, allocations: 280 kB / 362.1 MB, free: 3.215 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001059/0.03471, allocations: 0.8776 MB / 362.9 MB, free: 2.336 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009797/0.03569, allocations: 1.464 MB / 364.4 MB, free: 0.8672 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000911/0.0366, allocations: 1.004 MB / 365.4 MB, free: 15.86 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00351/0.04011, allocations: 3.782 MB / 369.2 MB, free: 12.06 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.04011, allocations: 0 / 369.2 MB, free: 12.06 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.643e-06/0.04012, allocations: 0 / 369.2 MB, free: 12.06 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.969e-05/0.04016, allocations: 0 / 369.2 MB, free: 12.06 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.01037/0.05053, allocations: 6.114 MB / 375.3 MB, free: 5.887 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.978e-05/0.05057, allocations: 8.625 kB / 375.3 MB, free: 5.879 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005945/0.05651, allocations: 2.335 MB / 377.7 MB, free: 3.539 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001988/0.0585, allocations: 1.433 MB / 379.1 MB, free: 2.074 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001305/0.05863, allocations: 192.8 kB / 379.3 MB, free: 1.883 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003834/0.05902, allocations: 247.8 kB / 379.5 MB, free: 1.641 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007546/0.06656, allocations: 5.026 MB / 384.5 MB, free: 11.95 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.004e-05/0.06663, allocations: 31.75 kB / 384.6 MB, free: 11.92 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002948/0.06693, allocations: 119.8 kB / 384.7 MB, free: 11.8 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002832/0.06976, allocations: 2.083 MB / 386.8 MB, free: 9.719 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007326/0.07708, allocations: 2.894 MB / 389.7 MB, free: 6.816 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1955/0.2726, allocations: 31.75 MB / 421.4 MB, free: 51.3 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004678/0.2773, allocations: 1.614 MB / 423 MB, free: 51.24 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007785/0.2781, allocations: 492.9 kB / 423.5 MB, free: 51.22 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003991/0.2821, allocations: 3.076 MB / 426.6 MB, free: 50.82 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.91e-05/0.2821, allocations: 53.52 kB / 426.6 MB, free: 50.78 MB / 330.7 MB Notification: Performance of pre-optimization done (n=184): time 3.817e-06/0.2821, allocations: 3.531 kB / 426.7 MB, free: 50.78 MB / 330.7 MB Notification: Performance of matching and sorting (n=244): time 0.01388/0.296, allocations: 8.242 MB / 434.9 MB, free: 49.44 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00362/0.2996, allocations: 6.31 MB / 441.2 MB, free: 43.82 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00198/0.3016, allocations: 2.276 MB / 443.5 MB, free: 41.93 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 9.343e-05/0.3017, allocations: 63.89 kB / 443.5 MB, free: 41.87 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007646/0.3024, allocations: 2.646 MB / 446.2 MB, free: 39.27 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000414/0.3029, allocations: 0.9471 MB / 447.1 MB, free: 38.34 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007554/0.3036, allocations: 1.073 MB / 448.2 MB, free: 37.25 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.801e-05/0.3037, allocations: 0.5238 MB / 448.7 MB, free: 36.72 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009188/0.3046, allocations: 0.5761 MB / 449.3 MB, free: 36.14 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001763/0.3064, allocations: 4.422 MB / 453.7 MB, free: 30.01 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003413/0.3098, allocations: 5.593 MB / 459.3 MB, free: 22.72 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.658e-05/0.3098, allocations: 28 kB / 459.3 MB, free: 22.69 MB / 330.7 MB Notification: Performance of matching and sorting (n=676) (initialization): time 0.005314/0.3151, allocations: 4.492 MB / 463.8 MB, free: 18.18 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.169e-05/0.3152, allocations: 48.25 kB / 463.9 MB, free: 18.14 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.014e-05/0.3152, allocations: 94.81 kB / 464 MB, free: 18.05 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001061/0.3163, allocations: 0.542 MB / 464.5 MB, free: 17.49 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00167/0.318, allocations: 1.079 MB / 465.6 MB, free: 16.41 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005387/0.3234, allocations: 10.87 MB / 476.5 MB, free: 5.066 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001981/0.3253, allocations: 303.2 kB / 476.8 MB, free: 4.773 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002328/0.3256, allocations: 296 kB / 477.1 MB, free: 4.484 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 413 * 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 (598): * Single equations (assignments): 587 * 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.0009432/0.3265, allocations: 0.5482 MB / 477.6 MB, free: 3.93 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002928/0.3268, allocations: 326.2 kB / 477.9 MB, free: 3.609 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002421/0.3292, allocations: 1.938 MB / 479.9 MB, free: 1.645 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.001906/0.3311, allocations: 1.52 MB / 481.4 MB, free: 96 kB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.016e-05/0.3311, allocations: 8 kB / 481.4 MB, free: 88 kB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.347e-05/0.3311, allocations: 11.95 kB / 481.4 MB, free: 76 kB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009479/0.3406, allocations: 7.698 MB / 489.1 MB, free: 8.203 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.594e-06/0.3406, allocations: 4.531 kB / 489.1 MB, free: 8.199 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005918/0.3412, allocations: 287.6 kB / 489.4 MB, free: 7.918 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001258/0.3425, allocations: 0.6316 MB / 490 MB, free: 7.273 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.979e-05/0.3426, allocations: 43.98 kB / 490.1 MB, free: 7.23 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006629/0.3492, allocations: 10.25 MB / 0.4886 GB, free: 12.53 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.003548/0.3528, allocations: 5.549 MB / 0.494 GB, free: 6.723 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003475/0.3562, allocations: 2.615 MB / 0.4966 GB, free: 3.996 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003011/0.3565, allocations: 234.4 kB / 0.4968 GB, free: 3.766 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001803/0.3567, allocations: 51.92 kB / 0.4968 GB, free: 3.715 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005576/0.3573, allocations: 123.5 kB / 0.4969 GB, free: 3.598 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002432/0.3575, allocations: 169.5 kB / 0.4971 GB, free: 3.434 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.808e-05/0.3576, allocations: 79.97 kB / 0.4972 GB, free: 3.355 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001065/0.3587, allocations: 0.9977 MB / 0.4982 GB, free: 2.34 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.21e-07/0.3587, allocations: 0 / 0.4982 GB, free: 2.34 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002764/0.3614, allocations: 0.9843 MB / 0.4991 GB, free: 1.355 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.0003162/0.3617, allocations: 182.7 kB / 0.4993 GB, free: 1.172 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.004006/0.3657, allocations: 3.354 MB / 0.5026 GB, free: 13.75 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.975e-06/0.3658, allocations: 0 / 0.5026 GB, free: 13.75 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001553/0.3673, allocations: 1.774 MB / 0.5043 GB, free: 11.91 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009829/0.3683, allocations: 358 kB / 0.5046 GB, free: 11.57 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008342/0.3766, allocations: 7.156 MB / 0.5116 GB, free: 4.246 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009853/0.3776, allocations: 1.108 MB / 0.5127 GB, free: 3.113 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001651/0.3793, allocations: 1.152 MB / 0.5138 GB, free: 1.953 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006269/0.3799, allocations: 196.4 kB / 0.514 GB, free: 1.762 MB / 378.7 MB Notification: Performance of SimCode: time 2.225e-06/0.3799, allocations: 0 / 0.514 GB, free: 1.762 MB / 378.7 MB Notification: Performance of Templates: time 0.04181/0.4217, allocations: 30.58 MB / 0.5439 GB, free: 3.625 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: 3.9834676200989634]