Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.CraneCrabTo3D.conf.json 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/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/PlanarMechanics 1.6.0-master/package.mo", uses=false) Using package PlanarMechanics with version 1.6.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(PlanarMechanics.Examples.CraneCrabTo3D,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.CraneCrabTo3D") translateModel(PlanarMechanics.Examples.CraneCrabTo3D,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.CraneCrabTo3D") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001189/0.001189, allocations: 111.3 kB / 15.23 MB, free: 0.6602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001205/0.001205, allocations: 198.2 kB / 16.14 MB, free: 6.66 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.399/1.399, allocations: 222.9 MB / 239.8 MB, free: 4.586 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.193/0.193, allocations: 9.114 MB / 299.1 MB, free: 1.895 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001264/0.001264, allocations: 63.91 kB / 361.3 MB, free: 13.57 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1323/0.1336, allocations: 51.44 MB / 412.7 MB, free: 10.09 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.CraneCrabTo3D): time 0.2792/0.4129, allocations: 47.04 MB / 459.7 MB, free: 15.02 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0253/0.4382, allocations: 10.46 MB / 470.2 MB, free: 8.012 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01364/0.4519, allocations: 193.4 kB / 470.4 MB, free: 7.984 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004265/0.4562, allocations: 1.53 MB / 471.9 MB, free: 7.316 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00865/0.465, allocations: 2.4 MB / 474.3 MB, free: 6.281 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001864/0.4669, allocations: 0.5344 MB / 474.9 MB, free: 6.059 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01089/0.4778, allocations: 7.141 MB / 482 MB, free: 3.852 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005822/0.4836, allocations: 2.822 MB / 484.8 MB, free: 2.812 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004772/0.4885, allocations: 1.549 MB / 486.4 MB, free: 2.219 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006175/0.4947, allocations: 2.624 MB / 489 MB, free: 1.355 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002424/0.4971, allocations: 247.8 kB / 489.2 MB, free: 1.355 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00452/0.5017, allocations: 1.131 MB / 490.4 MB, free: 1.082 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004553/0.5062, allocations: 2.197 MB / 492.6 MB, free: 372 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007144/0.5134, allocations: 2.71 MB / 495.3 MB, free: 14.45 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01472/0.5282, allocations: 8.197 MB / 0.4917 GB, free: 9.949 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.498e-06/0.5282, allocations: 0 / 0.4917 GB, free: 9.949 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.022e-06/0.5282, allocations: 0 / 0.4917 GB, free: 9.949 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003267/0.5285, allocations: 1.969 kB / 0.4917 GB, free: 9.949 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2075 * Number of variables: 2075 Notification: Performance of Generate backend data structure: time 0.01807/0.5466, allocations: 6.563 MB / 0.4981 GB, free: 3.551 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.437e-05/0.5467, allocations: 12.59 kB / 0.4981 GB, free: 3.539 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01225/0.5589, allocations: 3.393 MB / 0.5014 GB, free: 136 kB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006696/0.5657, allocations: 2.751 MB / 0.5041 GB, free: 13.32 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000281/0.566, allocations: 278.7 kB / 0.5044 GB, free: 13.05 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001345/0.5673, allocations: 355.7 kB / 0.5047 GB, free: 12.7 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02504/0.5924, allocations: 14.03 MB / 0.5184 GB, free: 13.79 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001821/0.5926, allocations: 47.53 kB / 0.5184 GB, free: 13.74 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007728/0.5934, allocations: 175.8 kB / 0.5186 GB, free: 13.57 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00472/0.5981, allocations: 3.152 MB / 0.5217 GB, free: 10.41 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0241/0.6222, allocations: 12.2 MB / 0.5336 GB, free: 14.21 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2725/0.8947, allocations: 52.07 MB / 0.5844 GB, free: 87.48 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0109/0.9057, allocations: 5.07 MB / 0.5894 GB, free: 86.33 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002454/0.9082, allocations: 1.804 MB / 0.5912 GB, free: 86.29 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01279/0.921, allocations: 8.001 MB / 0.599 GB, free: 83.99 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.633e-05/0.9211, allocations: 59.44 kB / 0.599 GB, free: 83.95 MB / 446.1 MB Notification: Performance of pre-optimization done (n=242): time 8.005e-06/0.9211, allocations: 3.125 kB / 0.599 GB, free: 83.95 MB / 446.1 MB Notification: Performance of matching and sorting (n=272): time 0.02903/0.9501, allocations: 14.42 MB / 0.6131 GB, free: 77.68 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.046e-05/0.9503, allocations: 156.8 kB / 0.6133 GB, free: 77.52 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009482/0.9597, allocations: 5.368 MB / 0.6185 GB, free: 75.6 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005745/0.9604, allocations: 65.86 kB / 0.6186 GB, free: 75.54 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002492/0.9629, allocations: 4.094 MB / 0.6226 GB, free: 72.39 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001413/0.9643, allocations: 1.038 MB / 0.6236 GB, free: 71.64 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002646/0.967, allocations: 1.642 MB / 0.6252 GB, free: 70.84 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.626e-05/0.967, allocations: 305 kB / 0.6255 GB, free: 70.54 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004107/0.9711, allocations: 2.543 MB / 0.628 GB, free: 69.73 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006485/0.9776, allocations: 7.369 MB / 0.6352 GB, free: 62.51 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01221/0.9899, allocations: 10.75 MB / 0.6457 GB, free: 53.7 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002486/0.9902, allocations: 49.41 kB / 0.6457 GB, free: 53.7 MB / 446.1 MB Notification: Performance of matching and sorting (n=1086) (initialization): time 0.02026/1.01, allocations: 9.937 MB / 0.6554 GB, free: 49.88 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001469/1.011, allocations: 78.12 kB / 0.6555 GB, free: 49.88 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002572/1.011, allocations: 170.6 kB / 0.6556 GB, free: 49.88 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001059/1.012, allocations: 461.8 kB / 0.6561 GB, free: 49.82 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006053/1.018, allocations: 1.855 MB / 0.6579 GB, free: 49.59 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004796/1.023, allocations: 4.888 MB / 0.6627 GB, free: 46.07 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008709/1.032, allocations: 422 kB / 0.6631 GB, free: 45.85 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001542/1.033, allocations: 495.2 kB / 0.6635 GB, free: 45.38 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 772 * Number of states: 0 () * Number of discrete variables: 36 (fixedRotation3D.color[3],fixedRotation3D.color[2],fixedRotation3D.color[1],body3D.sphereColor[3],body3D.sphereColor[2],body3D.sphereColor[1],prismatic3D.boxColor[3],prismatic3D.boxColor[2],prismatic3D.boxColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[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 (1008): * Single equations (assignments): 998 * Array equations: 8 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,17,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005236/1.038, allocations: 2.857 MB / 0.6663 GB, free: 42.87 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001079/1.04, allocations: 462 kB / 0.6668 GB, free: 42.41 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004081/1.044, allocations: 2.97 MB / 0.6697 GB, free: 39.85 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.1e-05/1.044, allocations: 34.44 kB / 0.6697 GB, free: 39.82 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.171e-05/1.044, allocations: 7.938 kB / 0.6697 GB, free: 39.81 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.972e-05/1.044, allocations: 15.95 kB / 0.6697 GB, free: 39.81 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01453/1.058, allocations: 9.115 MB / 0.6786 GB, free: 32.2 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.712e-05/1.058, allocations: 8 kB / 0.6786 GB, free: 32.19 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001505/1.06, allocations: 379.4 kB / 0.679 GB, free: 31.88 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006017/1.06, allocations: 254.1 kB / 0.6792 GB, free: 31.68 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001377/1.061, allocations: 49.36 kB / 0.6793 GB, free: 31.63 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003066/1.064, allocations: 4.042 MB / 0.6832 GB, free: 27.64 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.661e-06/1.064, allocations: 11.94 kB / 0.6832 GB, free: 27.62 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006359/1.07, allocations: 5.646 MB / 0.6888 GB, free: 22.41 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00123/1.071, allocations: 0.5091 MB / 0.6893 GB, free: 21.9 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005628/1.072, allocations: 51.36 kB / 0.6893 GB, free: 21.85 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001503/1.073, allocations: 109.4 kB / 0.6894 GB, free: 21.78 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000279/1.074, allocations: 161.5 kB / 0.6896 GB, free: 21.67 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001404/1.074, allocations: 72 kB / 0.6896 GB, free: 21.6 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004382/1.078, allocations: 3.382 MB / 0.6929 GB, free: 18.5 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.31e-07/1.078, allocations: 4 kB / 0.6929 GB, free: 18.49 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.007256/1.085, allocations: 1.257 MB / 0.6942 GB, free: 17.24 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 31 * Number of states: 6 (revolute.phi,revolute.w,damper1D.s_rel,damper1D.v_rel,prismatic3D.s,prismatic3D.v) * 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 (207): * Single equations (assignments): 199 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,15,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004487/1.086, allocations: 197.9 kB / 0.6944 GB, free: 17.05 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.008561/1.094, allocations: 6.169 MB / 0.7004 GB, free: 10.89 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.304e-06/1.094, allocations: 0 / 0.7004 GB, free: 10.89 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00197/1.096, allocations: 1.799 MB / 0.7021 GB, free: 9.082 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003586/1.1, allocations: 0.6053 MB / 0.7027 GB, free: 8.496 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02168/1.122, allocations: 14.97 MB / 0.7173 GB, free: 9.449 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004844/1.127, allocations: 4.232 MB / 0.7215 GB, free: 5.191 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.006576/1.133, allocations: 2.708 MB / 0.7241 GB, free: 2.477 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008645/1.134, allocations: 335.4 kB / 0.7244 GB, free: 2.148 MB / 462.1 MB Notification: Performance of SimCode: time 6.11e-07/1.134, allocations: 0 / 0.7244 GB, free: 2.148 MB / 462.1 MB Notification: Performance of Templates: time 0.2931/1.427, allocations: 43.35 MB / 0.7668 GB, free: 142.1 MB / 494.1 MB make -j1 -f PlanarMechanics_PlanarMechanics.Examples.CraneCrabTo3D.makefile (rm -f PlanarMechanics_PlanarMechanics.Examples.CraneCrabTo3D.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.CraneCrabTo3D.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.CraneCrabTo3D.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.CraneCrabTo3D.sim & ./PlanarMechanics_PlanarMechanics.Examples.CraneCrabTo3D -abortSlowSimulation -alarm=480 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.CraneCrabTo3D.pipe 2>&1)