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.001137/0.001137, allocations: 81.17 kB / 19.87 MB, free: 4.621 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.001103/0.001103, allocations: 169 kB / 23.27 MB, free: 1.223 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.077/1.077, allocations: 177.1 MB / 203.7 MB, free: 5.516 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.03062/0.03062, allocations: 7.185 MB / 267.4 MB, free: 5.914 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.563e-06/1.563e-06, allocations: 0 / 339.3 MB, free: 11 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.15e-05/2.306e-05, allocations: 2.312 kB / 339.3 MB, free: 11 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection): time 0.008101/0.008124, allocations: 9.986 MB / 349.3 MB, free: 0.9609 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.006253/0.01438, allocations: 2.964 MB / 352.3 MB, free: 13.99 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002006/0.01638, allocations: 51.81 kB / 352.3 MB, free: 13.94 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00122/0.0176, allocations: 464.6 kB / 352.8 MB, free: 13.48 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004807/0.02241, allocations: 1.71 MB / 354.5 MB, free: 11.76 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007084/0.02312, allocations: 223.4 kB / 354.7 MB, free: 11.54 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.004188/0.02731, allocations: 3.099 MB / 357.8 MB, free: 8.438 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002167/0.02947, allocations: 1.031 MB / 358.8 MB, free: 7.387 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002621/0.03209, allocations: 1.703 MB / 360.5 MB, free: 5.68 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002045/0.03414, allocations: 1.527 MB / 362 MB, free: 4.148 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004887/0.03463, allocations: 276 kB / 362.3 MB, free: 3.879 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001581/0.03621, allocations: 0.8698 MB / 363.2 MB, free: 3.008 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001187/0.0374, allocations: 1.468 MB / 364.7 MB, free: 1.535 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00147/0.03887, allocations: 1.008 MB / 365.7 MB, free: 0.5234 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005556/0.04442, allocations: 3.77 MB / 369.4 MB, free: 12.74 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.644e-06/0.04443, allocations: 0 / 369.4 MB, free: 12.74 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.447e-06/0.04443, allocations: 3.984 kB / 369.4 MB, free: 12.73 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0001164/0.04455, allocations: 0 / 369.4 MB, free: 12.73 MB / 346.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.01071/0.05526, allocations: 6.039 MB / 375.5 MB, free: 6.633 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.669e-05/0.05533, allocations: 12.62 kB / 375.5 MB, free: 6.621 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004577/0.0599, allocations: 1.372 MB / 376.9 MB, free: 5.246 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002828/0.06273, allocations: 1.384 MB / 378.2 MB, free: 3.832 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000181/0.06291, allocations: 196.8 kB / 378.4 MB, free: 3.637 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00045/0.06336, allocations: 247.8 kB / 378.7 MB, free: 3.395 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008851/0.07221, allocations: 4.588 MB / 383.3 MB, free: 14.14 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.883e-05/0.07231, allocations: 31.73 kB / 383.3 MB, free: 14.11 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003122/0.07262, allocations: 119.8 kB / 383.4 MB, free: 14 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002443/0.07507, allocations: 1.881 MB / 385.3 MB, free: 12.11 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007997/0.08306, allocations: 2.361 MB / 387.7 MB, free: 9.742 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0402/0.1233, allocations: 31.53 MB / 419.2 MB, free: 9.387 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004233/0.1275, allocations: 1.507 MB / 420.7 MB, free: 7.871 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007348/0.1282, allocations: 429 kB / 421.1 MB, free: 7.449 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005407/0.1336, allocations: 2.94 MB / 424.1 MB, free: 4.477 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.338e-05/0.1337, allocations: 58.64 kB / 424.1 MB, free: 4.41 MB / 394.7 MB Notification: Performance of pre-optimization done (n=184): time 6.182e-06/0.1337, allocations: 0 / 424.1 MB, free: 4.41 MB / 394.7 MB Notification: Performance of matching and sorting (n=244): time 0.01604/0.1497, allocations: 7.139 MB / 431.2 MB, free: 13.2 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.004889/0.1546, allocations: 6.036 MB / 437.3 MB, free: 6.902 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003886/0.1585, allocations: 2.273 MB / 439.6 MB, free: 4.586 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004623/0.159, allocations: 57.7 kB / 439.6 MB, free: 4.523 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001584/0.1606, allocations: 2.674 MB / 442.3 MB, free: 1.82 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001148/0.1617, allocations: 0.9495 MB / 443.2 MB, free: 0.8633 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.231/0.3927, allocations: 1.106 MB / 444.3 MB, free: 128.2 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002242/0.3929, allocations: 0.5294 MB / 444.9 MB, free: 127.7 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001393/0.3943, allocations: 0.5093 MB / 445.4 MB, free: 127.7 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002564/0.3969, allocations: 4.437 MB / 449.8 MB, free: 122.7 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005284/0.4022, allocations: 5.53 MB / 455.3 MB, free: 117.6 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001081/0.4023, allocations: 27.94 kB / 455.4 MB, free: 117.6 MB / 410.7 MB Notification: Performance of matching and sorting (n=681) (initialization): time 0.00804/0.4103, allocations: 4.214 MB / 459.6 MB, free: 116.8 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.372e-05/0.4104, allocations: 50.84 kB / 459.6 MB, free: 116.8 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001455/0.4105, allocations: 89.94 kB / 459.7 MB, free: 116.8 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001239/0.4118, allocations: 0.5322 MB / 460.3 MB, free: 116.7 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002282/0.414, allocations: 1.059 MB / 461.3 MB, free: 116.6 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007872/0.4219, allocations: 10.42 MB / 471.7 MB, free: 108.7 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004511/0.4264, allocations: 202.2 kB / 471.9 MB, free: 108.7 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009919/0.4274, allocations: 257.6 kB / 472.2 MB, free: 108.7 MB / 410.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.002137/0.4296, allocations: 0.5447 MB / 472.7 MB, free: 108.4 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000685/0.4302, allocations: 327.9 kB / 473.1 MB, free: 108.4 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002752/0.433, allocations: 1.732 MB / 474.8 MB, free: 108.1 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.001926/0.4349, allocations: 1.304 MB / 476.1 MB, free: 107.8 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.197e-05/0.4349, allocations: 5.906 kB / 476.1 MB, free: 107.8 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.006e-05/0.4349, allocations: 14.28 kB / 476.1 MB, free: 107.8 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01072/0.4457, allocations: 6.55 MB / 482.7 MB, free: 105 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.344e-05/0.4457, allocations: 3.062 kB / 482.7 MB, free: 105 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006001/0.4463, allocations: 255.7 kB / 482.9 MB, free: 105 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001233/0.4475, allocations: 0.5656 MB / 483.5 MB, free: 104.9 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000145/0.4477, allocations: 47.03 kB / 483.5 MB, free: 104.8 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007263/0.4549, allocations: 9.782 MB / 493.3 MB, free: 96.61 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.003794/0.4587, allocations: 5.359 MB / 498.7 MB, free: 92.12 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003925/0.4626, allocations: 2.338 MB / 0.4893 GB, free: 91.12 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007111/0.4634, allocations: 233.1 kB / 0.4895 GB, free: 90.96 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002555/0.4636, allocations: 41.91 kB / 0.4895 GB, free: 90.94 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005168/0.4641, allocations: 42.83 kB / 0.4896 GB, free: 90.91 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003716/0.4645, allocations: 181.1 kB / 0.4897 GB, free: 90.88 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001096/0.4646, allocations: 58.23 kB / 0.4898 GB, free: 90.87 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001213/0.4658, allocations: 0.9375 MB / 0.4907 GB, free: 90.55 MB / 410.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.4658, allocations: 0 / 0.4907 GB, free: 90.55 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.005102/0.4709, allocations: 0.9882 MB / 0.4917 GB, free: 90.42 MB / 410.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.0005128/0.4714, allocations: 184.1 kB / 0.4918 GB, free: 90.28 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.005444/0.4769, allocations: 3.202 MB / 0.495 GB, free: 88.78 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.476e-06/0.4769, allocations: 0 / 0.495 GB, free: 88.78 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002132/0.479, allocations: 1.649 MB / 0.4966 GB, free: 87.77 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001909/0.4809, allocations: 375.2 kB / 0.4969 GB, free: 87.6 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01518/0.4961, allocations: 7.124 MB / 0.5039 GB, free: 81.88 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001503/0.4976, allocations: 1.115 MB / 0.505 GB, free: 81.05 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001564/0.4992, allocations: 378 kB / 0.5053 GB, free: 80.77 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007009/0.4999, allocations: 0.4913 MB / 0.5058 GB, free: 80.32 MB / 410.7 MB Notification: Performance of SimCode: time 3.126e-06/0.4999, allocations: 0 / 0.5058 GB, free: 80.32 MB / 410.7 MB Notification: Performance of Templates: time 0.05587/0.5557, allocations: 33.34 MB / 0.5384 GB, free: 51.5 MB / 410.7 MB " [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=240 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 4.716448589693755]