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.001407/0.001407, 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.001001/0.001001, allocations: 169 kB / 23.02 MB, free: 1.551 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 1.017/1.017, allocations: 177.1 MB / 203.4 MB, free: 5.637 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.02983/0.02983, allocations: 7.184 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_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.224e-06/2.224e-06, allocations: 0 / 338.9 MB, free: 10.22 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.075e-05/3.297e-05, allocations: 4.703 kB / 338.9 MB, free: 10.21 MB / 266.7 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection): time 0.0103/0.01034, allocations: 10.19 MB / 349.1 MB, free: 15.98 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.005549/0.01588, allocations: 2.982 MB / 352 MB, free: 12.98 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005788/0.01646, allocations: 51.81 kB / 352.1 MB, free: 12.93 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009184/0.01738, allocations: 472.6 kB / 352.5 MB, free: 12.47 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003115/0.0205, allocations: 1.699 MB / 354.2 MB, free: 10.76 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004559/0.02095, allocations: 223.4 kB / 354.5 MB, free: 10.54 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.002932/0.02388, allocations: 3.116 MB / 357.6 MB, free: 7.422 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007877/0.02467, allocations: 1.031 MB / 358.6 MB, free: 6.359 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001172/0.02584, allocations: 1.699 MB / 360.3 MB, free: 4.656 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001225/0.02707, allocations: 1.523 MB / 361.8 MB, free: 3.129 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002498/0.02732, allocations: 280 kB / 362.1 MB, free: 2.855 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008722/0.02819, allocations: 0.8698 MB / 363 MB, free: 1.984 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007882/0.02898, allocations: 1.468 MB / 364.4 MB, free: 0.5117 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006767/0.02966, allocations: 1.012 MB / 365.5 MB, free: 15.5 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002661/0.03232, allocations: 3.774 MB / 369.2 MB, free: 11.71 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.156e-06/0.03232, allocations: 0 / 369.2 MB, free: 11.71 MB / 298.7 MB Notification: Performance of FrontEnd: time 9.51e-07/0.03232, allocations: 4 kB / 369.2 MB, free: 11.7 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.689e-05/0.03235, allocations: 0 / 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.007297/0.03965, allocations: 6.114 MB / 375.3 MB, free: 5.527 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.805e-05/0.03968, allocations: 8.625 kB / 375.4 MB, free: 5.52 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004012/0.0437, allocations: 2.331 MB / 377.7 MB, free: 3.184 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001572/0.04527, allocations: 1.433 MB / 379.1 MB, free: 1.715 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001034/0.04537, allocations: 192.8 kB / 379.3 MB, free: 1.523 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003095/0.04568, allocations: 243.8 kB / 379.5 MB, free: 1.285 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005516/0.0512, allocations: 5.034 MB / 384.6 MB, free: 11.59 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.432e-05/0.05125, allocations: 35.64 kB / 384.6 MB, free: 11.56 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002203/0.05147, allocations: 119.8 kB / 384.7 MB, free: 11.44 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00182/0.05329, allocations: 2.068 MB / 386.8 MB, free: 9.371 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005151/0.05844, allocations: 2.902 MB / 389.7 MB, free: 6.461 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1573/0.2158, allocations: 31.75 MB / 421.5 MB, free: 36.48 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00369/0.2194, allocations: 1.617 MB / 423.1 MB, free: 36.43 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007555/0.2202, allocations: 498.8 kB / 423.6 MB, free: 36.41 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004972/0.2252, allocations: 3.069 MB / 426.6 MB, free: 36 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.051e-05/0.2252, allocations: 51.38 kB / 426.7 MB, free: 35.95 MB / 330.7 MB Notification: Performance of pre-optimization done (n=184): time 3.687e-06/0.2252, allocations: 0 / 426.7 MB, free: 35.95 MB / 330.7 MB Notification: Performance of matching and sorting (n=244): time 0.0177/0.2429, allocations: 8.239 MB / 434.9 MB, free: 34.62 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.004363/0.2473, allocations: 6.31 MB / 441.2 MB, free: 30.17 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002266/0.2495, allocations: 2.27 MB / 443.5 MB, free: 29.74 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 8.812e-05/0.2496, allocations: 66.75 kB / 443.6 MB, free: 29.71 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001015/0.2506, allocations: 2.649 MB / 446.2 MB, free: 28.1 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005413/0.2512, allocations: 0.9335 MB / 447.1 MB, free: 27.52 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001116/0.2523, allocations: 1.083 MB / 448.2 MB, free: 26.95 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 8.227e-05/0.2524, allocations: 0.5312 MB / 448.8 MB, free: 26.44 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001185/0.2536, allocations: 0.5703 MB / 449.3 MB, free: 26.36 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002264/0.2558, allocations: 4.43 MB / 453.8 MB, free: 20.53 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004257/0.2601, allocations: 5.587 MB / 459.3 MB, free: 13.73 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.567e-05/0.2601, allocations: 26.88 kB / 459.4 MB, free: 13.7 MB / 330.7 MB Notification: Performance of matching and sorting (n=676) (initialization): time 0.006283/0.2664, allocations: 4.491 MB / 463.9 MB, free: 10.08 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.732e-05/0.2664, allocations: 46.5 kB / 463.9 MB, free: 10.04 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.718e-05/0.2665, allocations: 92 kB / 464 MB, free: 9.945 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001278/0.2678, allocations: 0.5523 MB / 464.6 MB, free: 9.379 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002284/0.2701, allocations: 1.072 MB / 465.6 MB, free: 8.305 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007328/0.2774, allocations: 10.88 MB / 476.5 MB, free: 12.97 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002261/0.2797, allocations: 298.8 kB / 476.8 MB, free: 12.68 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003625/0.28, allocations: 296 kB / 477.1 MB, free: 12.39 MB / 346.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.001137/0.2812, allocations: 0.5486 MB / 477.6 MB, free: 11.84 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004029/0.2816, allocations: 322.3 kB / 477.9 MB, free: 11.52 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003602/0.2852, allocations: 1.939 MB / 479.9 MB, free: 9.555 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.00254/0.2877, allocations: 1.523 MB / 481.4 MB, free: 8 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.067e-05/0.2877, allocations: 8 kB / 481.4 MB, free: 7.992 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.501e-05/0.2877, allocations: 11.95 kB / 481.4 MB, free: 7.98 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009695/0.2974, allocations: 7.703 MB / 489.1 MB, free: 112 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.044e-05/0.2974, allocations: 9.219 kB / 489.1 MB, free: 108 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005887/0.298, allocations: 279.6 kB / 489.4 MB, free: 15.83 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001256/0.2993, allocations: 0.6312 MB / 490 MB, free: 15.19 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.569e-05/0.2994, allocations: 49.39 kB / 490.1 MB, free: 15.14 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007108/0.3065, allocations: 10.23 MB / 0.4886 GB, free: 4.449 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.003613/0.3101, allocations: 5.559 MB / 0.494 GB, free: 14.64 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003623/0.3137, allocations: 2.611 MB / 0.4966 GB, free: 11.91 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003538/0.3141, allocations: 242.3 kB / 0.4968 GB, free: 11.68 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001679/0.3143, allocations: 47.05 kB / 0.4968 GB, free: 11.63 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005556/0.3148, allocations: 115.8 kB / 0.497 GB, free: 11.52 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002327/0.315, allocations: 177.5 kB / 0.4971 GB, free: 11.35 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.858e-05/0.3151, allocations: 67.97 kB / 0.4972 GB, free: 11.28 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001127/0.3163, allocations: 1.005 MB / 0.4982 GB, free: 10.26 MB / 378.7 MB Notification: Performance of sort global known variables: time 8e-08/0.3163, allocations: 0 / 0.4982 GB, free: 10.26 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003238/0.3195, allocations: 0.9825 MB / 0.4991 GB, free: 9.277 MB / 378.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.0003244/0.3198, allocations: 194.8 kB / 0.4993 GB, free: 9.082 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.004293/0.3241, allocations: 3.355 MB / 0.5026 GB, free: 5.668 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.3241, allocations: 0 / 0.5026 GB, free: 5.668 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001654/0.3258, allocations: 1.748 MB / 0.5043 GB, free: 3.852 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001031/0.3268, allocations: 369.4 kB / 0.5047 GB, free: 3.504 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008703/0.3355, allocations: 7.163 MB / 0.5117 GB, free: 12.18 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001043/0.3365, allocations: 1.112 MB / 0.5127 GB, free: 11.04 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001672/0.3382, allocations: 1.148 MB / 0.5139 GB, free: 9.883 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003717/0.3386, allocations: 196.4 kB / 0.514 GB, free: 9.691 MB / 394.7 MB Notification: Performance of SimCode: time 1.283e-06/0.3386, allocations: 0 / 0.514 GB, free: 9.691 MB / 394.7 MB Notification: Performance of Templates: time 0.04348/0.3821, allocations: 30.57 MB / 0.5439 GB, free: 11.58 MB / 426.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.160982023924589]