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.001865/0.001865, allocations: 78.25 kB / 19.76 MB, free: 2.031 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.002222/0.002222, allocations: 158.2 kB / 23.01 MB, free: 4.945 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.414/1.414, allocations: 177.2 MB / 203.4 MB, free: 8.969 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.04719/0.04719, allocations: 7.126 MB / 266.9 MB, free: 9.727 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: PlanarMechanics requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002133/0.002133, allocations: 63.91 kB / 393.4 MB, free: 10.46 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0882/0.09034, allocations: 55.44 MB / 448.8 MB, free: 2.914 MB / 414.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection): time 0.0116/0.1019, allocations: 9.138 MB / 458 MB, free: 9.73 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.005833/0.1078, allocations: 2.885 MB / 460.9 MB, free: 6.836 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001154/0.1089, allocations: 51.81 kB / 460.9 MB, free: 6.785 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001259/0.1102, allocations: 468.7 kB / 461.4 MB, free: 6.324 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003948/0.1141, allocations: 1.626 MB / 463 MB, free: 4.691 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006716/0.1148, allocations: 219.6 kB / 463.2 MB, free: 4.477 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.003996/0.1188, allocations: 2.99 MB / 466.2 MB, free: 1.48 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001311/0.1201, allocations: 0.9758 MB / 467.2 MB, free: 488 kB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001341/0.1214, allocations: 1.109 MB / 468.3 MB, free: 15.36 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002115/0.1236, allocations: 1.599 MB / 469.9 MB, free: 13.75 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004243/0.124, allocations: 276 kB / 470.2 MB, free: 13.48 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001452/0.1254, allocations: 0.8034 MB / 471 MB, free: 12.68 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001321/0.1268, allocations: 1.421 MB / 472.4 MB, free: 11.26 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001439/0.1282, allocations: 1.316 MB / 473.7 MB, free: 9.934 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006461/0.1347, allocations: 5.715 MB / 479.4 MB, free: 4.191 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.1347, allocations: 0 / 479.4 MB, free: 4.191 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.1347, allocations: 0 / 479.4 MB, free: 4.191 MB / 446.1 MB Notification: Performance of Transformations before backend: time 9.912e-05/0.1348, allocations: 0 / 479.4 MB, free: 4.191 MB / 446.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.192/0.3267, allocations: 5.842 MB / 485.3 MB, free: 68.57 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.561e-05/0.3268, allocations: 13.7 kB / 485.3 MB, free: 68.57 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006264/0.333, allocations: 1.929 MB / 487.2 MB, free: 68.32 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002356/0.3354, allocations: 1.507 MB / 488.7 MB, free: 67.76 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001042/0.3355, allocations: 186.6 kB / 488.9 MB, free: 67.71 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003732/0.3359, allocations: 254.5 kB / 489.1 MB, free: 67.66 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01066/0.3465, allocations: 9.284 MB / 498.4 MB, free: 63.58 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.136e-05/0.3466, allocations: 28.12 kB / 498.4 MB, free: 63.56 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002831/0.3469, allocations: 121.6 kB / 498.6 MB, free: 63.52 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002587/0.3495, allocations: 2.071 MB / 0.4889 GB, free: 63.11 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01259/0.3621, allocations: 8.178 MB / 0.4969 GB, free: 60.38 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03077/0.3928, allocations: 27.47 MB / 0.5237 GB, free: 41.68 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007157/0.4, allocations: 2.597 MB / 0.5262 GB, free: 41.01 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001628/0.4016, allocations: 1.026 MB / 0.5272 GB, free: 40.65 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006517/0.4081, allocations: 3.393 MB / 0.5306 GB, free: 39.44 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.686e-05/0.4082, allocations: 54.95 kB / 0.5306 GB, free: 39.38 MB / 446.1 MB Notification: Performance of pre-optimization done (n=179): time 3.737e-06/0.4082, allocations: 0 / 0.5306 GB, free: 39.38 MB / 446.1 MB Notification: Performance of matching and sorting (n=239): time 0.02784/0.436, allocations: 12.19 MB / 0.5425 GB, free: 31.86 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.006541/0.4425, allocations: 6.62 MB / 0.549 GB, free: 25.61 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002751/0.4453, allocations: 2.592 MB / 0.5515 GB, free: 23.36 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002408/0.4455, allocations: 61.7 kB / 0.5516 GB, free: 23.29 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008162/0.4463, allocations: 2.546 MB / 0.5541 GB, free: 20.98 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005554/0.4469, allocations: 0.9113 MB / 0.5549 GB, free: 20.07 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009641/0.4479, allocations: 1.005 MB / 0.5559 GB, free: 19.06 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 6.147e-05/0.4479, allocations: 361.9 kB / 0.5563 GB, free: 18.7 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002056/0.45, allocations: 1.696 MB / 0.5579 GB, free: 17 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002922/0.4529, allocations: 4.321 MB / 0.5622 GB, free: 11.39 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005253/0.4582, allocations: 6.533 MB / 0.5685 GB, free: 3.598 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.404e-05/0.4582, allocations: 28 kB / 0.5686 GB, free: 3.57 MB / 446.1 MB Notification: Performance of matching and sorting (n=668) (initialization): time 0.01014/0.4683, allocations: 6.595 MB / 0.575 GB, free: 12.95 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.651e-05/0.4684, allocations: 50.33 kB / 0.575 GB, free: 12.91 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001094/0.4685, allocations: 92.09 kB / 0.5751 GB, free: 12.82 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0018/0.4703, allocations: 0.7062 MB / 0.5758 GB, free: 12.1 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003357/0.4737, allocations: 1.076 MB / 0.5769 GB, free: 11.02 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01454/0.4882, allocations: 11.56 MB / 0.5882 GB, free: 15.05 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003673/0.4919, allocations: 311.8 kB / 0.5885 GB, free: 14.74 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006495/0.4925, allocations: 303.5 kB / 0.5888 GB, free: 14.45 MB / 478.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.002908/0.4954, allocations: 1.782 MB / 0.5905 GB, free: 12.66 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004728/0.4959, allocations: 254.3 kB / 0.5907 GB, free: 12.41 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00639/0.5023, allocations: 3.42 MB / 0.5941 GB, free: 8.957 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005467/0.5078, allocations: 2.985 MB / 0.597 GB, free: 5.949 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.574e-05/0.5078, allocations: 11.94 kB / 0.597 GB, free: 5.938 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.3e-05/0.5078, allocations: 11.95 kB / 0.597 GB, free: 5.926 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01833/0.5261, allocations: 9.394 MB / 0.6062 GB, free: 12.36 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.01e-05/0.5262, allocations: 0 / 0.6062 GB, free: 12.36 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001075/0.5272, allocations: 275.6 kB / 0.6065 GB, free: 12.09 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002053/0.5293, allocations: 0.7771 MB / 0.6072 GB, free: 11.29 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001325/0.5294, allocations: 51.97 kB / 0.6073 GB, free: 11.24 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01487/0.5443, allocations: 11.38 MB / 0.6184 GB, free: 15.46 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.007437/0.5517, allocations: 5.717 MB / 0.624 GB, free: 9.527 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008423/0.5601, allocations: 5.022 MB / 0.6289 GB, free: 4.434 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006114/0.5608, allocations: 238.4 kB / 0.6291 GB, free: 4.199 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002651/0.561, allocations: 40 kB / 0.6291 GB, free: 4.16 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001093/0.5621, allocations: 119.8 kB / 0.6292 GB, free: 4.043 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003693/0.5625, allocations: 169.6 kB / 0.6294 GB, free: 3.875 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001461/0.5626, allocations: 75.91 kB / 0.6295 GB, free: 3.801 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.002277/0.5649, allocations: 1.489 MB / 0.6309 GB, free: 2.293 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5649, allocations: 0 / 0.6309 GB, free: 2.293 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.003857/0.5688, allocations: 0.9765 MB / 0.6319 GB, free: 1.316 MB / 0.4981 GB 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.000372/0.5691, allocations: 179.5 kB / 0.6321 GB, free: 1.129 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.007395/0.5765, allocations: 4.639 MB / 0.6366 GB, free: 12.46 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 4.719e-06/0.5765, allocations: 0 / 0.6366 GB, free: 12.46 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.003535/0.5801, allocations: 2.055 MB / 0.6386 GB, free: 10.35 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002241/0.5823, allocations: 324.8 kB / 0.6389 GB, free: 10.04 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0134/0.5957, allocations: 8.329 MB / 0.647 GB, free: 1.605 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003262/0.599, allocations: 2.418 MB / 0.6494 GB, free: 15.15 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.00305/0.602, allocations: 1.324 MB / 0.6507 GB, free: 13.82 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004996/0.6025, allocations: 204.4 kB / 0.6509 GB, free: 13.62 MB / 0.5294 GB Notification: Performance of SimCode: time 8.02e-07/0.6025, allocations: 0 / 0.6509 GB, free: 13.62 MB / 0.5294 GB Notification: Performance of Templates: time 0.2485/0.851, allocations: 30.15 MB / 0.6803 GB, free: 158.9 MB / 0.545 GB " [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 -s ida -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 6.363217317033559] Failed to read output from testmodel.py, exit status != 0: 0.8597030129749328 0.868813894 0.731899556 Calling exit ...