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.0008432/0.0008432, allocations: 72.19 kB / 9.903 MB, free: 0.7852 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001281/0.002124, allocations: 435.8 kB / 10.33 MB, free: 368 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.0007907/0.0007907, allocations: 161.1 kB / 11.23 MB, free: 2.941 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001024/0.001815, allocations: 463.6 kB / 11.68 MB, free: 2.484 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 1.041/1.041, allocations: 177.2 MB / 189.6 MB, free: 5.309 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09077/1.132, allocations: 53.66 MB / 243.2 MB, free: 15.58 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.02768/0.02768, allocations: 7.18 MB / 251.1 MB, free: 7.867 MB / 250.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.004432/0.03211, allocations: 2.557 MB / 253.7 MB, free: 5.305 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.183e-06/1.183e-06, allocations: 0 / 255 MB, free: 4.039 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.742e-05/1.861e-05, allocations: 2.312 kB / 255 MB, free: 4.035 MB / 250.7 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection): time 0.007174/0.007193, allocations: 10.1 MB / 265.1 MB, free: 9.891 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005329/0.01252, allocations: 3.106 MB / 268.2 MB, free: 6.773 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007365/0.01326, allocations: 51.81 kB / 268.2 MB, free: 6.723 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007518/0.01401, allocations: 488.6 kB / 268.7 MB, free: 6.242 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002794/0.0168, allocations: 1.691 MB / 270.4 MB, free: 4.543 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003986/0.0172, allocations: 203.5 kB / 270.6 MB, free: 4.344 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002721/0.01992, allocations: 3.127 MB / 273.7 MB, free: 1.211 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001111/0.02103, allocations: 1.052 MB / 274.8 MB, free: 132 kB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1281/0.1491, allocations: 1.775 MB / 276.5 MB, free: 2.758 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001661/0.1507, allocations: 1.46 MB / 278 MB, free: 2.758 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000396/0.1511, allocations: 279.1 kB / 278.3 MB, free: 2.758 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001326/0.1525, allocations: 0.8818 MB / 279.1 MB, free: 2.758 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009217/0.1534, allocations: 1.296 MB / 280.4 MB, free: 2.758 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008833/0.1543, allocations: 0.8318 MB / 281.3 MB, free: 2.617 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003398/0.1577, allocations: 3.537 MB / 284.8 MB, free: 2.008 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.338e-05/0.1577, allocations: 0 / 284.8 MB, free: 2.008 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.463e-06/0.1577, allocations: 1.25 kB / 284.8 MB, free: 2.008 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.577e-05/0.1578, allocations: 0 / 284.8 MB, free: 2.008 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.007228/0.165, allocations: 5.271 MB / 290.1 MB, free: 316 kB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.154e-05/0.165, allocations: 11.36 kB / 290.1 MB, free: 316 kB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00349/0.1685, allocations: 1.099 MB / 291.2 MB, free: 292 kB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001553/0.1701, allocations: 1.149 MB / 292.3 MB, free: 15.88 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001099/0.1702, allocations: 190.6 kB / 292.5 MB, free: 15.87 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000359/0.1705, allocations: 246.4 kB / 292.8 MB, free: 15.86 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005271/0.1758, allocations: 4.242 MB / 297 MB, free: 13.74 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.523e-05/0.1759, allocations: 33.7 kB / 297 MB, free: 13.73 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002848/0.1761, allocations: 116 kB / 297.2 MB, free: 13.65 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002169/0.1783, allocations: 1.889 MB / 299 MB, free: 11.78 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005027/0.1833, allocations: 2.365 MB / 301.4 MB, free: 9.57 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0206/0.2039, allocations: 22.69 MB / 324.1 MB, free: 3.254 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004262/0.2082, allocations: 1.507 MB / 325.6 MB, free: 1.805 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005888/0.2088, allocations: 365.3 kB / 326 MB, free: 1.453 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004036/0.2128, allocations: 2.746 MB / 328.7 MB, free: 14.76 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.872e-05/0.2129, allocations: 47.88 kB / 328.8 MB, free: 14.7 MB / 314.7 MB Notification: Performance of pre-optimization done (n=184): time 3.557e-06/0.2129, allocations: 0 / 328.8 MB, free: 14.7 MB / 314.7 MB Notification: Performance of matching and sorting (n=244): time 0.01593/0.2288, allocations: 7.156 MB / 335.9 MB, free: 7.664 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.003348/0.2321, allocations: 4.797 MB / 340.7 MB, free: 2.754 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001643/0.2338, allocations: 2.069 MB / 342.8 MB, free: 1.023 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 8.389e-05/0.2339, allocations: 54.8 kB / 342.8 MB, free: 0.9648 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009799/0.2349, allocations: 2.465 MB / 345.3 MB, free: 14.59 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004749/0.2353, allocations: 0.9067 MB / 346.2 MB, free: 13.73 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008395/0.2362, allocations: 0.9669 MB / 347.2 MB, free: 12.87 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001515/0.2363, allocations: 361.1 kB / 347.5 MB, free: 12.54 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001082/0.2374, allocations: 0.6266 MB / 348.1 MB, free: 11.91 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002075/0.2395, allocations: 3.188 MB / 351.3 MB, free: 7.594 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00336/0.2428, allocations: 4.413 MB / 355.7 MB, free: 2.051 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.349e-05/0.2429, allocations: 28 kB / 355.8 MB, free: 2.023 MB / 330.7 MB Notification: Performance of matching and sorting (n=681) (initialization): time 0.004178/0.247, allocations: 3.642 MB / 359.4 MB, free: 14.34 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.023e-05/0.2471, allocations: 46.03 kB / 359.5 MB, free: 14.3 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.537e-05/0.2472, allocations: 92 kB / 359.6 MB, free: 14.21 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009505/0.2481, allocations: 0.519 MB / 360.1 MB, free: 13.69 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001966/0.2501, allocations: 1.186 MB / 361.3 MB, free: 12.5 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005174/0.2553, allocations: 8.025 MB / 369.3 MB, free: 4.176 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001599/0.2569, allocations: 210.5 kB / 369.5 MB, free: 3.973 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000254/0.2571, allocations: 256 kB / 369.7 MB, free: 3.723 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.001358/0.2585, allocations: 0.5107 MB / 370.2 MB, free: 3.203 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002298/0.2587, allocations: 203.8 kB / 370.4 MB, free: 3.004 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001917/0.2606, allocations: 1.481 MB / 371.9 MB, free: 1.5 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.00137/0.262, allocations: 1.046 MB / 373 MB, free: 452 kB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.583e-06/0.262, allocations: 8 kB / 373 MB, free: 444 kB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.458e-05/0.262, allocations: 11.95 kB / 373 MB, free: 432 kB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006876/0.2689, allocations: 5.26 MB / 378.3 MB, free: 11.23 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.652e-06/0.2689, allocations: 4 kB / 378.3 MB, free: 11.22 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000607/0.2695, allocations: 295.6 kB / 378.5 MB, free: 10.93 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002195/0.2697, allocations: 226.8 kB / 378.8 MB, free: 10.71 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001193/0.2709, allocations: 0.6248 MB / 379.4 MB, free: 10.07 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001061/0.271, allocations: 47.98 kB / 379.4 MB, free: 10.02 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005332/0.2764, allocations: 7.433 MB / 386.9 MB, free: 2.211 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002891/0.2792, allocations: 4.163 MB / 391 MB, free: 13.84 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002311/0.2816, allocations: 1.993 MB / 393 MB, free: 11.73 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001914/0.2817, allocations: 40 kB / 393.1 MB, free: 11.69 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004636/0.2822, allocations: 43.98 kB / 393.1 MB, free: 11.64 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002439/0.2825, allocations: 173.6 kB / 393.3 MB, free: 11.47 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.331e-05/0.2825, allocations: 59.97 kB / 393.3 MB, free: 11.41 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000723/0.2833, allocations: 0.7479 MB / 394.1 MB, free: 10.64 MB / 378.7 MB Notification: Performance of sort global known variables: time 5e-08/0.2833, allocations: 0 / 394.1 MB, free: 10.64 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002855/0.2861, allocations: 0.9959 MB / 395.1 MB, free: 9.648 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.0003068/0.2864, allocations: 172 kB / 395.3 MB, free: 9.473 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002871/0.2893, allocations: 2.822 MB / 398.1 MB, free: 6.609 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 0.000128/0.2894, allocations: 70.55 kB / 398.1 MB, free: 6.535 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001207/0.2906, allocations: 1.35 MB / 399.5 MB, free: 5.129 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001031/0.2917, allocations: 0.5529 MB / 400 MB, free: 4.586 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01158/0.3032, allocations: 7.312 MB / 407.4 MB, free: 13.12 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001125/0.3044, allocations: 1.097 MB / 408.5 MB, free: 12 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0009424/0.3053, allocations: 385.3 kB / 408.8 MB, free: 11.62 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006601/0.306, allocations: 465.2 kB / 409.3 MB, free: 11.16 MB / 394.7 MB Notification: Performance of SimCode: time 4.518e-06/0.306, allocations: 0 / 409.3 MB, free: 11.16 MB / 394.7 MB Notification: Performance of Templates: time 0.1557/0.4617, allocations: 33.83 MB / 443.1 MB, free: 112.8 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.878064040094614]