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.001951/0.001951, allocations: 113.1 kB / 17.6 MB, free: 4.703 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.002533/0.002533, allocations: 186.7 kB / 20.78 MB, free: 1.547 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.581/1.581, allocations: 225.6 MB / 249.4 MB, free: 3.309 MB / 190.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.04681/0.04681, allocations: 9.245 MB / 313.7 MB, free: 1.531 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.001969/0.001969, allocations: 67.86 kB / 437.4 MB, free: 9.07 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3097/0.3117, allocations: 54.24 MB / 491.6 MB, free: 25.8 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection): time 0.01403/0.3257, allocations: 10.56 MB / 0.4904 GB, free: 18.31 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01064/0.3364, allocations: 3.005 MB / 0.4933 GB, free: 15.95 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003802/0.3402, allocations: 47.03 kB / 0.4934 GB, free: 15.95 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001894/0.3421, allocations: 465.5 kB / 0.4938 GB, free: 15.58 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006509/0.3486, allocations: 1.63 MB / 0.4954 GB, free: 14.39 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001017/0.3496, allocations: 222.7 kB / 0.4956 GB, free: 14.21 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005258/0.3549, allocations: 3.023 MB / 0.4986 GB, free: 12.46 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001784/0.3566, allocations: 0.9876 MB / 0.4995 GB, free: 11.72 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002243/0.3589, allocations: 1.099 MB / 0.5006 GB, free: 11.07 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002792/0.3617, allocations: 1.672 MB / 0.5022 GB, free: 10.01 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007428/0.3624, allocations: 279.1 kB / 0.5025 GB, free: 10.01 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002122/0.3645, allocations: 0.9155 MB / 0.5034 GB, free: 9.641 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001399/0.3659, allocations: 1.435 MB / 0.5048 GB, free: 8.77 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002231/0.3682, allocations: 1.86 MB / 0.5066 GB, free: 7.324 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007834/0.376, allocations: 5.744 MB / 0.5122 GB, free: 2.371 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.281e-06/0.376, allocations: 0 / 0.5122 GB, free: 2.371 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.376, allocations: 0 / 0.5122 GB, free: 2.371 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001741/0.3762, allocations: 0 / 0.5122 GB, free: 2.371 MB / 366.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.01567/0.3919, allocations: 5.839 MB / 0.5179 GB, free: 12.46 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 0.0001031/0.392, allocations: 12.03 kB / 0.5179 GB, free: 12.45 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00736/0.3993, allocations: 1.851 MB / 0.5198 GB, free: 10.59 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00537/0.4047, allocations: 1.569 MB / 0.5213 GB, free: 8.973 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003379/0.405, allocations: 196.6 kB / 0.5215 GB, free: 8.777 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001566/0.4066, allocations: 243.8 kB / 0.5217 GB, free: 8.539 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02136/0.428, allocations: 9.311 MB / 0.5308 GB, free: 14.74 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002072/0.4282, allocations: 27.7 kB / 0.5308 GB, free: 14.71 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001538/0.4297, allocations: 119.8 kB / 0.5309 GB, free: 14.6 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004332/0.434, allocations: 2.079 MB / 0.533 GB, free: 12.52 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02132/0.4554, allocations: 8.233 MB / 0.541 GB, free: 4.273 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06152/0.5169, allocations: 30 MB / 0.5703 GB, free: 5.645 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008819/0.5257, allocations: 2.923 MB / 0.5732 GB, free: 2.602 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002315/0.528, allocations: 1.026 MB / 0.5742 GB, free: 1.574 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01123/0.5393, allocations: 6.301 MB / 0.5803 GB, free: 10.61 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.729e-05/0.5393, allocations: 51.88 kB / 0.5804 GB, free: 10.55 MB / 446.1 MB Notification: Performance of pre-optimization done (n=179): time 6.612e-06/0.5393, allocations: 0 / 0.5804 GB, free: 10.55 MB / 446.1 MB Notification: Performance of matching and sorting (n=239): time 0.03635/0.5757, allocations: 12.38 MB / 0.5925 GB, free: 14.01 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.01107/0.5867, allocations: 6.944 MB / 0.5992 GB, free: 6.762 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008336/0.5951, allocations: 3.081 MB / 0.6022 GB, free: 3.66 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004693/0.5955, allocations: 57.7 kB / 0.6023 GB, free: 3.598 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002452/0.598, allocations: 2.521 MB / 0.6048 GB, free: 1.055 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001456/0.5995, allocations: 0.9028 MB / 0.6056 GB, free: 148 kB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.2925/0.892, allocations: 1.005 MB / 0.6066 GB, free: 103.4 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.392e-05/0.892, allocations: 304.9 kB / 0.6069 GB, free: 103.1 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003134/0.8952, allocations: 1.711 MB / 0.6086 GB, free: 103 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004114/0.8993, allocations: 4.336 MB / 0.6128 GB, free: 98.97 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006918/0.9062, allocations: 6.533 MB / 0.6192 GB, free: 93.72 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.196e-05/0.9063, allocations: 26.78 kB / 0.6192 GB, free: 93.72 MB / 462.1 MB Notification: Performance of matching and sorting (n=668) (initialization): time 0.01153/0.9178, allocations: 6.663 MB / 0.6257 GB, free: 91.35 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.47e-05/0.9179, allocations: 43.84 kB / 0.6258 GB, free: 91.35 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001256/0.918, allocations: 91.86 kB / 0.6259 GB, free: 91.35 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001737/0.9197, allocations: 0.7107 MB / 0.6266 GB, free: 91.17 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003298/0.923, allocations: 1.071 MB / 0.6276 GB, free: 91.05 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01184/0.9349, allocations: 12.19 MB / 0.6395 GB, free: 82.54 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004432/0.9393, allocations: 298.3 kB / 0.6398 GB, free: 82.46 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001077/0.9404, allocations: 297.5 kB / 0.6401 GB, free: 82.42 MB / 462.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.002944/0.9433, allocations: 1.795 MB / 0.6418 GB, free: 81.56 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004882/0.9438, allocations: 298.1 kB / 0.6421 GB, free: 81.56 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005056/0.9489, allocations: 3.478 MB / 0.6455 GB, free: 80.28 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004153/0.953, allocations: 3.003 MB / 0.6484 GB, free: 79.26 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.406e-05/0.9531, allocations: 9.656 kB / 0.6484 GB, free: 79.25 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.914e-05/0.9531, allocations: 11.34 kB / 0.6485 GB, free: 79.25 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01529/0.9684, allocations: 10.57 MB / 0.6588 GB, free: 69.08 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.315e-05/0.9684, allocations: 4 kB / 0.6588 GB, free: 69.08 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009008/0.9693, allocations: 271.6 kB / 0.659 GB, free: 68.81 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001692/0.971, allocations: 0.7795 MB / 0.6598 GB, free: 68.03 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001531/0.9711, allocations: 51.91 kB / 0.6599 GB, free: 67.98 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01011/0.9812, allocations: 12.02 MB / 0.6716 GB, free: 55.46 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.005056/0.9863, allocations: 6.037 MB / 0.6775 GB, free: 49.14 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006522/0.9928, allocations: 5.085 MB / 0.6825 GB, free: 43.99 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009573/0.9938, allocations: 375.1 kB / 0.6828 GB, free: 43.6 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004629/0.9942, allocations: 43.94 kB / 0.6829 GB, free: 43.56 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001176/0.9954, allocations: 123.7 kB / 0.683 GB, free: 43.44 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003867/0.9958, allocations: 157.7 kB / 0.6831 GB, free: 43.29 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001237/0.9959, allocations: 63.97 kB / 0.6832 GB, free: 43.22 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002716/0.9986, allocations: 1.964 MB / 0.6851 GB, free: 41.25 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.9986, allocations: 0 / 0.6851 GB, free: 41.25 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.005162/1.004, allocations: 1.005 MB / 0.6861 GB, free: 40.25 MB / 462.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.0006276/1.004, allocations: 182.9 kB / 0.6863 GB, free: 40.08 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00792/1.012, allocations: 4.712 MB / 0.6909 GB, free: 35.32 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 9.067e-06/1.012, allocations: 0 / 0.6909 GB, free: 35.32 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00291/1.015, allocations: 2.123 MB / 0.6929 GB, free: 33.12 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002485/1.018, allocations: 470.1 kB / 0.6934 GB, free: 32.67 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01257/1.03, allocations: 8.438 MB / 0.7016 GB, free: 24.16 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002459/1.033, allocations: 2.969 MB / 0.7045 GB, free: 21.16 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002882/1.036, allocations: 1.37 MB / 0.7059 GB, free: 19.79 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005136/1.036, allocations: 215.4 kB / 0.7061 GB, free: 19.57 MB / 462.1 MB Notification: Performance of SimCode: time 1.052e-06/1.036, allocations: 0 / 0.7061 GB, free: 19.57 MB / 462.1 MB Notification: Performance of Templates: time 0.06731/1.103, allocations: 38.52 MB / 0.7437 GB, free: 13.31 MB / 494.1 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=480 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 7.216837980784476]