Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.WheelBasedCranCrab.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo", uses=false) Using package PlanarMechanics with version 1.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(PlanarMechanics.Examples.WheelBasedCranCrab,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.WheelBasedCranCrab") translateModel(PlanarMechanics.Examples.WheelBasedCranCrab,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.WheelBasedCranCrab") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001557/0.001564, allocations: 182.2 kB / 15.98 MB, free: 5.77 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.246/1.246, allocations: 222.9 MB / 239.6 MB, free: 11 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009617/0.0009616, allocations: 104.6 kB / 289.9 MB, free: 10.93 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.04075/0.04075, allocations: 8.943 MB / 349 MB, free: 24 kB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001037/0.001037, allocations: 54.95 kB / 411.1 MB, free: 57.07 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08228/0.08333, allocations: 51.4 MB / 462.5 MB, free: 5.723 MB / 298.7 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.WheelBasedCranCrab): time 0.1824/0.2658, allocations: 26.91 MB / 489.4 MB, free: 10.79 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.01441/0.2802, allocations: 6.017 MB / 495.4 MB, free: 9.27 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007168/0.2875, allocations: 100.1 kB / 495.5 MB, free: 9.258 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009751/0.2885, allocations: 299 kB / 495.8 MB, free: 9.152 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003047/0.2916, allocations: 1.315 MB / 497.1 MB, free: 8.695 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003098/0.2919, allocations: 80.44 kB / 497.2 MB, free: 8.656 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.004043/0.2959, allocations: 3.467 MB / 0.489 GB, free: 7.605 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001018/0.297, allocations: 0.7599 MB / 0.4897 GB, free: 7.324 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008988/0.2979, allocations: 0.7287 MB / 0.4904 GB, free: 7.07 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001347/0.2992, allocations: 1.279 MB / 0.4917 GB, free: 6.715 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000253/0.2995, allocations: 128.5 kB / 0.4918 GB, free: 6.715 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001267/0.3008, allocations: 0.7596 MB / 0.4925 GB, free: 6.559 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007981/0.3016, allocations: 1.124 MB / 0.4936 GB, free: 5.953 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009299/0.3025, allocations: 1.454 MB / 0.495 GB, free: 4.84 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003735/0.3063, allocations: 4.565 MB / 0.4995 GB, free: 1.852 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.3063, allocations: 0 / 0.4995 GB, free: 1.852 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.092e-06/0.3063, allocations: 0 / 0.4995 GB, free: 1.852 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.476e-05/0.3064, allocations: 0 / 0.4995 GB, free: 1.852 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1171 * Number of variables: 1171 Notification: Performance of Generate backend data structure: time 0.01097/0.3173, allocations: 4.73 MB / 0.5041 GB, free: 14.87 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.856e-05/0.3174, allocations: 9.375 kB / 0.5041 GB, free: 14.87 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006279/0.3237, allocations: 1.751 MB / 0.5058 GB, free: 13.93 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002654/0.3264, allocations: 1.333 MB / 0.5071 GB, free: 12.68 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.409e-05/0.3265, allocations: 144.3 kB / 0.5073 GB, free: 12.58 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000392/0.3269, allocations: 188.5 kB / 0.5074 GB, free: 12.43 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01207/0.3389, allocations: 8.355 MB / 0.5156 GB, free: 3.766 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.008e-05/0.339, allocations: 27.72 kB / 0.5156 GB, free: 3.738 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002765/0.3393, allocations: 91.94 kB / 0.5157 GB, free: 3.684 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002914/0.3423, allocations: 1.939 MB / 0.5176 GB, free: 1.754 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0136/0.3559, allocations: 7.546 MB / 0.525 GB, free: 10.2 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03605/0.392, allocations: 26.34 MB / 0.5507 GB, free: 15.43 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006308/0.3983, allocations: 2.611 MB / 0.5533 GB, free: 12.7 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00129/0.3996, allocations: 0.8736 MB / 0.5541 GB, free: 11.83 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007506/0.4072, allocations: 5.778 MB / 0.5598 GB, free: 5.426 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.765e-05/0.4072, allocations: 43.56 kB / 0.5598 GB, free: 5.375 MB / 378.7 MB Notification: Performance of pre-optimization done (n=141): time 4.339e-06/0.4072, allocations: 0 / 0.5598 GB, free: 5.375 MB / 378.7 MB Notification: Performance of matching and sorting (n=156): time 0.0151/0.4224, allocations: 6.945 MB / 0.5666 GB, free: 14.34 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.73e-05/0.4225, allocations: 64.72 kB / 0.5666 GB, free: 14.27 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003597/0.4261, allocations: 2.606 MB / 0.5692 GB, free: 11.63 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001045/0.4262, allocations: 45.7 kB / 0.5692 GB, free: 11.58 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001278/0.4275, allocations: 2.143 MB / 0.5713 GB, free: 9.438 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004852/0.428, allocations: 0.5822 MB / 0.5719 GB, free: 8.859 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001044/0.429, allocations: 0.8406 MB / 0.5727 GB, free: 8.008 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001081/0.4291, allocations: 305.1 kB / 0.573 GB, free: 7.707 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001995/0.4311, allocations: 1.304 MB / 0.5743 GB, free: 6.395 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003473/0.4346, allocations: 3.718 MB / 0.5779 GB, free: 1.473 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00586/0.4405, allocations: 5.438 MB / 0.5832 GB, free: 10.86 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.643e-05/0.4405, allocations: 28 kB / 0.5832 GB, free: 10.83 MB / 410.7 MB Notification: Performance of matching and sorting (n=550) (initialization): time 0.007899/0.4485, allocations: 5.099 MB / 0.5882 GB, free: 5.73 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.112e-05/0.4485, allocations: 44 kB / 0.5883 GB, free: 5.688 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.14e-05/0.4486, allocations: 88.12 kB / 0.5884 GB, free: 5.602 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006042/0.4492, allocations: 276.6 kB / 0.5886 GB, free: 5.328 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00258/0.4518, allocations: 0.9318 MB / 0.5895 GB, free: 4.395 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003577/0.4554, allocations: 2.936 MB / 0.5924 GB, free: 1.328 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002708/0.4581, allocations: 195.8 kB / 0.5926 GB, free: 1.137 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004025/0.4585, allocations: 252 kB / 0.5928 GB, free: 0.8906 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 384 * Number of states: 0 () * Number of discrete variables: 12 (body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[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 (510): * Single equations (assignments): 505 * 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,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002537/0.4611, allocations: 1.611 MB / 0.5944 GB, free: 15.27 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003546/0.4614, allocations: 225.2 kB / 0.5946 GB, free: 15.05 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003185/0.4646, allocations: 1.971 MB / 0.5965 GB, free: 13.07 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.603e-05/0.4648, allocations: 27.98 kB / 0.5966 GB, free: 13.04 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.883e-06/0.4648, allocations: 4 kB / 0.5966 GB, free: 13.04 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.355e-05/0.4648, allocations: 7.969 kB / 0.5966 GB, free: 13.03 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01033/0.4751, allocations: 5.965 MB / 0.6024 GB, free: 6.93 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.077e-05/0.4752, allocations: 4 kB / 0.6024 GB, free: 6.926 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008048/0.476, allocations: 219.9 kB / 0.6026 GB, free: 6.711 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004534/0.4764, allocations: 167.6 kB / 0.6028 GB, free: 6.547 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.159e-05/0.4765, allocations: 32.36 kB / 0.6028 GB, free: 6.516 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002595/0.4791, allocations: 2.416 MB / 0.6052 GB, free: 3.965 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.494e-06/0.4792, allocations: 11.92 kB / 0.6052 GB, free: 3.953 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01706/0.4962, allocations: 11.85 MB / 0.6167 GB, free: 7.746 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004425/0.4967, allocations: 298.2 kB / 0.617 GB, free: 7.434 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002304/0.4969, allocations: 28 kB / 0.6171 GB, free: 7.406 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007343/0.4977, allocations: 62.83 kB / 0.6171 GB, free: 7.348 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001797/0.4979, allocations: 100.8 kB / 0.6172 GB, free: 7.25 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.84e-05/0.498, allocations: 47.98 kB / 0.6173 GB, free: 7.203 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002372/0.5004, allocations: 1.664 MB / 0.6189 GB, free: 5.523 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.5004, allocations: 3.938 kB / 0.6189 GB, free: 5.52 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003908/0.5043, allocations: 0.8672 MB / 0.6197 GB, free: 4.652 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 5 (idealRolling.w,body.r[1],body.phi,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 (118): * Single equations (assignments): 113 * 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,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003538/0.5046, allocations: 158.3 kB / 0.6199 GB, free: 4.488 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.005269/0.5099, allocations: 3.237 MB / 0.623 GB, free: 1.254 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.769e-06/0.51, allocations: 3.938 kB / 0.6231 GB, free: 1.25 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001387/0.5114, allocations: 1.01 MB / 0.624 GB, free: 240 kB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001932/0.5133, allocations: 368.5 kB / 0.6244 GB, free: 15.89 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01239/0.5257, allocations: 9.348 MB / 0.6335 GB, free: 6.41 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002522/0.5283, allocations: 2.649 MB / 0.6361 GB, free: 3.734 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.003011/0.5313, allocations: 1.283 MB / 0.6374 GB, free: 2.445 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003955/0.5317, allocations: 179.3 kB / 0.6375 GB, free: 2.27 MB / 458.7 MB Notification: Performance of SimCode: time 8.52e-07/0.5317, allocations: 0 / 0.6375 GB, free: 2.27 MB / 458.7 MB Notification: Performance of Templates: time 0.2045/0.7362, allocations: 26.34 MB / 0.6633 GB, free: 146.2 MB / 458.7 MB make -j1 -f PlanarMechanics_PlanarMechanics.Examples.WheelBasedCranCrab.makefile (rm -f PlanarMechanics_PlanarMechanics.Examples.WheelBasedCranCrab.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.WheelBasedCranCrab.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.WheelBasedCranCrab.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.WheelBasedCranCrab.sim & ./PlanarMechanics_PlanarMechanics.Examples.WheelBasedCranCrab -abortSlowSimulation -alarm=480 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.WheelBasedCranCrab.pipe 2>&1)