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.001498/0.001498, allocations: 104.4 kB / 19.7 MB, free: 2.125 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.001664/0.001664, allocations: 212.8 kB / 22.99 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.396/1.396, allocations: 230.6 MB / 256.8 MB, free: 7.812 MB / 206.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.04704/0.04704, allocations: 9.235 MB / 322.4 MB, free: 9.859 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.002008/0.002008, allocations: 67.91 kB / 448.9 MB, free: 14.11 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1112/0.1133, allocations: 55.47 MB / 0.4926 GB, free: 6.547 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection): time 0.01122/0.1245, allocations: 9.152 MB / 0.5015 GB, free: 13.36 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.006486/0.131, allocations: 2.885 MB / 0.5043 GB, free: 10.46 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00157/0.1325, allocations: 55.81 kB / 0.5044 GB, free: 10.41 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001444/0.134, allocations: 464.7 kB / 0.5048 GB, free: 9.949 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004666/0.1386, allocations: 1.626 MB / 0.5064 GB, free: 8.316 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000775/0.1394, allocations: 219.7 kB / 0.5066 GB, free: 8.102 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.004382/0.1438, allocations: 2.998 MB / 0.5095 GB, free: 5.098 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001576/0.1454, allocations: 0.968 MB / 0.5105 GB, free: 4.102 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001618/0.147, allocations: 1.113 MB / 0.5116 GB, free: 2.984 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002305/0.1493, allocations: 1.595 MB / 0.5131 GB, free: 1.383 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004852/0.1498, allocations: 280 kB / 0.5134 GB, free: 1.109 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001546/0.1513, allocations: 0.7997 MB / 0.5142 GB, free: 316 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.2384/0.3897, allocations: 1.415 MB / 0.5156 GB, free: 10.9 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001475/0.3912, allocations: 1.314 MB / 0.5168 GB, free: 10.55 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006214/0.3974, allocations: 5.718 MB / 0.5224 GB, free: 9.594 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.761e-06/0.3974, allocations: 1.219 kB / 0.5224 GB, free: 9.594 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.3974, allocations: 0.5312 kB / 0.5224 GB, free: 9.594 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001477/0.3975, allocations: 0.9375 kB / 0.5224 GB, free: 9.594 MB / 382.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.01314/0.4107, allocations: 5.796 MB / 0.5281 GB, free: 7.965 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.986e-05/0.4107, allocations: 9.156 kB / 0.5281 GB, free: 7.965 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006339/0.4171, allocations: 1.851 MB / 0.5299 GB, free: 7.699 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004038/0.4211, allocations: 1.524 MB / 0.5314 GB, free: 7.301 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001865/0.4213, allocations: 189 kB / 0.5316 GB, free: 7.289 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008738/0.4222, allocations: 255.1 kB / 0.5318 GB, free: 7.281 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01341/0.4356, allocations: 9.303 MB / 0.5409 GB, free: 4.332 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.225e-05/0.4356, allocations: 27.42 kB / 0.5409 GB, free: 4.328 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003361/0.436, allocations: 121.2 kB / 0.541 GB, free: 4.281 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002659/0.4386, allocations: 2.075 MB / 0.5431 GB, free: 3.52 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01198/0.4506, allocations: 8.228 MB / 0.5511 GB, free: 15.8 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03991/0.4905, allocations: 27.38 MB / 0.5778 GB, free: 4.762 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007105/0.4976, allocations: 2.464 MB / 0.5803 GB, free: 2.309 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00169/0.4993, allocations: 1.03 MB / 0.5813 GB, free: 1.273 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007057/0.5064, allocations: 3.365 MB / 0.5845 GB, free: 13.92 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.319e-05/0.5064, allocations: 57.84 kB / 0.5846 GB, free: 13.85 MB / 430.1 MB Notification: Performance of pre-optimization done (n=179): time 3.897e-06/0.5064, allocations: 0 / 0.5846 GB, free: 13.85 MB / 430.1 MB Notification: Performance of matching and sorting (n=239): time 0.02842/0.5349, allocations: 11.97 MB / 0.5963 GB, free: 1.914 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.008514/0.5434, allocations: 6.617 MB / 0.6027 GB, free: 11.11 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003866/0.5472, allocations: 2.614 MB / 0.6053 GB, free: 8.453 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002541/0.5475, allocations: 61.7 kB / 0.6054 GB, free: 8.387 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001825/0.5493, allocations: 2.552 MB / 0.6079 GB, free: 5.84 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008936/0.5502, allocations: 0.9076 MB / 0.6087 GB, free: 4.945 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001364/0.5516, allocations: 1.011 MB / 0.6097 GB, free: 3.926 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001791/0.5518, allocations: 359.7 kB / 0.6101 GB, free: 3.57 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002668/0.5544, allocations: 1.712 MB / 0.6117 GB, free: 1.852 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004866/0.5593, allocations: 4.329 MB / 0.616 GB, free: 12.28 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007971/0.5673, allocations: 6.531 MB / 0.6223 GB, free: 4.855 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.692e-05/0.5673, allocations: 30.38 kB / 0.6224 GB, free: 4.828 MB / 462.1 MB Notification: Performance of matching and sorting (n=668) (initialization): time 0.01082/0.5781, allocations: 6.617 MB / 0.6288 GB, free: 14.3 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.316e-05/0.5782, allocations: 50.91 kB / 0.6289 GB, free: 14.25 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000107/0.5783, allocations: 92.16 kB / 0.629 GB, free: 14.16 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001702/0.58, allocations: 0.7015 MB / 0.6297 GB, free: 13.45 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003041/0.583, allocations: 1.072 MB / 0.6307 GB, free: 12.38 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01384/0.5969, allocations: 11.58 MB / 0.642 GB, free: 412 kB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003233/0.6001, allocations: 303.7 kB / 0.6423 GB, free: 108 kB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004267/0.6005, allocations: 295.9 kB / 0.6426 GB, free: 15.82 MB / 494.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.002906/0.6034, allocations: 1.801 MB / 0.6443 GB, free: 14.01 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003832/0.6038, allocations: 250.3 kB / 0.6446 GB, free: 13.76 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005862/0.6097, allocations: 3.427 MB / 0.6479 GB, free: 10.31 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005079/0.6148, allocations: 3.004 MB / 0.6509 GB, free: 7.289 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.448e-05/0.6148, allocations: 11.94 kB / 0.6509 GB, free: 7.277 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.888e-05/0.6148, allocations: 7.969 kB / 0.6509 GB, free: 7.27 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01649/0.6313, allocations: 9.383 MB / 0.66 GB, free: 13.76 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.155e-05/0.6313, allocations: 4 kB / 0.66 GB, free: 13.76 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009891/0.6323, allocations: 272 kB / 0.6603 GB, free: 13.49 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001864/0.6342, allocations: 0.7853 MB / 0.6611 GB, free: 12.7 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001275/0.6343, allocations: 50.95 kB / 0.6611 GB, free: 12.65 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01373/0.648, allocations: 11.39 MB / 0.6722 GB, free: 0.8633 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.006995/0.655, allocations: 5.711 MB / 0.6778 GB, free: 10.95 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008064/0.6631, allocations: 5.048 MB / 0.6828 GB, free: 5.832 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007256/0.6638, allocations: 230.3 kB / 0.683 GB, free: 5.605 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002841/0.6641, allocations: 36 kB / 0.683 GB, free: 5.57 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001014/0.6651, allocations: 119.8 kB / 0.6831 GB, free: 5.453 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003679/0.6655, allocations: 169.5 kB / 0.6833 GB, free: 5.285 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001323/0.6656, allocations: 67.03 kB / 0.6833 GB, free: 5.223 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.002444/0.668, allocations: 1.521 MB / 0.6848 GB, free: 3.684 MB / 0.5137 GB Notification: Performance of sort global known variables: time 8e-08/0.668, allocations: 0 / 0.6848 GB, free: 3.684 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.00404/0.6721, allocations: 0.9803 MB / 0.6858 GB, free: 2.703 MB / 0.5137 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.0004214/0.6725, allocations: 178 kB / 0.686 GB, free: 2.52 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.007523/0.68, allocations: 4.643 MB / 0.6905 GB, free: 13.85 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 3.897e-06/0.68, allocations: 1.562 kB / 0.6905 GB, free: 13.85 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.003284/0.6833, allocations: 2.051 MB / 0.6925 GB, free: 11.75 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001753/0.6851, allocations: 332.1 kB / 0.6928 GB, free: 11.43 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01519/0.7003, allocations: 8.762 MB / 0.7014 GB, free: 2.555 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0034/0.7037, allocations: 2.426 MB / 0.7037 GB, free: 92 kB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009686/0.7046, allocations: 243.4 kB / 0.704 GB, free: 15.85 MB / 0.545 GB Notification: Performance of SimCode: time 1.423e-06/0.7046, allocations: 0 / 0.704 GB, free: 15.85 MB / 0.545 GB Notification: Performance of Templates: time 0.3406/1.045, allocations: 140.1 MB / 0.8408 GB, free: 73.39 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 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection.pipe 2>&1) [Timeout 480] [Calling os._exit(0), Time elapsed: 12.776459311135113] Failed to read output from testmodel.py, exit status != 0: 1.05384570825845 1.062706849 0.6630584930000001 Calling exit ...