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.00194/0.00194, allocations: 81.5 kB / 19.44 MB, free: 344 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.001996/0.001996, allocations: 173.2 kB / 22.76 MB, free: 1.664 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.681/1.681, allocations: 177.1 MB / 203.1 MB, free: 5.633 MB / 186.7 MB " [Timeout remaining time 178] 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.05615/0.05615, allocations: 7.178 MB / 266.7 MB, free: 6.121 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.363e-06/1.363e-06, allocations: 0 / 338.1 MB, free: 10.59 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.143e-05/2.279e-05, allocations: 6.25 kB / 338.1 MB, free: 10.59 MB / 266.7 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection): time 0.008046/0.008069, allocations: 10.13 MB / 348.3 MB, free: 416 kB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.006682/0.01475, allocations: 2.969 MB / 351.2 MB, free: 13.43 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001329/0.01608, allocations: 55.75 kB / 351.3 MB, free: 13.38 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001133/0.01721, allocations: 476.5 kB / 351.7 MB, free: 12.91 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004279/0.02149, allocations: 1.703 MB / 353.4 MB, free: 11.2 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006253/0.02212, allocations: 211.5 kB / 353.7 MB, free: 10.99 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.004443/0.02656, allocations: 3.103 MB / 356.8 MB, free: 7.879 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001946/0.02851, allocations: 1.031 MB / 357.8 MB, free: 6.816 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002809/0.03132, allocations: 1.707 MB / 359.5 MB, free: 5.105 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002951/0.03427, allocations: 1.519 MB / 361 MB, free: 3.582 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000675/0.03494, allocations: 280 kB / 361.3 MB, free: 3.309 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00205/0.03699, allocations: 0.8776 MB / 362.2 MB, free: 2.43 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001838/0.03883, allocations: 1.472 MB / 363.6 MB, free: 0.9531 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001754/0.04059, allocations: 1.004 MB / 364.6 MB, free: 15.94 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008449/0.04903, allocations: 5.7 MB / 370.3 MB, free: 10.23 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.233e-06/0.04904, allocations: 3.984 kB / 370.3 MB, free: 10.22 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.864e-06/0.04904, allocations: 4 kB / 370.3 MB, free: 10.22 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0001886/0.04923, allocations: 0 / 370.3 MB, free: 10.22 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.01672/0.06595, allocations: 6.661 MB / 377 MB, free: 3.496 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.838e-05/0.06599, allocations: 8.625 kB / 377 MB, free: 3.488 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008232/0.07422, allocations: 2.335 MB / 379.4 MB, free: 1.148 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003954/0.07818, allocations: 1.448 MB / 380.8 MB, free: 15.66 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002025/0.07838, allocations: 196.8 kB / 381 MB, free: 15.47 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006262/0.07901, allocations: 247.8 kB / 381.2 MB, free: 15.23 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01374/0.09274, allocations: 5.67 MB / 386.9 MB, free: 8.902 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.787e-05/0.09284, allocations: 27.77 kB / 386.9 MB, free: 8.875 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003806/0.09322, allocations: 111.9 kB / 387 MB, free: 8.766 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003817/0.09704, allocations: 2.075 MB / 389.1 MB, free: 6.688 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01267/0.1097, allocations: 3.571 MB / 392.7 MB, free: 3.109 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1861/0.2958, allocations: 44.1 MB / 436.8 MB, free: 46.25 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006234/0.3021, allocations: 1.809 MB / 438.6 MB, free: 46.19 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001221/0.3033, allocations: 0.5966 MB / 439.2 MB, free: 46.17 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006662/0.31, allocations: 3.252 MB / 442.4 MB, free: 45 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.37e-05/0.31, allocations: 53.58 kB / 442.5 MB, free: 44.94 MB / 330.7 MB Notification: Performance of pre-optimization done (n=184): time 4.148e-06/0.31, allocations: 0.9062 kB / 442.5 MB, free: 44.94 MB / 330.7 MB Notification: Performance of matching and sorting (n=244): time 0.02337/0.3334, allocations: 8.91 MB / 451.4 MB, free: 40.76 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.005817/0.3392, allocations: 6.734 MB / 458.1 MB, free: 33.77 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003272/0.3424, allocations: 3.015 MB / 461.2 MB, free: 30.82 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002822/0.3427, allocations: 57.7 kB / 461.2 MB, free: 30.75 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001178/0.3439, allocations: 2.809 MB / 464 MB, free: 27.97 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007165/0.3446, allocations: 1.013 MB / 465 MB, free: 26.97 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001339/0.346, allocations: 1.293 MB / 466.3 MB, free: 25.67 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001115/0.3461, allocations: 0.5511 MB / 466.9 MB, free: 25.11 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001515/0.3476, allocations: 0.743 MB / 467.6 MB, free: 24.36 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002605/0.3502, allocations: 4.794 MB / 472.4 MB, free: 17.82 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00463/0.3548, allocations: 6.134 MB / 478.5 MB, free: 9.965 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.544e-05/0.3549, allocations: 31.94 kB / 478.6 MB, free: 9.934 MB / 330.7 MB Notification: Performance of matching and sorting (n=676) (initialization): time 0.007548/0.3624, allocations: 4.868 MB / 483.4 MB, free: 5.047 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.216e-05/0.3625, allocations: 46.81 kB / 483.5 MB, free: 5.004 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.865e-05/0.3625, allocations: 95.94 kB / 483.6 MB, free: 4.91 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00168/0.3642, allocations: 0.6117 MB / 484.2 MB, free: 4.289 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002764/0.367, allocations: 1.08 MB / 485.3 MB, free: 3.207 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01318/0.3802, allocations: 11.56 MB / 496.8 MB, free: 7.164 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003651/0.3838, allocations: 295.8 kB / 497.1 MB, free: 6.875 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006479/0.3845, allocations: 306.3 kB / 497.4 MB, free: 6.578 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.001746/0.3862, allocations: 0.6807 MB / 498.1 MB, free: 5.887 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005928/0.3868, allocations: 324.3 kB / 498.4 MB, free: 5.57 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005275/0.3921, allocations: 2.173 MB / 0.4889 GB, free: 3.371 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004269/0.3964, allocations: 1.762 MB / 0.4906 GB, free: 1.578 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.669e-05/0.3964, allocations: 11.94 kB / 0.4906 GB, free: 1.566 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.53e-05/0.3964, allocations: 11.95 kB / 0.4906 GB, free: 1.555 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02219/0.4186, allocations: 9.082 MB / 0.4995 GB, free: 8.312 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.458e-05/0.4186, allocations: 4.531 kB / 0.4995 GB, free: 8.309 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001121/0.4197, allocations: 287.6 kB / 0.4998 GB, free: 8.027 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002467/0.4222, allocations: 0.6502 MB / 0.5004 GB, free: 7.363 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001779/0.4224, allocations: 51.92 kB / 0.5004 GB, free: 7.312 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01388/0.4362, allocations: 10.78 MB / 0.511 GB, free: 12.07 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.007427/0.4437, allocations: 5.802 MB / 0.5166 GB, free: 6.012 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006812/0.4505, allocations: 3.013 MB / 0.5196 GB, free: 2.887 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007706/0.4513, allocations: 234.3 kB / 0.5198 GB, free: 2.656 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003165/0.4516, allocations: 39.98 kB / 0.5198 GB, free: 2.617 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001097/0.4527, allocations: 115.9 kB / 0.5199 GB, free: 2.504 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004206/0.4531, allocations: 177.5 kB / 0.5201 GB, free: 2.332 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001678/0.4533, allocations: 71.97 kB / 0.5202 GB, free: 2.262 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002344/0.4556, allocations: 1.279 MB / 0.5214 GB, free: 0.9648 MB / 378.7 MB Notification: Performance of sort global known variables: time 1e-07/0.4556, allocations: 0 / 0.5214 GB, free: 0.9648 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.004381/0.46, allocations: 0.9879 MB / 0.5224 GB, free: 15.98 MB / 394.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.000493/0.4605, allocations: 182.2 kB / 0.5226 GB, free: 15.79 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.007665/0.4681, allocations: 3.826 MB / 0.5263 GB, free: 11.9 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 7.163e-06/0.4681, allocations: 0 / 0.5263 GB, free: 11.9 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00348/0.4716, allocations: 1.931 MB / 0.5282 GB, free: 9.902 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001972/0.4736, allocations: 358.8 kB / 0.5285 GB, free: 9.555 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01423/0.4878, allocations: 7.354 MB / 0.5357 GB, free: 2.031 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003668/0.4915, allocations: 2.2 MB / 0.5379 GB, free: 15.8 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.003274/0.4948, allocations: 1.144 MB / 0.539 GB, free: 14.64 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006748/0.4954, allocations: 200.4 kB / 0.5392 GB, free: 14.45 MB / 410.7 MB Notification: Performance of SimCode: time 1.643e-06/0.4954, allocations: 4 kB / 0.5392 GB, free: 14.45 MB / 410.7 MB Notification: Performance of Templates: time 0.19/0.6855, allocations: 30.55 MB / 0.569 GB, free: 125.3 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: 6.8145616670371965]