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.001663/0.001663, allocations: 114.3 kB / 16.37 MB, free: 5.539 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.001185/0.001185, allocations: 187.5 kB / 17.3 MB, free: 5.184 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.341/1.341, allocations: 222.9 MB / 241 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.04525/0.04525, allocations: 9.114 MB / 300.3 MB, free: 5.871 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001248/0.001248, allocations: 63.91 kB / 363.4 MB, free: 6.715 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2148/0.2161, allocations: 51.41 MB / 414.8 MB, free: 24.87 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.CraneCrabTo3D): time 0.01055/0.2267, allocations: 14.39 MB / 429.2 MB, free: 10.43 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007593/0.2343, allocations: 4.651 MB / 433.8 MB, free: 5.77 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001902/0.2362, allocations: 67.88 kB / 433.9 MB, free: 5.703 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002459/0.2387, allocations: 1.607 MB / 435.5 MB, free: 4.09 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004399/0.2432, allocations: 2.564 MB / 438.1 MB, free: 1.516 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009722/0.2442, allocations: 0.5771 MB / 438.7 MB, free: 0.9375 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005868/0.25, allocations: 5.184 MB / 443.8 MB, free: 11.75 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003456/0.2535, allocations: 2.975 MB / 446.8 MB, free: 8.723 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002492/0.256, allocations: 1.775 MB / 448.6 MB, free: 6.941 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002923/0.259, allocations: 2.503 MB / 451.1 MB, free: 4.43 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007328/0.2597, allocations: 380 kB / 451.5 MB, free: 4.059 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002014/0.2617, allocations: 1.194 MB / 452.7 MB, free: 2.863 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001932/0.2637, allocations: 2.291 MB / 455 MB, free: 0.5664 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002581/0.2663, allocations: 2.823 MB / 457.8 MB, free: 13.72 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007755/0.274, allocations: 8.738 MB / 466.5 MB, free: 4.953 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.326e-06/0.2741, allocations: 0 / 466.5 MB, free: 4.953 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.2741, allocations: 4 kB / 466.5 MB, free: 4.949 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001468/0.2742, allocations: 0 / 466.5 MB, free: 4.949 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.01204/0.2863, allocations: 6.565 MB / 473.1 MB, free: 14.31 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.065e-05/0.2863, allocations: 8.031 kB / 473.1 MB, free: 14.3 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01141/0.2978, allocations: 3.393 MB / 476.5 MB, free: 10.9 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005945/0.3037, allocations: 2.802 MB / 479.3 MB, free: 8.035 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002157/0.304, allocations: 266.7 kB / 479.5 MB, free: 7.773 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007499/0.3047, allocations: 359.7 kB / 479.9 MB, free: 7.422 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01955/0.3243, allocations: 14.02 MB / 493.9 MB, free: 8.516 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000118/0.3244, allocations: 55.44 kB / 494 MB, free: 8.461 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004643/0.3249, allocations: 175.8 kB / 494.1 MB, free: 8.289 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004431/0.3293, allocations: 3.148 MB / 497.3 MB, free: 5.133 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02105/0.3504, allocations: 12.21 MB / 0.4976 GB, free: 8.918 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2417/0.5921, allocations: 51.78 MB / 0.5481 GB, free: 45.56 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009748/0.6019, allocations: 5.081 MB / 0.5531 GB, free: 42.45 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00247/0.6044, allocations: 1.801 MB / 0.5548 GB, free: 41.55 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01526/0.6197, allocations: 7.999 MB / 0.5627 GB, free: 33.97 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.37e-05/0.6198, allocations: 51.88 kB / 0.5627 GB, free: 33.91 MB / 382.1 MB Notification: Performance of pre-optimization done (n=242): time 6.111e-06/0.6198, allocations: 4 kB / 0.5627 GB, free: 33.91 MB / 382.1 MB Notification: Performance of matching and sorting (n=272): time 0.029/0.6488, allocations: 14.42 MB / 0.5768 GB, free: 19.43 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.167e-05/0.6489, allocations: 158.5 kB / 0.5769 GB, free: 19.24 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009673/0.6586, allocations: 5.378 MB / 0.5822 GB, free: 13.87 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004314/0.659, allocations: 65.14 kB / 0.5823 GB, free: 13.8 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002308/0.6614, allocations: 4.09 MB / 0.5862 GB, free: 9.711 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001094/0.6625, allocations: 1.038 MB / 0.5873 GB, free: 8.68 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002822/0.6653, allocations: 1.639 MB / 0.5889 GB, free: 7.031 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.117e-05/0.6654, allocations: 305.1 kB / 0.5892 GB, free: 6.73 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00356/0.6689, allocations: 2.55 MB / 0.5916 GB, free: 4.172 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006202/0.6752, allocations: 7.361 MB / 0.5988 GB, free: 10.42 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01204/0.6872, allocations: 10.75 MB / 0.6093 GB, free: 13.29 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001289/0.6874, allocations: 48 kB / 0.6094 GB, free: 13.24 MB / 414.1 MB Notification: Performance of matching and sorting (n=1086) (initialization): time 0.02008/0.7075, allocations: 9.939 MB / 0.6191 GB, free: 3.293 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000212/0.7077, allocations: 76 kB / 0.6192 GB, free: 3.219 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002817/0.708, allocations: 172 kB / 0.6193 GB, free: 3.051 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001308/0.7093, allocations: 476.5 kB / 0.6198 GB, free: 2.582 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006395/0.7157, allocations: 1.848 MB / 0.6216 GB, free: 0.7305 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006597/0.7224, allocations: 5.29 MB / 0.6267 GB, free: 11.16 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006924/0.7293, allocations: 421.6 kB / 0.6271 GB, free: 10.75 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001536/0.7309, allocations: 0.4907 MB / 0.6276 GB, free: 10.26 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.006695/0.7376, allocations: 2.84 MB / 0.6304 GB, free: 7.41 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001389/0.739, allocations: 458 kB / 0.6308 GB, free: 6.957 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006296/0.7453, allocations: 2.979 MB / 0.6337 GB, free: 3.957 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.687e-05/0.7454, allocations: 28 kB / 0.6338 GB, free: 3.93 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.623e-05/0.7454, allocations: 4 kB / 0.6338 GB, free: 3.926 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.574e-05/0.7454, allocations: 11.95 kB / 0.6338 GB, free: 3.914 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0191/0.7645, allocations: 9.074 MB / 0.6427 GB, free: 10.68 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.354e-05/0.7646, allocations: 12.78 kB / 0.6427 GB, free: 10.67 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001807/0.7664, allocations: 383.4 kB / 0.643 GB, free: 10.3 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007028/0.7671, allocations: 244.2 kB / 0.6433 GB, free: 10.05 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002468/0.7674, allocations: 51.98 kB / 0.6433 GB, free: 10 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004565/0.772, allocations: 4.379 MB / 0.6476 GB, free: 5.344 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.987e-06/0.772, allocations: 11.94 kB / 0.6476 GB, free: 5.332 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007666/0.7797, allocations: 5.653 MB / 0.6531 GB, free: 15.52 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001405/0.7811, allocations: 0.503 MB / 0.6536 GB, free: 14.99 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008998/0.782, allocations: 47.91 kB / 0.6537 GB, free: 14.95 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001968/0.784, allocations: 111.9 kB / 0.6538 GB, free: 14.84 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003604/0.7844, allocations: 161.5 kB / 0.6539 GB, free: 14.68 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001895/0.7846, allocations: 72 kB / 0.654 GB, free: 14.61 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.006249/0.7908, allocations: 3.389 MB / 0.6573 GB, free: 11.23 MB / 462.1 MB Notification: Performance of sort global known variables: time 3.41e-07/0.7908, allocations: 0 / 0.6573 GB, free: 11.23 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.007373/0.7982, allocations: 1.263 MB / 0.6585 GB, free: 9.977 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.0006543/0.7989, allocations: 197.1 kB / 0.6587 GB, free: 9.781 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01081/0.8097, allocations: 6.192 MB / 0.6648 GB, free: 3.605 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.017e-05/0.8098, allocations: 4 kB / 0.6648 GB, free: 3.602 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002674/0.8124, allocations: 1.805 MB / 0.6665 GB, free: 1.777 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004143/0.8166, allocations: 0.6426 MB / 0.6672 GB, free: 1.152 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02073/0.8373, allocations: 12.14 MB / 0.679 GB, free: 4.906 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005974/0.8434, allocations: 4.243 MB / 0.6832 GB, free: 0.6367 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.18/1.023, allocations: 2.703 MB / 0.6858 GB, free: 157.9 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009879/1.024, allocations: 329.9 kB / 0.6861 GB, free: 157.9 MB / 478.1 MB Notification: Performance of SimCode: time 9.51e-07/1.024, allocations: 0 / 0.6861 GB, free: 157.9 MB / 478.1 MB Notification: Performance of Templates: time 0.06861/1.093, 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 gbode -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.CraneCrabTo3D.pipe 2>&1)