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.001319/0.001319, allocations: 80.2 kB / 19.18 MB, free: 2.527 MB / 14.72 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.001437/0.001437, allocations: 173.4 kB / 22.46 MB, free: 5.355 MB / 14.72 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.44/1.44, allocations: 177.1 MB / 202.8 MB, free: 9.172 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.04822/0.04822, allocations: 7.119 MB / 266.3 MB, free: 9.77 MB / 254.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/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.813e-06/1.813e-06, allocations: 3.938 kB / 392.9 MB, free: 9.215 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.407e-05/2.588e-05, allocations: 5.516 kB / 392.9 MB, free: 9.211 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection): time 0.01466/0.01468, allocations: 9.153 MB / 402 MB, free: 12 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.008545/0.02323, allocations: 2.889 MB / 404.9 MB, free: 13.11 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001359/0.02459, allocations: 47.81 kB / 405 MB, free: 13.07 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001477/0.02606, allocations: 468.6 kB / 405.4 MB, free: 12.61 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005595/0.03166, allocations: 1.687 MB / 407.1 MB, free: 10.91 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008422/0.0325, allocations: 223.4 kB / 407.3 MB, free: 10.69 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005628/0.03813, allocations: 3.076 MB / 410.4 MB, free: 7.609 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002135/0.04026, allocations: 0.9834 MB / 411.4 MB, free: 6.605 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003354/0.04362, allocations: 1.683 MB / 413.1 MB, free: 4.918 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003686/0.0473, allocations: 1.508 MB / 414.6 MB, free: 3.406 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007491/0.04805, allocations: 276 kB / 414.9 MB, free: 3.137 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002461/0.05051, allocations: 0.866 MB / 415.7 MB, free: 2.27 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002201/0.05271, allocations: 1.456 MB / 417.2 MB, free: 0.8086 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002239/0.05495, allocations: 0.9967 MB / 418.2 MB, free: 15.8 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01075/0.0657, allocations: 5.665 MB / 423.8 MB, free: 10.12 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.325e-05/0.06572, allocations: 4 kB / 423.8 MB, free: 10.12 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.06572, allocations: 0 / 423.8 MB, free: 10.12 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001748/0.06589, allocations: 0 / 423.8 MB, free: 10.12 MB / 350.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.02155/0.08744, allocations: 5.795 MB / 429.6 MB, free: 4.27 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.001e-05/0.08749, allocations: 8.625 kB / 429.6 MB, free: 4.262 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01225/0.09974, allocations: 1.933 MB / 431.6 MB, free: 2.324 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004853/0.1046, allocations: 1.508 MB / 433.1 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002745/0.1049, allocations: 192.8 kB / 433.3 MB, free: 0.5938 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001041/0.1059, allocations: 247.8 kB / 433.5 MB, free: 360 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02577/0.1317, allocations: 9.291 MB / 442.8 MB, free: 6.574 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001916/0.1319, allocations: 31.73 kB / 442.8 MB, free: 6.543 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001175/0.133, allocations: 123.8 kB / 443 MB, free: 6.422 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005991/0.139, allocations: 2.064 MB / 445 MB, free: 4.355 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1733/0.3123, allocations: 8.178 MB / 453.2 MB, free: 56.69 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03253/0.3449, allocations: 27.4 MB / 480.6 MB, free: 38.15 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00666/0.3515, allocations: 2.597 MB / 483.2 MB, free: 37.02 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001423/0.3529, allocations: 1.028 MB / 484.2 MB, free: 36.07 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005641/0.3586, allocations: 3.38 MB / 487.6 MB, free: 32.79 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.302e-05/0.3586, allocations: 51.81 kB / 487.7 MB, free: 32.73 MB / 366.1 MB Notification: Performance of pre-optimization done (n=179): time 4.318e-06/0.3586, allocations: 2.781 kB / 487.7 MB, free: 32.73 MB / 366.1 MB Notification: Performance of matching and sorting (n=239): time 0.02572/0.3843, allocations: 12.21 MB / 499.9 MB, free: 20.71 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.006265/0.3906, allocations: 6.628 MB / 0.4946 GB, free: 13.87 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002733/0.3933, allocations: 2.587 MB / 0.4972 GB, free: 11.25 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002474/0.3936, allocations: 61.7 kB / 0.4972 GB, free: 11.18 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008168/0.3944, allocations: 2.526 MB / 0.4997 GB, free: 8.66 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005261/0.3949, allocations: 0.8927 MB / 0.5005 GB, free: 7.777 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001009/0.3959, allocations: 1.004 MB / 0.5015 GB, free: 6.766 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 6.111e-05/0.396, allocations: 349.9 kB / 0.5019 GB, free: 6.418 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002104/0.3981, allocations: 1.696 MB / 0.5035 GB, free: 4.715 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003303/0.4014, allocations: 4.331 MB / 0.5078 GB, free: 15.1 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008758/0.4101, allocations: 6.525 MB / 0.5141 GB, free: 7.309 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.613e-05/0.4102, allocations: 24 kB / 0.5141 GB, free: 7.285 MB / 382.1 MB Notification: Performance of matching and sorting (n=668) (initialization): time 0.01235/0.4226, allocations: 6.598 MB / 0.5206 GB, free: 0.6758 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.204e-05/0.4226, allocations: 46.19 kB / 0.5206 GB, free: 0.6328 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001175/0.4227, allocations: 92 kB / 0.5207 GB, free: 0.543 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001981/0.4247, allocations: 0.7048 MB / 0.5214 GB, free: 15.83 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003572/0.4283, allocations: 1.068 MB / 0.5225 GB, free: 14.76 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.015/0.4433, allocations: 11.58 MB / 0.5338 GB, free: 2.77 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003643/0.4469, allocations: 305.7 kB / 0.5341 GB, free: 2.473 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006452/0.4476, allocations: 292 kB / 0.5343 GB, free: 2.188 MB / 398.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.003074/0.4507, allocations: 1.794 MB / 0.5361 GB, free: 392 kB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004805/0.4511, allocations: 254.3 kB / 0.5363 GB, free: 136 kB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006723/0.4579, allocations: 3.41 MB / 0.5397 GB, free: 12.7 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005698/0.4636, allocations: 2.989 MB / 0.5426 GB, free: 9.691 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.309e-05/0.4636, allocations: 8 kB / 0.5426 GB, free: 9.684 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.368e-05/0.4636, allocations: 11.97 kB / 0.5426 GB, free: 9.672 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01807/0.4817, allocations: 9.389 MB / 0.5518 GB, free: 156 kB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-05/0.4817, allocations: 7.984 kB / 0.5518 GB, free: 148 kB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001138/0.4828, allocations: 268 kB / 0.552 GB, free: 15.88 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002178/0.485, allocations: 0.7807 MB / 0.5528 GB, free: 15.09 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001513/0.4851, allocations: 47.66 kB / 0.5528 GB, free: 15.04 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01512/0.5003, allocations: 11.39 MB / 0.564 GB, free: 3.254 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.007644/0.5079, allocations: 5.71 MB / 0.5695 GB, free: 13.34 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008669/0.5166, allocations: 5.005 MB / 0.5744 GB, free: 8.258 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007412/0.5173, allocations: 238.4 kB / 0.5747 GB, free: 8.023 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003551/0.5177, allocations: 47.97 kB / 0.5747 GB, free: 7.977 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001158/0.5188, allocations: 115.8 kB / 0.5748 GB, free: 7.863 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004458/0.5193, allocations: 173.5 kB / 0.575 GB, free: 7.695 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001499/0.5194, allocations: 67.98 kB / 0.575 GB, free: 7.629 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002512/0.5219, allocations: 1.493 MB / 0.5765 GB, free: 6.113 MB / 446.1 MB Notification: Performance of sort global known variables: time 9e-08/0.5219, allocations: 0 / 0.5765 GB, free: 6.113 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004551/0.5265, allocations: 0.9726 MB / 0.5774 GB, free: 5.141 MB / 446.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.0005322/0.527, allocations: 182 kB / 0.5776 GB, free: 4.953 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.008407/0.5354, allocations: 4.626 MB / 0.5821 GB, free: 292 kB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.785e-06/0.5354, allocations: 0 / 0.5821 GB, free: 292 kB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003703/0.5391, allocations: 2.053 MB / 0.5841 GB, free: 14.18 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00201/0.5411, allocations: 325.9 kB / 0.5845 GB, free: 13.87 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0161/0.5572, allocations: 8.268 MB / 0.5925 GB, free: 5.496 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003536/0.5608, allocations: 2.426 MB / 0.5949 GB, free: 3.035 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.00325/0.564, allocations: 1.316 MB / 0.5962 GB, free: 1.715 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000582/0.5646, allocations: 196.4 kB / 0.5964 GB, free: 1.523 MB / 462.1 MB Notification: Performance of SimCode: time 1.423e-06/0.5646, allocations: 4 kB / 0.5964 GB, free: 1.52 MB / 462.1 MB Notification: Performance of Templates: time 0.2172/0.7818, allocations: 30.08 MB / 0.6258 GB, free: 151 MB / 478.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: 6.384184408932924] Failed to read output from testmodel.py, exit status != 0: 0.7907597906887531 0.800870497 0.732595448 Calling exit ...