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.0007123/0.0007123, allocations: 81.05 kB / 9.981 MB, free: 0.707 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001079/0.001791, allocations: 440 kB / 10.41 MB, free: 284 kB / 10.45 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.0007492/0.0007492, allocations: 157.1 kB / 11.33 MB, free: 2.844 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009644/0.001714, allocations: 475.6 kB / 11.79 MB, free: 2.375 MB / 13.93 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.9204/0.9204, allocations: 177.2 MB / 189.7 MB, free: 5.242 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09354/1.014, allocations: 53.66 MB / 243.4 MB, free: 15.5 MB / 250.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.02771/0.02771, allocations: 7.182 MB / 251.3 MB, free: 7.77 MB / 250.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.004188/0.0319, allocations: 2.565 MB / 253.9 MB, free: 5.199 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.263e-06/1.263e-06, allocations: 0 / 255.2 MB, free: 3.914 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.92e-05/2.046e-05, allocations: 2.312 kB / 255.2 MB, free: 3.91 MB / 250.7 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection): time 0.007606/0.007626, allocations: 10.1 MB / 265.3 MB, free: 9.762 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004269/0.0119, allocations: 3.106 MB / 268.4 MB, free: 6.645 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006626/0.01256, allocations: 51.81 kB / 268.4 MB, free: 6.594 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006255/0.01318, allocations: 496.6 kB / 268.9 MB, free: 6.105 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002228/0.01541, allocations: 1.687 MB / 270.6 MB, free: 4.41 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000321/0.01573, allocations: 203.6 kB / 270.8 MB, free: 4.211 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001871/0.0176, allocations: 3.104 MB / 273.9 MB, free: 1.098 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000747/0.01835, allocations: 1.056 MB / 275 MB, free: 8 kB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1092/0.1275, allocations: 1.772 MB / 276.7 MB, free: 2.711 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002526/0.1301, allocations: 1.456 MB / 278.2 MB, free: 2.711 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006758/0.1307, allocations: 281 kB / 278.5 MB, free: 2.711 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001664/0.1324, allocations: 0.8851 MB / 279.3 MB, free: 2.711 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009299/0.1333, allocations: 1.301 MB / 280.6 MB, free: 2.711 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007439/0.1341, allocations: 0.8343 MB / 281.5 MB, free: 2.57 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00279/0.1369, allocations: 3.528 MB / 285 MB, free: 1.965 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.889e-06/0.1369, allocations: 3.5 kB / 285 MB, free: 1.965 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.573e-06/0.1369, allocations: 0 / 285 MB, free: 1.965 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001262/0.137, allocations: 5.219 kB / 285 MB, free: 1.961 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.01069/0.1477, allocations: 5.276 MB / 290.3 MB, free: 268 kB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.926e-05/0.1477, allocations: 11.36 kB / 290.3 MB, free: 268 kB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004663/0.1524, allocations: 1.093 MB / 291.4 MB, free: 244 kB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003109/0.1555, allocations: 1.149 MB / 292.5 MB, free: 15.83 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001624/0.1557, allocations: 193.3 kB / 292.7 MB, free: 15.82 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006013/0.1563, allocations: 248.1 kB / 293 MB, free: 15.82 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009224/0.1655, allocations: 4.238 MB / 297.2 MB, free: 13.59 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.254e-05/0.1656, allocations: 24.48 kB / 297.2 MB, free: 13.58 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002448/0.1658, allocations: 122 kB / 297.4 MB, free: 13.5 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001677/0.1675, allocations: 1.782 MB / 299.1 MB, free: 11.73 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004836/0.1723, allocations: 2.371 MB / 301.5 MB, free: 9.52 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02088/0.1932, allocations: 22.69 MB / 324.2 MB, free: 3.199 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003519/0.1967, allocations: 1.5 MB / 325.7 MB, free: 1.75 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004531/0.1972, allocations: 367.9 kB / 326.1 MB, free: 1.398 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003368/0.2006, allocations: 2.753 MB / 328.8 MB, free: 14.7 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.145e-05/0.2006, allocations: 47.88 kB / 328.9 MB, free: 14.64 MB / 314.7 MB Notification: Performance of pre-optimization done (n=184): time 3.347e-06/0.2006, allocations: 0 / 328.9 MB, free: 14.64 MB / 314.7 MB Notification: Performance of matching and sorting (n=244): time 0.01301/0.2136, allocations: 7.46 MB / 336.3 MB, free: 7.305 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.003535/0.2171, allocations: 4.793 MB / 341.1 MB, free: 2.391 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001972/0.2191, allocations: 2.056 MB / 343.2 MB, free: 0.6719 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002093/0.2193, allocations: 61.64 kB / 343.2 MB, free: 0.6055 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001081/0.2204, allocations: 2.457 MB / 345.7 MB, free: 14.24 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006034/0.221, allocations: 0.9139 MB / 346.6 MB, free: 13.38 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008561/0.2219, allocations: 0.9653 MB / 347.6 MB, free: 12.52 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001133/0.222, allocations: 359.6 kB / 347.9 MB, free: 12.19 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001139/0.2231, allocations: 0.6306 MB / 348.5 MB, free: 11.55 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002101/0.2252, allocations: 3.182 MB / 351.7 MB, free: 7.242 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003808/0.229, allocations: 4.735 MB / 356.5 MB, free: 1.375 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.705e-05/0.2291, allocations: 31.94 kB / 356.5 MB, free: 1.344 MB / 330.7 MB Notification: Performance of matching and sorting (n=681) (initialization): time 0.004433/0.2335, allocations: 3.631 MB / 360.1 MB, free: 13.67 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.659e-05/0.2335, allocations: 44.97 kB / 360.2 MB, free: 13.63 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.576e-05/0.2336, allocations: 96 kB / 360.3 MB, free: 13.54 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000966/0.2346, allocations: 0.5203 MB / 360.8 MB, free: 13.01 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001978/0.2366, allocations: 1.186 MB / 362 MB, free: 11.82 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005346/0.2419, allocations: 8.04 MB / 370 MB, free: 3.484 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002082/0.244, allocations: 203.9 kB / 370.2 MB, free: 3.285 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003177/0.2443, allocations: 255.9 kB / 370.5 MB, free: 3.035 MB / 346.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.001557/0.2459, allocations: 0.5047 MB / 371 MB, free: 2.52 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003178/0.2462, allocations: 201.4 kB / 371.2 MB, free: 2.324 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001965/0.2482, allocations: 1.48 MB / 372.6 MB, free: 0.8203 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.001385/0.2495, allocations: 1.048 MB / 373.7 MB, free: 15.76 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.019e-05/0.2496, allocations: 8 kB / 373.7 MB, free: 15.75 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.376e-05/0.2496, allocations: 11.97 kB / 373.7 MB, free: 15.74 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008095/0.2577, allocations: 5.263 MB / 379 MB, free: 10.54 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.883e-05/0.2577, allocations: 12 kB / 379 MB, free: 10.53 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006184/0.2583, allocations: 300.1 kB / 379.3 MB, free: 10.23 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004548/0.2588, allocations: 226.2 kB / 379.5 MB, free: 10.01 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001283/0.26, allocations: 0.6274 MB / 380.1 MB, free: 9.367 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001093/0.2602, allocations: 51.97 kB / 380.2 MB, free: 9.316 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005212/0.2654, allocations: 7.426 MB / 387.6 MB, free: 1.508 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002838/0.2682, allocations: 4.171 MB / 391.8 MB, free: 13.14 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002955/0.2712, allocations: 2.009 MB / 393.8 MB, free: 11.01 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000348/0.2715, allocations: 40 kB / 393.8 MB, free: 10.97 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005315/0.272, allocations: 47.98 kB / 393.9 MB, free: 10.93 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002645/0.2723, allocations: 173.5 kB / 394 MB, free: 10.75 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.288e-05/0.2724, allocations: 47.98 kB / 394.1 MB, free: 10.71 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001632/0.274, allocations: 1.511 MB / 395.6 MB, free: 8.898 MB / 378.7 MB Notification: Performance of sort global known variables: time 8e-08/0.274, allocations: 0 / 395.6 MB, free: 8.898 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002936/0.277, allocations: 0.9882 MB / 396.6 MB, free: 7.91 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.0003473/0.2773, allocations: 168 kB / 396.7 MB, free: 7.738 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003406/0.2807, allocations: 2.913 MB / 399.7 MB, free: 4.789 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001316/0.2808, allocations: 86.67 kB / 399.7 MB, free: 4.699 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001517/0.2824, allocations: 1.476 MB / 401.2 MB, free: 3.172 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001786/0.2841, allocations: 2.341 MB / 403.6 MB, free: 496 kB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01222/0.2964, allocations: 7.304 MB / 410.9 MB, free: 9.02 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001129/0.2975, allocations: 1.097 MB / 412 MB, free: 7.898 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001098/0.2986, allocations: 373.6 kB / 412.3 MB, free: 7.527 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006376/0.2992, allocations: 453.1 kB / 412.8 MB, free: 7.086 MB / 394.7 MB Notification: Performance of SimCode: time 1.623e-06/0.2992, allocations: 0 / 412.8 MB, free: 7.086 MB / 394.7 MB Notification: Performance of Templates: time 0.158/0.4573, allocations: 33.84 MB / 446.6 MB, free: 109.5 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.404255914501846]