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.001368/0.001368, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001794/0.001794, allocations: 192.8 kB / 16.25 MB, free: 6.637 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.381/1.381, allocations: 222.9 MB / 239.9 MB, free: 4.535 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.2044/0.2044, allocations: 9.117 MB / 299.2 MB, free: 1.816 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001466/0.001466, allocations: 71.89 kB / 361.5 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1129/0.1144, allocations: 51.43 MB / 412.9 MB, free: 9.957 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.CraneCrabTo3D): time 0.2371/0.3515, allocations: 47.05 MB / 459.9 MB, free: 14.93 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02242/0.374, allocations: 10.35 MB / 470.3 MB, free: 7.969 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008927/0.383, allocations: 195.1 kB / 470.5 MB, free: 7.938 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003597/0.3866, allocations: 1.495 MB / 472 MB, free: 7.289 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007726/0.3944, allocations: 2.395 MB / 474.4 MB, free: 6.254 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001816/0.3963, allocations: 0.5353 MB / 474.9 MB, free: 6.035 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.007276/0.4036, allocations: 5.217 MB / 480.1 MB, free: 4.012 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005297/0.4089, allocations: 3.104 MB / 483.2 MB, free: 2.715 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003752/0.4127, allocations: 1.794 MB / 485 MB, free: 1.957 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005656/0.4183, allocations: 2.766 MB / 487.8 MB, free: 0.9688 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002707/0.4211, allocations: 382.9 kB / 488.2 MB, free: 0.9688 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004092/0.4252, allocations: 1.205 MB / 489.4 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004256/0.4295, allocations: 2.322 MB / 491.7 MB, free: 15.88 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006523/0.436, allocations: 2.839 MB / 494.5 MB, free: 13.83 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01367/0.4497, allocations: 8.433 MB / 0.4912 GB, free: 9.957 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.021e-06/0.4498, allocations: 4 kB / 0.4912 GB, free: 9.953 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.4498, allocations: 0 / 0.4912 GB, free: 9.953 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.000385/0.4502, allocations: 0 / 0.4912 GB, free: 9.953 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.019/0.4692, allocations: 6.569 MB / 0.4976 GB, free: 4.074 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.699e-05/0.4692, allocations: 8.031 kB / 0.4976 GB, free: 4.066 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01283/0.4821, allocations: 3.386 MB / 0.5009 GB, free: 0.668 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007224/0.4893, allocations: 2.753 MB / 0.5036 GB, free: 13.86 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002929/0.4897, allocations: 278.6 kB / 0.5039 GB, free: 13.58 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001133/0.4908, allocations: 355.7 kB / 0.5042 GB, free: 13.23 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02292/0.5137, allocations: 14.02 MB / 0.5179 GB, free: 14.32 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001337/0.5139, allocations: 59.45 kB / 0.5179 GB, free: 14.27 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005537/0.5145, allocations: 175.8 kB / 0.5181 GB, free: 14.09 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004917/0.5194, allocations: 3.14 MB / 0.5212 GB, free: 10.95 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02455/0.544, allocations: 12.2 MB / 0.5331 GB, free: 14.74 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2774/0.8214, allocations: 52.06 MB / 0.5839 GB, free: 88.73 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009586/0.831, allocations: 5.071 MB / 0.5889 GB, free: 87.57 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002125/0.8331, allocations: 1.804 MB / 0.5907 GB, free: 87.53 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0119/0.8451, allocations: 8.007 MB / 0.5985 GB, free: 85.25 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.184e-05/0.8451, allocations: 58.41 kB / 0.5985 GB, free: 85.2 MB / 446.1 MB Notification: Performance of pre-optimization done (n=242): time 5.42e-06/0.8451, allocations: 1.875 kB / 0.5985 GB, free: 85.2 MB / 446.1 MB Notification: Performance of matching and sorting (n=272): time 0.02683/0.872, allocations: 14.42 MB / 0.6126 GB, free: 79 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.354e-05/0.8721, allocations: 157.9 kB / 0.6128 GB, free: 78.84 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008081/0.8802, allocations: 5.373 MB / 0.618 GB, free: 76.93 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003954/0.8806, allocations: 61.33 kB / 0.6181 GB, free: 76.87 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002434/0.883, allocations: 4.095 MB / 0.6221 GB, free: 73.71 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001081/0.8841, allocations: 1.04 MB / 0.6231 GB, free: 72.96 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002178/0.8863, allocations: 1.637 MB / 0.6247 GB, free: 72.16 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.782e-05/0.8864, allocations: 302.2 kB / 0.625 GB, free: 71.87 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003883/0.8903, allocations: 2.548 MB / 0.6275 GB, free: 71.06 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006231/0.8965, allocations: 7.366 MB / 0.6347 GB, free: 63.84 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009871/0.9064, allocations: 10.76 MB / 0.6452 GB, free: 55.05 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001443/0.9066, allocations: 47.75 kB / 0.6452 GB, free: 55.05 MB / 446.1 MB Notification: Performance of matching and sorting (n=1086) (initialization): time 0.01835/0.9249, allocations: 9.932 MB / 0.6549 GB, free: 51.23 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001261/0.9251, allocations: 76.28 kB / 0.655 GB, free: 51.23 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002215/0.9254, allocations: 173.6 kB / 0.6551 GB, free: 51.23 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009376/0.9263, allocations: 476 kB / 0.6556 GB, free: 51.16 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005806/0.9321, allocations: 1.851 MB / 0.6574 GB, free: 50.94 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004469/0.9366, allocations: 5.294 MB / 0.6626 GB, free: 46.64 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007327/0.944, allocations: 422.1 kB / 0.663 GB, free: 46.28 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001064/0.945, allocations: 493.7 kB / 0.6634 GB, free: 45.8 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.004557/0.9496, allocations: 2.846 MB / 0.6662 GB, free: 43.3 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009386/0.9506, allocations: 462 kB / 0.6667 GB, free: 42.84 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004199/0.9548, allocations: 2.979 MB / 0.6696 GB, free: 40.28 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.186e-05/0.9548, allocations: 33.12 kB / 0.6696 GB, free: 40.25 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.664e-05/0.9549, allocations: 4 kB / 0.6696 GB, free: 40.24 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.839e-05/0.9549, allocations: 11.44 kB / 0.6696 GB, free: 40.24 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01419/0.9691, allocations: 9.117 MB / 0.6785 GB, free: 32.63 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.08e-05/0.9692, allocations: 8 kB / 0.6785 GB, free: 32.62 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001534/0.9707, allocations: 383.2 kB / 0.6789 GB, free: 32.31 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005915/0.9713, allocations: 242.9 kB / 0.6791 GB, free: 32.12 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001436/0.9715, allocations: 58.31 kB / 0.6792 GB, free: 32.07 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003135/0.9746, allocations: 4.367 MB / 0.6835 GB, free: 27.74 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.172e-06/0.9746, allocations: 11.94 kB / 0.6835 GB, free: 27.73 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00616/0.9808, allocations: 5.662 MB / 0.689 GB, free: 22.1 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001679/0.9825, allocations: 0.4991 MB / 0.6895 GB, free: 21.57 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007076/0.9832, allocations: 54.61 kB / 0.6895 GB, free: 21.53 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001547/0.9848, allocations: 107.9 kB / 0.6896 GB, free: 21.42 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002867/0.9851, allocations: 158.6 kB / 0.6898 GB, free: 21.27 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001387/0.9852, allocations: 83.73 kB / 0.6899 GB, free: 21.19 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004588/0.9898, allocations: 3.385 MB / 0.6932 GB, free: 17.82 MB / 446.1 MB Notification: Performance of sort global known variables: time 7.12e-07/0.9898, allocations: 2.438 kB / 0.6932 GB, free: 17.82 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.006728/0.9966, allocations: 1.261 MB / 0.6944 GB, free: 16.56 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.0004476/0.9971, allocations: 191 kB / 0.6946 GB, free: 16.37 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01282/1.01, allocations: 8.713 MB / 0.7031 GB, free: 7.695 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.476e-05/1.01, allocations: 4 kB / 0.7031 GB, free: 7.691 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002383/1.012, allocations: 1.805 MB / 0.7049 GB, free: 5.871 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004319/1.017, allocations: 0.6518 MB / 0.7055 GB, free: 5.277 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0227/1.039, allocations: 14.96 MB / 0.7201 GB, free: 6.219 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005327/1.045, allocations: 4.239 MB / 0.7243 GB, free: 1.953 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.007065/1.052, allocations: 2.705 MB / 0.7269 GB, free: 15.23 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008102/1.053, allocations: 335.3 kB / 0.7272 GB, free: 14.91 MB / 478.1 MB Notification: Performance of SimCode: time 7.52e-07/1.053, allocations: 0 / 0.7272 GB, free: 14.91 MB / 478.1 MB Notification: Performance of Templates: time 0.2687/1.321, allocations: 44.9 MB / 0.7711 GB, free: 148.8 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)