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.001401/0.001401, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.002092/0.002092, allocations: 217.2 kB / 22.25 MB, free: 4.852 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.483/1.483, allocations: 230.6 MB / 256 MB, free: 7.793 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.05015/0.05015, allocations: 9.23 MB / 321.7 MB, free: 9.828 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.002108/0.002108, allocations: 71.88 kB / 448.2 MB, free: 14.03 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09995/0.1021, allocations: 55.47 MB / 0.4918 GB, free: 6.48 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection): time 0.01194/0.114, allocations: 9.145 MB / 0.5008 GB, free: 13.29 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.006262/0.1203, allocations: 2.877 MB / 0.5036 GB, free: 10.41 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001226/0.1215, allocations: 51.81 kB / 0.5036 GB, free: 10.36 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001247/0.1227, allocations: 472.7 kB / 0.5041 GB, free: 9.891 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004253/0.127, allocations: 1.634 MB / 0.5057 GB, free: 8.25 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007546/0.1277, allocations: 219.6 kB / 0.5059 GB, free: 8.035 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.004084/0.1318, allocations: 3.003 MB / 0.5088 GB, free: 5.027 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001706/0.1335, allocations: 0.9641 MB / 0.5097 GB, free: 4.035 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001707/0.1352, allocations: 1.125 MB / 0.5108 GB, free: 2.906 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002246/0.1375, allocations: 1.587 MB / 0.5124 GB, free: 1.312 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004611/0.1379, allocations: 276 kB / 0.5127 GB, free: 1.043 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001508/0.1395, allocations: 0.8114 MB / 0.5135 GB, free: 236 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.1997/0.3391, allocations: 1.412 MB / 0.5148 GB, free: 10.88 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001382/0.3405, allocations: 1.314 MB / 0.5161 GB, free: 10.52 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005738/0.3463, allocations: 5.717 MB / 0.5217 GB, free: 9.555 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.3463, allocations: 0.7969 kB / 0.5217 GB, free: 9.555 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.3463, allocations: 0 / 0.5217 GB, free: 9.555 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001281/0.3464, allocations: 0 / 0.5217 GB, free: 9.555 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.01776/0.3641, allocations: 5.795 MB / 0.5274 GB, free: 7.922 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.569e-05/0.3642, allocations: 9.219 kB / 0.5274 GB, free: 7.922 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006764/0.371, allocations: 1.848 MB / 0.5292 GB, free: 7.66 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00377/0.3747, allocations: 1.531 MB / 0.5307 GB, free: 7.258 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001849/0.3749, allocations: 191.1 kB / 0.5308 GB, free: 7.25 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000545/0.3755, allocations: 247.3 kB / 0.5311 GB, free: 7.242 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01458/0.39, allocations: 9.3 MB / 0.5402 GB, free: 4.273 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.938e-05/0.3901, allocations: 37.03 kB / 0.5402 GB, free: 4.266 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003585/0.3905, allocations: 119.6 kB / 0.5403 GB, free: 4.219 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002988/0.3935, allocations: 2.071 MB / 0.5423 GB, free: 3.441 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01489/0.4084, allocations: 8.219 MB / 0.5504 GB, free: 15.73 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04384/0.4522, allocations: 27.38 MB / 0.5771 GB, free: 4.656 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008449/0.4607, allocations: 2.464 MB / 0.5795 GB, free: 2.207 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002217/0.4629, allocations: 1.035 MB / 0.5805 GB, free: 1.172 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008491/0.4714, allocations: 3.364 MB / 0.5838 GB, free: 13.81 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.402e-05/0.4714, allocations: 53.66 kB / 0.5839 GB, free: 13.75 MB / 430.1 MB Notification: Performance of pre-optimization done (n=179): time 4.959e-06/0.4714, allocations: 0 / 0.5839 GB, free: 13.75 MB / 430.1 MB Notification: Performance of matching and sorting (n=239): time 0.03351/0.5049, allocations: 11.98 MB / 0.5956 GB, free: 1.809 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.009314/0.5142, allocations: 6.614 MB / 0.602 GB, free: 11 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005175/0.5194, allocations: 2.611 MB / 0.6046 GB, free: 8.355 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003706/0.5198, allocations: 61.7 kB / 0.6046 GB, free: 8.289 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002272/0.5221, allocations: 2.557 MB / 0.6071 GB, free: 5.738 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001278/0.5233, allocations: 0.9057 MB / 0.608 GB, free: 4.844 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002399/0.5257, allocations: 1.012 MB / 0.609 GB, free: 3.824 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0002008/0.5259, allocations: 361.7 kB / 0.6093 GB, free: 3.469 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003432/0.5294, allocations: 1.708 MB / 0.611 GB, free: 1.754 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006046/0.5354, allocations: 4.331 MB / 0.6152 GB, free: 12.18 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009415/0.5448, allocations: 6.529 MB / 0.6216 GB, free: 4.754 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001264/0.545, allocations: 27.94 kB / 0.6216 GB, free: 4.727 MB / 462.1 MB Notification: Performance of matching and sorting (n=668) (initialization): time 0.01319/0.5582, allocations: 6.617 MB / 0.6281 GB, free: 14.21 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.337e-05/0.5582, allocations: 44.19 kB / 0.6281 GB, free: 14.17 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001516/0.5584, allocations: 97.83 kB / 0.6282 GB, free: 14.07 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001922/0.5603, allocations: 0.697 MB / 0.6289 GB, free: 13.36 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003573/0.5639, allocations: 1.072 MB / 0.63 GB, free: 12.29 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01525/0.5791, allocations: 11.58 MB / 0.6413 GB, free: 320 kB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004072/0.5832, allocations: 299.9 kB / 0.6416 GB, free: 20 kB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001042/0.5843, allocations: 299 kB / 0.6418 GB, free: 15.73 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.004277/0.5885, allocations: 1.798 MB / 0.6436 GB, free: 13.92 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007444/0.5893, allocations: 254.3 kB / 0.6438 GB, free: 13.67 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007352/0.5966, allocations: 3.428 MB / 0.6472 GB, free: 10.22 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005969/0.6026, allocations: 2.992 MB / 0.6501 GB, free: 7.207 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.856e-05/0.6026, allocations: 15.92 kB / 0.6501 GB, free: 7.191 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.414e-05/0.6027, allocations: 7.969 kB / 0.6501 GB, free: 7.184 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02193/0.6246, allocations: 9.393 MB / 0.6593 GB, free: 13.67 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.654e-05/0.6246, allocations: 4 kB / 0.6593 GB, free: 13.66 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001125/0.6257, allocations: 267.6 kB / 0.6596 GB, free: 13.4 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002159/0.6279, allocations: 0.7837 MB / 0.6603 GB, free: 12.61 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001744/0.6281, allocations: 47.98 kB / 0.6604 GB, free: 12.57 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01532/0.6434, allocations: 11.39 MB / 0.6715 GB, free: 0.7773 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.007709/0.6511, allocations: 5.713 MB / 0.6771 GB, free: 10.86 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009073/0.6602, allocations: 5.039 MB / 0.682 GB, free: 5.754 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000734/0.6609, allocations: 238.2 kB / 0.6822 GB, free: 5.52 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004748/0.6614, allocations: 41.33 kB / 0.6823 GB, free: 5.48 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00124/0.6626, allocations: 115.8 kB / 0.6824 GB, free: 5.367 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004111/0.663, allocations: 175.7 kB / 0.6825 GB, free: 5.195 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001504/0.6632, allocations: 63.98 kB / 0.6826 GB, free: 5.133 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.002926/0.6661, allocations: 1.521 MB / 0.6841 GB, free: 3.594 MB / 0.5137 GB Notification: Performance of sort global known variables: time 9e-08/0.6661, allocations: 0 / 0.6841 GB, free: 3.594 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.004461/0.6706, allocations: 0.9794 MB / 0.685 GB, free: 2.617 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.0004762/0.671, allocations: 174.9 kB / 0.6852 GB, free: 2.434 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.00805/0.6791, allocations: 4.642 MB / 0.6897 GB, free: 13.76 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 8.886e-06/0.6791, allocations: 0 / 0.6897 GB, free: 13.76 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.00347/0.6826, allocations: 2.056 MB / 0.6918 GB, free: 11.66 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001839/0.6844, allocations: 326.7 kB / 0.6921 GB, free: 11.34 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01635/0.7008, allocations: 8.358 MB / 0.7002 GB, free: 2.887 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004507/0.7053, allocations: 2.41 MB / 0.7026 GB, free: 448 kB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.00362/0.7089, allocations: 1.32 MB / 0.7039 GB, free: 15.11 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007444/0.7096, allocations: 191.4 kB / 0.7041 GB, free: 14.93 MB / 0.545 GB Notification: Performance of SimCode: time 1.302e-06/0.7096, allocations: 0 / 0.7041 GB, free: 14.93 MB / 0.545 GB Notification: Performance of Templates: time 0.2627/0.9723, allocations: 33.85 MB / 0.7371 GB, free: 176 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: 6.667477143928409] Failed to read output from testmodel.py, exit status != 0: 0.9810032621026039 0.99058325 0.642006775 Calling exit ...