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.001487/0.001487, allocations: 93.06 kB / 19.65 MB, free: 280 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.0009848/0.0009848, allocations: 169 kB / 23.02 MB, free: 1.547 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 0.9431/0.9431, allocations: 177.1 MB / 203.4 MB, free: 5.555 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.03722/0.03722, allocations: 7.182 MB / 267.1 MB, free: 6.051 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 2.354e-06/2.354e-06, allocations: 0 / 338.9 MB, free: 10.21 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.868e-05/4.104e-05, allocations: 8.422 kB / 338.9 MB, free: 10.21 MB / 266.7 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection): time 0.01012/0.01016, allocations: 10.2 MB / 349.1 MB, free: 15.95 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.007167/0.01733, allocations: 2.99 MB / 352 MB, free: 12.96 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002436/0.01977, allocations: 47.81 kB / 352.1 MB, free: 12.91 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001153/0.02092, allocations: 468.6 kB / 352.6 MB, free: 12.45 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00364/0.02456, allocations: 1.71 MB / 354.3 MB, free: 10.73 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004685/0.02503, allocations: 219.4 kB / 354.5 MB, free: 10.52 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.003194/0.02822, allocations: 3.114 MB / 357.6 MB, free: 7.395 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001436/0.02966, allocations: 1.027 MB / 358.6 MB, free: 6.336 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001763/0.03142, allocations: 1.703 MB / 360.3 MB, free: 4.629 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001531/0.03295, allocations: 1.515 MB / 361.8 MB, free: 3.109 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003373/0.03329, allocations: 276 kB / 362.1 MB, free: 2.84 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001226/0.03451, allocations: 0.8815 MB / 363 MB, free: 1.957 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009771/0.03549, allocations: 1.46 MB / 364.4 MB, free: 0.4922 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009262/0.03642, allocations: 1.012 MB / 365.5 MB, free: 15.47 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003434/0.03985, allocations: 3.77 MB / 369.2 MB, free: 11.69 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.591e-06/0.03986, allocations: 0 / 369.2 MB, free: 11.69 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.275e-06/0.03986, allocations: 0 / 369.2 MB, free: 11.69 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.026e-05/0.03992, allocations: 3.984 kB / 369.2 MB, free: 11.69 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.008467/0.04838, allocations: 6.106 MB / 375.3 MB, free: 5.52 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.815e-05/0.04844, allocations: 8.625 kB / 375.3 MB, free: 5.512 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004394/0.05284, allocations: 2.339 MB / 377.7 MB, free: 3.168 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002421/0.05526, allocations: 1.494 MB / 379.2 MB, free: 1.645 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001239/0.05538, allocations: 196.8 kB / 379.4 MB, free: 1.449 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003425/0.05572, allocations: 243.8 kB / 379.6 MB, free: 1.211 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006622/0.06235, allocations: 5.026 MB / 384.6 MB, free: 11.52 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.186e-05/0.06241, allocations: 31.69 kB / 384.7 MB, free: 11.49 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002255/0.06263, allocations: 123.8 kB / 384.8 MB, free: 11.37 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001827/0.06446, allocations: 2.068 MB / 386.9 MB, free: 9.301 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006528/0.07099, allocations: 2.894 MB / 389.8 MB, free: 6.398 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1809/0.2519, allocations: 31.75 MB / 421.5 MB, free: 46.45 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004243/0.2561, allocations: 1.613 MB / 423.1 MB, free: 46.39 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007785/0.2569, allocations: 489.7 kB / 423.6 MB, free: 46.37 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003788/0.2607, allocations: 3.071 MB / 426.7 MB, free: 45.96 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.985e-05/0.2607, allocations: 57.48 kB / 426.7 MB, free: 45.92 MB / 330.7 MB Notification: Performance of pre-optimization done (n=184): time 3.656e-06/0.2607, allocations: 0 / 426.7 MB, free: 45.92 MB / 330.7 MB Notification: Performance of matching and sorting (n=244): time 0.01338/0.2741, allocations: 8.24 MB / 435 MB, free: 44.58 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.004759/0.2788, allocations: 6.32 MB / 441.3 MB, free: 40.14 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002347/0.2812, allocations: 2.283 MB / 443.6 MB, free: 38.86 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002845/0.2815, allocations: 61.38 kB / 443.6 MB, free: 38.79 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001153/0.2826, allocations: 2.659 MB / 446.3 MB, free: 36.5 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006247/0.2832, allocations: 0.9426 MB / 447.2 MB, free: 35.64 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007715/0.284, allocations: 1.085 MB / 448.3 MB, free: 34.64 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 7.83e-05/0.2841, allocations: 0.5331 MB / 448.8 MB, free: 34.12 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000897/0.285, allocations: 0.5804 MB / 449.4 MB, free: 33.66 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001841/0.2868, allocations: 4.475 MB / 453.9 MB, free: 27.47 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003462/0.2903, allocations: 5.645 MB / 459.5 MB, free: 20.34 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.839e-05/0.2904, allocations: 28 kB / 459.6 MB, free: 20.31 MB / 330.7 MB Notification: Performance of matching and sorting (n=681) (initialization): time 0.00552/0.2959, allocations: 4.525 MB / 464.1 MB, free: 15.77 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.769e-05/0.2959, allocations: 44 kB / 464.1 MB, free: 15.73 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.968e-05/0.296, allocations: 92.91 kB / 464.2 MB, free: 15.64 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001018/0.297, allocations: 0.555 MB / 464.8 MB, free: 15.07 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001659/0.2987, allocations: 1.084 MB / 465.9 MB, free: 13.98 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005636/0.3043, allocations: 10.86 MB / 476.7 MB, free: 2.656 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002154/0.3064, allocations: 302.5 kB / 477 MB, free: 2.363 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002925/0.3067, allocations: 303.9 kB / 477.3 MB, free: 2.066 MB / 330.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.001046/0.3078, allocations: 0.5546 MB / 477.9 MB, free: 1.504 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003005/0.3081, allocations: 318.3 kB / 478.2 MB, free: 1.191 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002448/0.3105, allocations: 1.928 MB / 480.1 MB, free: 15.23 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.002069/0.3126, allocations: 1.533 MB / 481.7 MB, free: 13.67 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.08e-05/0.3126, allocations: 8 kB / 481.7 MB, free: 13.66 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.331e-05/0.3126, allocations: 15.56 kB / 481.7 MB, free: 13.65 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009884/0.3225, allocations: 7.686 MB / 489.4 MB, free: 5.793 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.456e-06/0.3225, allocations: 4 kB / 489.4 MB, free: 5.789 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005869/0.3231, allocations: 282.3 kB / 489.6 MB, free: 5.516 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001239/0.3243, allocations: 0.6373 MB / 490.3 MB, free: 4.871 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001022/0.3244, allocations: 47.98 kB / 490.3 MB, free: 4.824 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006746/0.3312, allocations: 10.24 MB / 0.4888 GB, free: 10.13 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.003466/0.3347, allocations: 5.559 MB / 0.4943 GB, free: 4.328 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003447/0.3381, allocations: 2.613 MB / 0.4968 GB, free: 1.605 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000394/0.3385, allocations: 242.3 kB / 0.497 GB, free: 1.367 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000183/0.3387, allocations: 43.62 kB / 0.4971 GB, free: 1.328 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000537/0.3392, allocations: 123.8 kB / 0.4972 GB, free: 1.207 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002665/0.3395, allocations: 173.6 kB / 0.4974 GB, free: 1.039 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.625e-05/0.3396, allocations: 70.58 kB / 0.4974 GB, free: 0.9727 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001171/0.3407, allocations: 1.01 MB / 0.4984 GB, free: 15.95 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3407, allocations: 4 kB / 0.4984 GB, free: 15.94 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002928/0.3437, allocations: 0.9882 MB / 0.4994 GB, free: 14.95 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.0003142/0.344, allocations: 189.1 kB / 0.4996 GB, free: 14.77 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003604/0.3476, allocations: 3.372 MB / 0.5029 GB, free: 11.33 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.3476, allocations: 0 / 0.5029 GB, free: 11.33 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00167/0.3493, allocations: 1.747 MB / 0.5046 GB, free: 9.516 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001494/0.3508, allocations: 358.4 kB / 0.5049 GB, free: 9.172 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009298/0.36, allocations: 7.171 MB / 0.5119 GB, free: 1.836 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009757/0.361, allocations: 1.108 MB / 0.513 GB, free: 0.7031 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001758/0.3628, allocations: 1.148 MB / 0.5141 GB, free: 15.54 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003778/0.3632, allocations: 196.4 kB / 0.5143 GB, free: 15.36 MB / 394.7 MB Notification: Performance of SimCode: time 1.663e-06/0.3632, allocations: 0 / 0.5143 GB, free: 15.36 MB / 394.7 MB Notification: Performance of Templates: time 0.04146/0.4046, allocations: 31.7 MB / 0.5453 GB, free: 132 kB / 410.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: 4.047332785092294]