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/package.mo", uses=false) 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.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.00111/0.00111, allocations: 112.6 kB / 16.37 MB, free: 6 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.001034/0.001034, allocations: 196 kB / 17.31 MB, free: 5.613 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.296/1.296, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.04471/0.04471, allocations: 9.11 MB / 300.3 MB, free: 5.871 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00121/0.00121, allocations: 63.89 kB / 363.4 MB, free: 6.715 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2045/0.2057, allocations: 51.42 MB / 414.8 MB, free: 24.89 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.CraneCrabTo3D): time 0.01008/0.2159, allocations: 14.39 MB / 429.2 MB, free: 10.45 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007552/0.2235, allocations: 4.647 MB / 433.8 MB, free: 5.789 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001943/0.2254, allocations: 75.81 kB / 433.9 MB, free: 5.715 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002606/0.228, allocations: 1.603 MB / 435.5 MB, free: 4.105 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005452/0.2336, allocations: 2.564 MB / 438.1 MB, free: 1.531 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001572/0.2352, allocations: 0.5771 MB / 438.7 MB, free: 0.9531 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.008109/0.2433, allocations: 5.183 MB / 443.8 MB, free: 11.76 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004535/0.2479, allocations: 2.975 MB / 446.8 MB, free: 8.738 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003552/0.2515, allocations: 1.771 MB / 448.6 MB, free: 6.961 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00375/0.2552, allocations: 2.507 MB / 451.1 MB, free: 4.445 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008954/0.2561, allocations: 384 kB / 451.5 MB, free: 4.07 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002403/0.2586, allocations: 1.186 MB / 452.7 MB, free: 2.883 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002139/0.2607, allocations: 2.291 MB / 454.9 MB, free: 0.5859 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002953/0.2637, allocations: 2.823 MB / 457.8 MB, free: 13.74 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01013/0.2738, allocations: 8.742 MB / 466.5 MB, free: 4.969 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.538e-06/0.2739, allocations: 0 / 466.5 MB, free: 4.969 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.976e-06/0.2739, allocations: 0 / 466.5 MB, free: 4.969 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0003162/0.2742, allocations: 0 / 466.5 MB, free: 4.969 MB / 334.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.0157/0.2899, allocations: 6.566 MB / 473.1 MB, free: 14.33 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.772e-05/0.29, allocations: 8.031 kB / 473.1 MB, free: 14.32 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01203/0.302, allocations: 3.39 MB / 476.5 MB, free: 10.92 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008422/0.3105, allocations: 2.798 MB / 479.3 MB, free: 8.059 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003654/0.3109, allocations: 278.7 kB / 479.5 MB, free: 7.785 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001802/0.3127, allocations: 359.7 kB / 479.9 MB, free: 7.434 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02389/0.3366, allocations: 14.03 MB / 493.9 MB, free: 8.52 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001239/0.3368, allocations: 51.44 kB / 494 MB, free: 8.469 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005056/0.3373, allocations: 175.8 kB / 494.1 MB, free: 8.297 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004423/0.3417, allocations: 3.148 MB / 497.3 MB, free: 5.141 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02274/0.3645, allocations: 12.2 MB / 0.4976 GB, free: 8.938 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2778/0.6424, allocations: 51.78 MB / 0.5481 GB, free: 45.56 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009384/0.6518, allocations: 5.083 MB / 0.5531 GB, free: 42.45 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002348/0.6542, allocations: 1.801 MB / 0.5548 GB, free: 41.54 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01242/0.6666, allocations: 8.002 MB / 0.5627 GB, free: 33.99 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.322e-05/0.6667, allocations: 55.88 kB / 0.5627 GB, free: 33.93 MB / 382.1 MB Notification: Performance of pre-optimization done (n=242): time 6.452e-06/0.6667, allocations: 0 / 0.5627 GB, free: 33.93 MB / 382.1 MB Notification: Performance of matching and sorting (n=272): time 0.026/0.6927, allocations: 14.42 MB / 0.5768 GB, free: 19.44 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.219e-05/0.6928, allocations: 154.5 kB / 0.5769 GB, free: 19.26 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006774/0.6996, allocations: 5.378 MB / 0.5822 GB, free: 13.88 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004113/0.7001, allocations: 61.7 kB / 0.5822 GB, free: 13.82 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001869/0.7019, allocations: 4.094 MB / 0.5862 GB, free: 9.727 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008285/0.7028, allocations: 1.038 MB / 0.5873 GB, free: 8.695 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001616/0.7044, allocations: 1.637 MB / 0.5889 GB, free: 7.047 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.978e-05/0.7045, allocations: 301.1 kB / 0.5891 GB, free: 6.75 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003182/0.7076, allocations: 2.55 MB / 0.5916 GB, free: 4.191 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006133/0.7138, allocations: 7.366 MB / 0.5988 GB, free: 10.43 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01279/0.7266, allocations: 10.76 MB / 0.6093 GB, free: 13.29 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001634/0.7268, allocations: 51.94 kB / 0.6094 GB, free: 13.24 MB / 414.1 MB Notification: Performance of matching and sorting (n=1086) (initialization): time 0.02003/0.7469, allocations: 9.933 MB / 0.6191 GB, free: 3.301 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000125/0.747, allocations: 76 kB / 0.6192 GB, free: 3.227 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002581/0.7473, allocations: 172 kB / 0.6193 GB, free: 3.059 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001021/0.7483, allocations: 470.8 kB / 0.6198 GB, free: 2.594 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006271/0.7546, allocations: 1.852 MB / 0.6216 GB, free: 0.7383 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005834/0.7604, allocations: 5.291 MB / 0.6267 GB, free: 11.17 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005763/0.7662, allocations: 423.5 kB / 0.6272 GB, free: 10.75 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001201/0.7675, allocations: 494 kB / 0.6276 GB, free: 10.27 MB / 430.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.004431/0.7719, allocations: 2.85 MB / 0.6304 GB, free: 7.414 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008309/0.7727, allocations: 458 kB / 0.6308 GB, free: 6.961 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004766/0.7775, allocations: 2.971 MB / 0.6337 GB, free: 3.969 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.145e-05/0.7776, allocations: 30.19 kB / 0.6338 GB, free: 3.941 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.112e-05/0.7776, allocations: 8.062 kB / 0.6338 GB, free: 3.934 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.124e-05/0.7776, allocations: 11.97 kB / 0.6338 GB, free: 3.922 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01584/0.7935, allocations: 9.074 MB / 0.6427 GB, free: 10.7 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.049e-05/0.7935, allocations: 8 kB / 0.6427 GB, free: 10.7 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001594/0.7951, allocations: 391.1 kB / 0.643 GB, free: 10.32 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006384/0.7958, allocations: 241.7 kB / 0.6433 GB, free: 10.07 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001456/0.7959, allocations: 51.98 kB / 0.6433 GB, free: 10.02 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004248/0.8002, allocations: 4.367 MB / 0.6476 GB, free: 5.375 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.933e-05/0.8002, allocations: 11.94 kB / 0.6476 GB, free: 5.363 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008774/0.809, allocations: 5.656 MB / 0.6531 GB, free: 15.55 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001685/0.8107, allocations: 0.503 MB / 0.6536 GB, free: 15.03 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005607/0.8113, allocations: 47.98 kB / 0.6536 GB, free: 14.98 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00146/0.8128, allocations: 111.9 kB / 0.6538 GB, free: 14.87 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003292/0.8131, allocations: 165.5 kB / 0.6539 GB, free: 14.71 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001677/0.8133, allocations: 72 kB / 0.654 GB, free: 14.64 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.006076/0.8194, allocations: 3.385 MB / 0.6573 GB, free: 11.27 MB / 462.1 MB Notification: Performance of sort global known variables: time 6.61e-07/0.8194, allocations: 0 / 0.6573 GB, free: 11.27 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.008674/0.8281, allocations: 1.259 MB / 0.6585 GB, free: 10.01 MB / 462.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.0006465/0.8288, allocations: 189.3 kB / 0.6587 GB, free: 9.824 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01037/0.8392, allocations: 6.212 MB / 0.6648 GB, free: 3.629 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.226e-05/0.8392, allocations: 4 kB / 0.6648 GB, free: 3.625 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00257/0.8418, allocations: 1.8 MB / 0.6665 GB, free: 1.805 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003597/0.8454, allocations: 0.6455 MB / 0.6672 GB, free: 1.18 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02202/0.8674, allocations: 12.13 MB / 0.679 GB, free: 4.938 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006129/0.8736, allocations: 4.235 MB / 0.6831 GB, free: 0.6719 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.2149/1.089, allocations: 2.706 MB / 0.6858 GB, free: 157.9 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001049/1.09, allocations: 332.7 kB / 0.6861 GB, free: 157.9 MB / 478.1 MB Notification: Performance of SimCode: time 1.443e-06/1.09, allocations: 3.094 kB / 0.6861 GB, free: 157.9 MB / 478.1 MB Notification: Performance of Templates: time 0.07039/1.16, allocations: 37.7 MB / 0.7229 GB, free: 137.5 MB / 478.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 -s cvode -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.CraneCrabTo3D.pipe 2>&1)