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.002285/0.002285, allocations: 114.3 kB / 18.94 MB, free: 2.957 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.00358/0.00358, allocations: 216.4 kB / 22.25 MB, free: 5.117 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.586/1.586, allocations: 230.6 MB / 256 MB, free: 8.004 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.06675/0.06675, allocations: 9.228 MB / 321.7 MB, free: 10.04 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.002131/0.002131, allocations: 67.91 kB / 448.2 MB, free: 14.54 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1308/0.1329, allocations: 55.48 MB / 0.4919 GB, free: 6.973 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection): time 0.01303/0.146, allocations: 10.55 MB / 0.5022 GB, free: 12.38 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.007684/0.1537, allocations: 3.025 MB / 0.5052 GB, free: 9.344 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001752/0.1554, allocations: 51.81 kB / 0.5052 GB, free: 9.293 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001213/0.1566, allocations: 472.7 kB / 0.5057 GB, free: 8.828 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004827/0.1615, allocations: 1.63 MB / 0.5072 GB, free: 7.191 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007246/0.1622, allocations: 219.7 kB / 0.5075 GB, free: 6.977 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.004804/0.167, allocations: 3.004 MB / 0.5104 GB, free: 3.965 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001997/0.169, allocations: 0.9875 MB / 0.5114 GB, free: 2.949 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002097/0.1711, allocations: 1.121 MB / 0.5124 GB, free: 1.824 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002905/0.174, allocations: 1.67 MB / 0.5141 GB, free: 152 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.2665/0.4405, allocations: 276.4 kB / 0.5143 GB, free: 10.27 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003105/0.4436, allocations: 0.9325 MB / 0.5152 GB, free: 10.27 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002337/0.446, allocations: 1.41 MB / 0.5166 GB, free: 10.27 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002925/0.4489, allocations: 1.848 MB / 0.5184 GB, free: 9.668 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008095/0.457, allocations: 5.697 MB / 0.524 GB, free: 8.707 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.502e-06/0.457, allocations: 1.359 kB / 0.524 GB, free: 8.707 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.457, allocations: 0 / 0.524 GB, free: 8.707 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002145/0.4572, allocations: 0.5938 kB / 0.524 GB, free: 8.707 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.01662/0.4738, allocations: 5.799 MB / 0.5297 GB, free: 7.07 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.909e-05/0.4739, allocations: 8.625 kB / 0.5297 GB, free: 7.07 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007392/0.4813, allocations: 1.851 MB / 0.5315 GB, free: 6.805 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005598/0.4869, allocations: 1.512 MB / 0.533 GB, free: 6.406 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001918/0.487, allocations: 184.8 kB / 0.5331 GB, free: 6.398 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008359/0.4879, allocations: 251.4 kB / 0.5334 GB, free: 6.391 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01631/0.5042, allocations: 9.307 MB / 0.5425 GB, free: 2.586 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001011/0.5043, allocations: 30.02 kB / 0.5425 GB, free: 2.582 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003568/0.5046, allocations: 116.5 kB / 0.5426 GB, free: 2.539 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003002/0.5076, allocations: 2.075 MB / 0.5446 GB, free: 1.73 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01683/0.5245, allocations: 8.242 MB / 0.5527 GB, free: 13.27 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04797/0.5724, allocations: 29.95 MB / 0.5819 GB, free: 15.13 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008071/0.5805, allocations: 2.47 MB / 0.5843 GB, free: 12.67 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001978/0.5825, allocations: 1.03 MB / 0.5853 GB, free: 11.64 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008183/0.5907, allocations: 3.755 MB / 0.589 GB, free: 7.91 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.86e-05/0.5907, allocations: 52.61 kB / 0.5891 GB, free: 7.848 MB / 430.1 MB Notification: Performance of pre-optimization done (n=179): time 3.656e-06/0.5907, allocations: 0 / 0.5891 GB, free: 7.848 MB / 430.1 MB Notification: Performance of matching and sorting (n=239): time 0.0325/0.6232, allocations: 12.01 MB / 0.6008 GB, free: 11.86 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.009723/0.633, allocations: 6.754 MB / 0.6074 GB, free: 4.895 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005258/0.6382, allocations: 3.073 MB / 0.6104 GB, free: 1.801 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003769/0.6386, allocations: 57.7 kB / 0.6104 GB, free: 1.738 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002132/0.6407, allocations: 2.522 MB / 0.6129 GB, free: 15.22 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001206/0.6419, allocations: 0.9037 MB / 0.6138 GB, free: 14.33 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001613/0.6436, allocations: 1.009 MB / 0.6148 GB, free: 13.31 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001538/0.6437, allocations: 308.9 kB / 0.6151 GB, free: 13.01 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003147/0.6469, allocations: 1.712 MB / 0.6167 GB, free: 11.29 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005584/0.6524, allocations: 4.331 MB / 0.621 GB, free: 5.723 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009359/0.6618, allocations: 6.528 MB / 0.6273 GB, free: 14.3 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.583e-05/0.6619, allocations: 24 kB / 0.6274 GB, free: 14.27 MB / 478.1 MB Notification: Performance of matching and sorting (n=668) (initialization): time 0.01344/0.6753, allocations: 6.655 MB / 0.6339 GB, free: 7.727 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.85e-05/0.6754, allocations: 47.94 kB / 0.6339 GB, free: 7.68 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001159/0.6755, allocations: 92 kB / 0.634 GB, free: 7.59 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001904/0.6774, allocations: 0.709 MB / 0.6347 GB, free: 6.871 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003851/0.6813, allocations: 1.069 MB / 0.6357 GB, free: 5.801 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01547/0.6967, allocations: 11.77 MB / 0.6472 GB, free: 9.582 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004093/0.7008, allocations: 299.6 kB / 0.6475 GB, free: 9.293 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006595/0.7015, allocations: 292 kB / 0.6478 GB, free: 9.008 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.003523/0.705, allocations: 1.794 MB / 0.6495 GB, free: 7.203 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005863/0.7056, allocations: 306 kB / 0.6498 GB, free: 6.902 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00695/0.7125, allocations: 3.471 MB / 0.6532 GB, free: 3.398 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.00567/0.7182, allocations: 3 MB / 0.6562 GB, free: 392 kB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.648e-05/0.7182, allocations: 12 kB / 0.6562 GB, free: 380 kB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.524e-05/0.7183, allocations: 13.08 kB / 0.6562 GB, free: 368 kB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0226/0.7409, allocations: 10.4 MB / 0.6663 GB, free: 5.809 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.687e-05/0.7409, allocations: 6.25 kB / 0.6663 GB, free: 5.805 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001129/0.742, allocations: 275.6 kB / 0.6666 GB, free: 5.535 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002148/0.7442, allocations: 0.7872 MB / 0.6674 GB, free: 4.738 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001757/0.7443, allocations: 47.97 kB / 0.6674 GB, free: 4.691 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0164/0.7607, allocations: 11.61 MB / 0.6788 GB, free: 8.645 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.007917/0.7686, allocations: 5.82 MB / 0.6844 GB, free: 2.598 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009435/0.7781, allocations: 5.09 MB / 0.6894 GB, free: 13.43 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009828/0.7791, allocations: 294 kB / 0.6897 GB, free: 13.14 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003713/0.7794, allocations: 40 kB / 0.6897 GB, free: 13.1 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001174/0.7806, allocations: 119.8 kB / 0.6898 GB, free: 12.98 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003938/0.781, allocations: 173.3 kB / 0.69 GB, free: 12.82 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001562/0.7812, allocations: 63.98 kB / 0.6901 GB, free: 12.76 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.003476/0.7846, allocations: 1.961 MB / 0.692 GB, free: 10.79 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7846, allocations: 0 / 0.692 GB, free: 10.79 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.004863/0.7895, allocations: 0.9921 MB / 0.6929 GB, free: 9.801 MB / 0.5294 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.000535/0.79, allocations: 174.1 kB / 0.6931 GB, free: 9.621 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.009022/0.7991, allocations: 4.638 MB / 0.6976 GB, free: 4.945 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 9.338e-06/0.7991, allocations: 4 kB / 0.6976 GB, free: 4.941 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.00377/0.8028, allocations: 2.054 MB / 0.6997 GB, free: 2.844 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002854/0.8057, allocations: 481.4 kB / 0.7001 GB, free: 2.383 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01577/0.8215, allocations: 8.429 MB / 0.7083 GB, free: 9.852 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00392/0.8254, allocations: 2.965 MB / 0.7112 GB, free: 6.855 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.003603/0.829, allocations: 1.374 MB / 0.7126 GB, free: 5.477 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006795/0.8297, allocations: 223.4 kB / 0.7128 GB, free: 5.258 MB / 0.545 GB Notification: Performance of SimCode: time 9.52e-07/0.8297, allocations: 0 / 0.7128 GB, free: 5.258 MB / 0.545 GB Notification: Performance of Templates: time 0.4038/1.233, allocations: 40.54 MB / 0.7524 GB, free: 166.5 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 sys.exit(0), Time elapsed: 7.555232037091628] Failed to read output from testmodel.py, exit status != 0: 1.2424682357814163 1.25258964 0.793038587 Calling exit ...