Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab.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.001564/0.001564, allocations: 104.3 kB / 19.7 MB, free: 2.004 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.001758/0.001758, allocations: 221 kB / 23 MB, free: 4.918 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.35/1.35, allocations: 230.6 MB / 256.8 MB, free: 7.953 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.04691/0.04691, allocations: 9.248 MB / 322.4 MB, free: 9.855 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.ControlledCraneCrab,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab") translateModel(PlanarMechanics.Examples.ControlledCraneCrab,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab") [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.001998/0.001998, allocations: 67.89 kB / 448.9 MB, free: 14.1 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09561/0.0976, allocations: 55.47 MB / 0.4926 GB, free: 6.539 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.ControlledCraneCrab): time 0.01019/0.1078, allocations: 7.766 MB / 0.5002 GB, free: 14.74 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.005993/0.1138, allocations: 2.6 MB / 0.5027 GB, free: 12.13 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006288/0.1144, allocations: 39.88 kB / 0.5027 GB, free: 12.09 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008159/0.1152, allocations: 389.3 kB / 0.5031 GB, free: 11.71 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002844/0.1181, allocations: 1.467 MB / 0.5045 GB, free: 10.24 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000416/0.1185, allocations: 175.8 kB / 0.5047 GB, free: 10.07 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002901/0.1214, allocations: 2.589 MB / 0.5072 GB, free: 7.469 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001069/0.1225, allocations: 0.8092 MB / 0.508 GB, free: 6.633 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001186/0.1236, allocations: 0.961 MB / 0.509 GB, free: 5.668 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001967/0.1256, allocations: 1.401 MB / 0.5103 GB, free: 4.262 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004505/0.1261, allocations: 240 kB / 0.5106 GB, free: 4.027 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001432/0.1275, allocations: 0.7762 MB / 0.5113 GB, free: 3.25 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001208/0.1287, allocations: 1.234 MB / 0.5125 GB, free: 2.012 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001196/0.1299, allocations: 1.126 MB / 0.5136 GB, free: 0.8789 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2476/0.3775, allocations: 5.064 MB / 0.5186 GB, free: 12.98 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.392e-06/0.3775, allocations: 4.625 kB / 0.5186 GB, free: 12.98 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.786e-06/0.3775, allocations: 0.7031 kB / 0.5186 GB, free: 12.98 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001714/0.3777, allocations: 1.469 kB / 0.5186 GB, free: 12.98 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: 1165 * Number of variables: 1165 Notification: Performance of Generate backend data structure: time 0.01028/0.388, allocations: 3.975 MB / 0.5224 GB, free: 11.56 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.075e-05/0.388, allocations: 9.688 kB / 0.5225 GB, free: 11.56 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006824/0.3948, allocations: 1.788 MB / 0.5242 GB, free: 11.34 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00381/0.3986, allocations: 1.358 MB / 0.5255 GB, free: 10.98 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001708/0.3988, allocations: 158.9 kB / 0.5257 GB, free: 10.98 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007687/0.3996, allocations: 202.9 kB / 0.5259 GB, free: 10.97 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01349/0.4131, allocations: 8.005 MB / 0.5337 GB, free: 9.406 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.517e-05/0.4131, allocations: 23.14 kB / 0.5337 GB, free: 9.402 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000311/0.4135, allocations: 98.61 kB / 0.5338 GB, free: 9.367 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002912/0.4164, allocations: 1.848 MB / 0.5356 GB, free: 9.016 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01468/0.431, allocations: 7.162 MB / 0.5426 GB, free: 6.637 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03072/0.4618, allocations: 22.01 MB / 0.5641 GB, free: 4.105 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004931/0.4667, allocations: 1.863 MB / 0.5659 GB, free: 2.246 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001261/0.468, allocations: 0.7713 MB / 0.5667 GB, free: 1.473 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006428/0.4744, allocations: 2.912 MB / 0.5695 GB, free: 14.57 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.305e-05/0.4744, allocations: 54.19 kB / 0.5696 GB, free: 14.51 MB / 414.1 MB Notification: Performance of pre-optimization done (n=131): time 3.567e-06/0.4744, allocations: 1.969 kB / 0.5696 GB, free: 14.51 MB / 414.1 MB Notification: Performance of matching and sorting (n=153): time 0.01429/0.4887, allocations: 6.734 MB / 0.5761 GB, free: 7.793 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.357e-05/0.4888, allocations: 68.72 kB / 0.5762 GB, free: 7.711 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003793/0.4926, allocations: 2.287 MB / 0.5784 GB, free: 5.426 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001196/0.4927, allocations: 45.7 kB / 0.5785 GB, free: 5.375 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001754/0.4944, allocations: 2.218 MB / 0.5807 GB, free: 3.168 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006185/0.4951, allocations: 0.5891 MB / 0.5812 GB, free: 2.586 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001303/0.4964, allocations: 0.8012 MB / 0.582 GB, free: 1.777 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002029/0.4966, allocations: 353.9 kB / 0.5824 GB, free: 1.426 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00228/0.4988, allocations: 1.292 MB / 0.5836 GB, free: 132 kB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004179/0.503, allocations: 3.441 MB / 0.587 GB, free: 11.67 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006651/0.5097, allocations: 5.08 MB / 0.5919 GB, free: 5.863 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.692e-05/0.5097, allocations: 24 kB / 0.592 GB, free: 5.84 MB / 430.1 MB Notification: Performance of matching and sorting (n=516) (initialization): time 0.009203/0.519, allocations: 4.877 MB / 0.5967 GB, free: 1.137 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.114e-05/0.519, allocations: 36 kB / 0.5968 GB, free: 1.102 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001093/0.5191, allocations: 76 kB / 0.5968 GB, free: 1.027 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007775/0.5199, allocations: 304.7 kB / 0.5971 GB, free: 0.7266 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002814/0.5227, allocations: 0.8578 MB / 0.598 GB, free: 15.87 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004694/0.5274, allocations: 3.497 MB / 0.6014 GB, free: 12.28 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002553/0.53, allocations: 195.9 kB / 0.6016 GB, free: 12.09 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005614/0.5305, allocations: 228 kB / 0.6018 GB, free: 11.86 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 340 * Number of states: 0 () * Number of discrete variables: 16 (revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],PID.I.local_reset,body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (472): * Single equations (assignments): 467 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,17,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002829/0.5334, allocations: 1.573 MB / 0.6033 GB, free: 10.28 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004617/0.5338, allocations: 206.7 kB / 0.6035 GB, free: 10.08 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003638/0.5375, allocations: 1.971 MB / 0.6054 GB, free: 8.094 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.878e-05/0.5376, allocations: 30.61 kB / 0.6055 GB, free: 8.066 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.088e-05/0.5376, allocations: 4 kB / 0.6055 GB, free: 8.062 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.505e-05/0.5376, allocations: 12.77 kB / 0.6055 GB, free: 8.051 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00973/0.5473, allocations: 4.594 MB / 0.61 GB, free: 3.414 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.803e-06/0.5473, allocations: 0 / 0.61 GB, free: 3.414 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008128/0.5481, allocations: 204.6 kB / 0.6102 GB, free: 3.215 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005685/0.5487, allocations: 208.9 kB / 0.6104 GB, free: 3.008 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.755e-05/0.5488, allocations: 26.27 kB / 0.6104 GB, free: 2.984 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003555/0.5524, allocations: 2.8 MB / 0.6131 GB, free: 92 kB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.801e-06/0.5524, allocations: 3.938 kB / 0.6131 GB, free: 88 kB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004778/0.5571, allocations: 3.075 MB / 0.6161 GB, free: 12.96 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00101/0.5582, allocations: 330.6 kB / 0.6164 GB, free: 12.64 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00039/0.5585, allocations: 30.03 kB / 0.6165 GB, free: 12.61 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008644/0.5594, allocations: 62.55 kB / 0.6165 GB, free: 12.55 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001723/0.5596, allocations: 92.77 kB / 0.6166 GB, free: 12.46 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.267e-05/0.5597, allocations: 46.02 kB / 0.6167 GB, free: 12.41 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002504/0.5622, allocations: 1.345 MB / 0.618 GB, free: 11.08 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5622, allocations: 4 kB / 0.618 GB, free: 11.07 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002975/0.5651, allocations: 0.6678 MB / 0.6186 GB, free: 10.41 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 6 (PID.I.y,PID.D.x,prismatic.s,prismatic.v,revolute.phi,revolute.w) * 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 (113): * Single equations (assignments): 108 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,15,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003503/0.5655, allocations: 152 kB / 0.6188 GB, free: 10.25 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005347/0.5708, allocations: 3.055 MB / 0.6218 GB, free: 7.207 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.038e-06/0.5708, allocations: 4 kB / 0.6218 GB, free: 7.203 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001537/0.5724, allocations: 0.9811 MB / 0.6227 GB, free: 6.207 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001538/0.5739, allocations: 280.6 kB / 0.623 GB, free: 5.945 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01315/0.5871, allocations: 6.998 MB / 0.6298 GB, free: 14.9 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0033/0.5904, allocations: 2.041 MB / 0.6318 GB, free: 12.82 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007214/0.5911, allocations: 191.4 kB / 0.632 GB, free: 12.63 MB / 478.1 MB Notification: Performance of SimCode: time 1.282e-06/0.5911, allocations: 0 / 0.632 GB, free: 12.63 MB / 478.1 MB Notification: Performance of Templates: time 0.08496/0.6761, allocations: 55.72 MB / 0.6864 GB, free: 5.02 MB / 0.5137 GB " [Timeout remaining time 659] make -j1 -f PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab.makefile [Timeout 660] (rm -f PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab.sim & ./PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab -abortSlowSimulation -alarm=480 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 10.778349267784506] Failed to read output from testmodel.py, exit status != 0: 0.6857330198399723 0.7013085010000001 0.320672508 Calling exit ...