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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00185/0.00185, allocations: 108.3 kB / 16.4 MB, free: 6.504 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002152/0.002152, allocations: 198.7 kB / 19.36 MB, free: 3.73 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.538/1.538, allocations: 222.9 MB / 245 MB, free: 15 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.05044/0.05044, allocations: 9.137 MB / 306.3 MB, free: 3.754 MB / 238.1 MB " [Timeout remaining time 180] Using package PlanarMechanics with version 1.6.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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 0.002021/0.002021, allocations: 67.88 kB / 423.4 MB, free: 20.02 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1234/0.1254, allocations: 51.43 MB / 474.8 MB, free: 0.5469 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection): time 0.01336/0.1389, allocations: 10.48 MB / 485.3 MB, free: 6.02 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008095/0.147, allocations: 2.981 MB / 488.3 MB, free: 3.031 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00207/0.1491, allocations: 47.88 kB / 488.3 MB, free: 2.984 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001592/0.1508, allocations: 440.9 kB / 488.7 MB, free: 2.551 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005442/0.1563, allocations: 1.575 MB / 490.3 MB, free: 0.9688 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008953/0.1572, allocations: 223.6 kB / 490.5 MB, free: 0.75 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004921/0.1621, allocations: 3.023 MB / 493.6 MB, free: 13.72 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002029/0.1642, allocations: 1.182 MB / 494.7 MB, free: 12.5 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002017/0.1662, allocations: 1.093 MB / 495.8 MB, free: 11.4 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002493/0.1687, allocations: 1.545 MB / 497.4 MB, free: 9.852 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006345/0.1694, allocations: 276 kB / 497.6 MB, free: 9.582 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00197/0.1713, allocations: 0.8738 MB / 498.5 MB, free: 8.707 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001679/0.173, allocations: 1.406 MB / 499.9 MB, free: 7.297 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002385/0.1754, allocations: 1.856 MB / 0.49 GB, free: 5.43 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008101/0.1835, allocations: 5.742 MB / 0.4956 GB, free: 15.66 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.172e-06/0.1836, allocations: 0 / 0.4956 GB, free: 15.66 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.953e-06/0.1836, allocations: 0 / 0.4956 GB, free: 15.66 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001773/0.1838, allocations: 0 / 0.4956 GB, free: 15.66 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1368 * Number of variables: 1368 Notification: Performance of Generate backend data structure: time 0.0164/0.2002, allocations: 5.835 MB / 0.5013 GB, free: 9.754 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.642e-05/0.2003, allocations: 12.03 kB / 0.5013 GB, free: 9.742 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007428/0.2077, allocations: 1.847 MB / 0.5031 GB, free: 7.891 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004175/0.2119, allocations: 1.58 MB / 0.5047 GB, free: 6.266 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002768/0.2122, allocations: 188.6 kB / 0.5049 GB, free: 6.078 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001183/0.2134, allocations: 247.8 kB / 0.5051 GB, free: 5.836 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2339/0.4473, allocations: 9.299 MB / 0.5142 GB, free: 39.23 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000104/0.4474, allocations: 28.09 kB / 0.5142 GB, free: 39.22 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003322/0.4478, allocations: 121.6 kB / 0.5143 GB, free: 39.18 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003278/0.451, allocations: 2.077 MB / 0.5163 GB, free: 38.77 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0166/0.4677, allocations: 8.243 MB / 0.5244 GB, free: 36.04 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03645/0.5042, allocations: 29.99 MB / 0.5537 GB, free: 12.36 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006645/0.5109, allocations: 3.035 MB / 0.5566 GB, free: 9.203 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001441/0.5123, allocations: 1.116 MB / 0.5577 GB, free: 8.09 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005949/0.5183, allocations: 6.292 MB / 0.5639 GB, free: 1.266 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.651e-05/0.5183, allocations: 47.88 kB / 0.5639 GB, free: 1.211 MB / 382.1 MB Notification: Performance of pre-optimization done (n=179): time 3.125e-06/0.5184, allocations: 0 / 0.5639 GB, free: 1.211 MB / 382.1 MB Notification: Performance of matching and sorting (n=239): time 0.03113/0.5495, allocations: 12.41 MB / 0.576 GB, free: 4.805 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00949/0.559, allocations: 6.944 MB / 0.5828 GB, free: 13.56 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005165/0.5642, allocations: 3.077 MB / 0.5858 GB, free: 10.46 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003819/0.5646, allocations: 57.7 kB / 0.5859 GB, free: 10.4 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002325/0.567, allocations: 2.521 MB / 0.5884 GB, free: 7.855 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001142/0.5681, allocations: 0.9104 MB / 0.5892 GB, free: 6.941 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00143/0.5696, allocations: 1.005 MB / 0.5902 GB, free: 5.926 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001505/0.5697, allocations: 313 kB / 0.5905 GB, free: 5.617 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002991/0.5727, allocations: 1.708 MB / 0.5922 GB, free: 3.902 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005222/0.578, allocations: 4.331 MB / 0.5964 GB, free: 14.29 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008798/0.5868, allocations: 6.534 MB / 0.6028 GB, free: 6.484 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.276e-05/0.5869, allocations: 24 kB / 0.6028 GB, free: 6.461 MB / 430.1 MB Notification: Performance of matching and sorting (n=668) (initialization): time 0.01321/0.6001, allocations: 6.689 MB / 0.6094 GB, free: 15.75 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.927e-05/0.6002, allocations: 48.03 kB / 0.6094 GB, free: 15.71 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001143/0.6003, allocations: 92 kB / 0.6095 GB, free: 15.62 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001809/0.6021, allocations: 0.701 MB / 0.6102 GB, free: 14.9 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003448/0.6056, allocations: 1.075 MB / 0.6112 GB, free: 13.83 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01461/0.6202, allocations: 12.19 MB / 0.6231 GB, free: 1.074 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003553/0.6238, allocations: 299.8 kB / 0.6234 GB, free: 0.7812 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005291/0.6244, allocations: 296 kB / 0.6237 GB, free: 0.4922 MB / 446.1 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 (590): * Single equations (assignments): 579 * 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.002883/0.6273, allocations: 1.795 MB / 0.6254 GB, free: 14.68 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005803/0.6278, allocations: 302 kB / 0.6257 GB, free: 14.39 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006298/0.6341, allocations: 3.487 MB / 0.6291 GB, free: 10.87 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.006486/0.6406, allocations: 3.036 MB / 0.6321 GB, free: 7.809 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.432e-05/0.6407, allocations: 11.94 kB / 0.6321 GB, free: 7.797 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.415e-05/0.6408, allocations: 11.95 kB / 0.6321 GB, free: 7.785 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02904/0.6698, allocations: 10.6 MB / 0.6425 GB, free: 12.99 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.558e-05/0.6699, allocations: 4 kB / 0.6425 GB, free: 12.99 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001579/0.6715, allocations: 271.6 kB / 0.6427 GB, free: 12.72 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002896/0.6744, allocations: 0.7808 MB / 0.6435 GB, free: 11.93 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002022/0.6746, allocations: 43.98 kB / 0.6436 GB, free: 11.89 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02029/0.6949, allocations: 12.02 MB / 0.6553 GB, free: 15.3 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.007343/0.7023, allocations: 6.03 MB / 0.6612 GB, free: 8.973 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00906/0.7114, allocations: 5.107 MB / 0.6662 GB, free: 3.789 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001367/0.7128, allocations: 375.1 kB / 0.6665 GB, free: 3.402 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005172/0.7133, allocations: 39.98 kB / 0.6666 GB, free: 3.363 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001195/0.7145, allocations: 119.8 kB / 0.6667 GB, free: 3.246 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004487/0.715, allocations: 165.6 kB / 0.6668 GB, free: 3.086 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001571/0.7151, allocations: 59.98 kB / 0.6669 GB, free: 3.027 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003838/0.719, allocations: 1.968 MB / 0.6688 GB, free: 1.055 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.719, allocations: 0 / 0.6688 GB, free: 1.055 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.005814/0.7248, allocations: 0.996 MB / 0.6698 GB, free: 60 kB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * 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 (158): * Single equations (assignments): 149 * 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.000615/0.7255, allocations: 186.8 kB / 0.67 GB, free: 15.87 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.008244/0.7337, allocations: 4.882 MB / 0.6747 GB, free: 10.93 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 5.34e-06/0.7338, allocations: 3.938 kB / 0.6747 GB, free: 10.92 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.003459/0.7372, allocations: 2.229 MB / 0.6769 GB, free: 8.625 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002425/0.7397, allocations: 482.7 kB / 0.6774 GB, free: 8.164 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01412/0.7538, allocations: 8.344 MB / 0.6855 GB, free: 15.71 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003687/0.7575, allocations: 2.965 MB / 0.6884 GB, free: 12.72 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.003317/0.7609, allocations: 1.378 MB / 0.6898 GB, free: 11.34 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005728/0.7615, allocations: 219.4 kB / 0.69 GB, free: 11.12 MB / 0.5137 GB Notification: Performance of SimCode: time 5.72e-07/0.7615, allocations: 0 / 0.69 GB, free: 11.12 MB / 0.5137 GB Notification: Performance of Templates: time 0.3131/1.075, allocations: 36.69 MB / 0.7258 GB, free: 177.7 MB / 0.5294 GB " [Timeout remaining time 659] 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=480 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 7.012080670334399]