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.001522/0.001522, allocations: 106.5 kB / 19.69 MB, free: 2.277 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.001716/0.001716, allocations: 218.1 kB / 23.01 MB, free: 4.605 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.342/1.342, allocations: 230.6 MB / 256.8 MB, free: 8.023 MB / 206.1 MB " [Timeout remaining time 179] 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.04673/0.04673, allocations: 9.236 MB / 322.4 MB, free: 10.08 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.001927/0.001927, allocations: 60.19 kB / 449 MB, free: 14.57 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09164/0.09357, allocations: 55.47 MB / 0.4926 GB, free: 7.012 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection): time 0.01215/0.1057, allocations: 10.56 MB / 0.503 GB, free: 12.4 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.005969/0.1117, allocations: 3.021 MB / 0.5059 GB, free: 9.371 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001264/0.113, allocations: 47.81 kB / 0.506 GB, free: 9.324 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001209/0.1142, allocations: 476.7 kB / 0.5064 GB, free: 8.855 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003796/0.118, allocations: 1.626 MB / 0.508 GB, free: 7.223 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006427/0.1186, allocations: 215.7 kB / 0.5082 GB, free: 7.012 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003998/0.1226, allocations: 3.017 MB / 0.5111 GB, free: 3.992 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001408/0.124, allocations: 0.9797 MB / 0.5121 GB, free: 2.984 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001445/0.1255, allocations: 1.117 MB / 0.5132 GB, free: 1.863 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002126/0.1276, allocations: 1.673 MB / 0.5148 GB, free: 188 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.1862/0.3138, allocations: 277.9 kB / 0.5151 GB, free: 10.37 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001905/0.3157, allocations: 0.9235 MB / 0.516 GB, free: 10.37 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001036/0.3167, allocations: 1.417 MB / 0.5174 GB, free: 10.37 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001498/0.3182, allocations: 1.845 MB / 0.5192 GB, free: 9.77 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006303/0.3245, allocations: 5.702 MB / 0.5247 GB, free: 8.809 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.8e-06/0.3245, allocations: 1.594 kB / 0.5247 GB, free: 8.809 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.3245, allocations: 0 / 0.5247 GB, free: 8.809 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001675/0.3247, allocations: 0.5312 kB / 0.5247 GB, free: 8.809 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.01471/0.3394, allocations: 5.8 MB / 0.5304 GB, free: 7.176 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.489e-05/0.3395, allocations: 9.938 kB / 0.5304 GB, free: 7.176 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006704/0.3462, allocations: 1.849 MB / 0.5322 GB, free: 6.91 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004336/0.3505, allocations: 1.509 MB / 0.5337 GB, free: 6.512 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001574/0.3507, allocations: 187.7 kB / 0.5339 GB, free: 6.504 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006118/0.3513, allocations: 253.3 kB / 0.5341 GB, free: 6.496 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01259/0.3639, allocations: 9.307 MB / 0.5432 GB, free: 2.633 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.07e-05/0.3639, allocations: 30.33 kB / 0.5432 GB, free: 2.629 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003221/0.3643, allocations: 120.2 kB / 0.5434 GB, free: 2.582 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002606/0.3669, allocations: 2.072 MB / 0.5454 GB, free: 1.777 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01316/0.38, allocations: 8.242 MB / 0.5534 GB, free: 13.35 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04194/0.422, allocations: 29.96 MB / 0.5827 GB, free: 15.21 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00741/0.4294, allocations: 2.462 MB / 0.5851 GB, free: 12.75 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001893/0.4313, allocations: 1.03 MB / 0.5861 GB, free: 11.72 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007847/0.4391, allocations: 3.758 MB / 0.5898 GB, free: 7.988 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.894e-05/0.4392, allocations: 52.53 kB / 0.5898 GB, free: 7.926 MB / 430.1 MB Notification: Performance of pre-optimization done (n=179): time 3.616e-06/0.4392, allocations: 0 / 0.5898 GB, free: 7.926 MB / 430.1 MB Notification: Performance of matching and sorting (n=239): time 0.02987/0.469, allocations: 12.02 MB / 0.6015 GB, free: 11.93 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.008729/0.4778, allocations: 6.744 MB / 0.6081 GB, free: 4.973 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005293/0.4831, allocations: 3.073 MB / 0.6111 GB, free: 1.879 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002716/0.4833, allocations: 53.7 kB / 0.6112 GB, free: 1.82 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002021/0.4853, allocations: 2.532 MB / 0.6137 GB, free: 15.29 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009995/0.4863, allocations: 0.8988 MB / 0.6145 GB, free: 14.41 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001493/0.4878, allocations: 1.009 MB / 0.6155 GB, free: 13.39 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001222/0.488, allocations: 305.1 kB / 0.6158 GB, free: 13.09 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002799/0.4908, allocations: 1.712 MB / 0.6175 GB, free: 11.37 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004901/0.4957, allocations: 4.333 MB / 0.6217 GB, free: 5.801 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008121/0.5038, allocations: 6.528 MB / 0.6281 GB, free: 14.37 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.575e-05/0.5038, allocations: 28 kB / 0.6281 GB, free: 14.34 MB / 478.1 MB Notification: Performance of matching and sorting (n=668) (initialization): time 0.01135/0.5152, allocations: 6.653 MB / 0.6346 GB, free: 7.805 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.258e-05/0.5153, allocations: 47.98 kB / 0.6347 GB, free: 7.758 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.691e-05/0.5153, allocations: 92 kB / 0.6347 GB, free: 7.668 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001736/0.5171, allocations: 0.7121 MB / 0.6354 GB, free: 6.941 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003016/0.5201, allocations: 1.064 MB / 0.6365 GB, free: 5.875 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01408/0.5342, allocations: 11.78 MB / 0.648 GB, free: 9.656 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003518/0.5377, allocations: 295.8 kB / 0.6483 GB, free: 9.367 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005158/0.5382, allocations: 295.5 kB / 0.6485 GB, free: 9.082 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.002944/0.5412, allocations: 1.798 MB / 0.6503 GB, free: 7.273 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004645/0.5416, allocations: 309.9 kB / 0.6506 GB, free: 6.969 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006265/0.5479, allocations: 3.467 MB / 0.654 GB, free: 3.469 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005221/0.5531, allocations: 3.001 MB / 0.6569 GB, free: 464 kB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.674e-05/0.5531, allocations: 8 kB / 0.6569 GB, free: 456 kB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.102e-05/0.5531, allocations: 11.95 kB / 0.6569 GB, free: 444 kB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01953/0.5727, allocations: 10.4 MB / 0.6671 GB, free: 5.883 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-05/0.5727, allocations: 4 kB / 0.6671 GB, free: 5.879 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001006/0.5737, allocations: 271.6 kB / 0.6674 GB, free: 5.613 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001948/0.5756, allocations: 0.7938 MB / 0.6681 GB, free: 4.812 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001419/0.5758, allocations: 43.98 kB / 0.6682 GB, free: 4.77 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01411/0.5899, allocations: 11.61 MB / 0.6795 GB, free: 8.719 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.007/0.5969, allocations: 5.81 MB / 0.6852 GB, free: 2.68 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008148/0.605, allocations: 5.095 MB / 0.6902 GB, free: 13.51 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008411/0.6059, allocations: 294 kB / 0.6904 GB, free: 13.22 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003279/0.6062, allocations: 44 kB / 0.6905 GB, free: 13.18 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001034/0.6072, allocations: 119.8 kB / 0.6906 GB, free: 13.06 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003401/0.6076, allocations: 169.5 kB / 0.6908 GB, free: 12.9 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001291/0.6077, allocations: 67.11 kB / 0.6908 GB, free: 12.84 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.002984/0.6107, allocations: 1.964 MB / 0.6927 GB, free: 10.87 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1e-07/0.6107, allocations: 4 kB / 0.6927 GB, free: 10.86 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.003776/0.6145, allocations: 0.9804 MB / 0.6937 GB, free: 9.883 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.0003851/0.6149, allocations: 178.2 kB / 0.6939 GB, free: 9.699 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.007641/0.6225, allocations: 4.652 MB / 0.6984 GB, free: 5.012 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 3.997e-06/0.6225, allocations: 0.625 kB / 0.6984 GB, free: 5.012 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.003215/0.6257, allocations: 2.054 MB / 0.7004 GB, free: 2.914 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002244/0.628, allocations: 473.3 kB / 0.7009 GB, free: 2.461 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01429/0.6422, allocations: 8.84 MB / 0.7095 GB, free: 9.508 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003322/0.6456, allocations: 2.961 MB / 0.7124 GB, free: 6.516 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008279/0.6464, allocations: 267.4 kB / 0.7126 GB, free: 6.254 MB / 0.545 GB Notification: Performance of SimCode: time 9.52e-07/0.6464, allocations: 0 / 0.7126 GB, free: 6.254 MB / 0.545 GB Notification: Performance of Templates: time 0.3047/0.9511, allocations: 142.1 MB / 0.8514 GB, free: 64.72 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.937686057994142] Failed to read output from testmodel.py, exit status != 0: 0.9595444919541478 0.96887279 0.642061548 Calling exit ...