Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.CraneCrab.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.CraneCrab,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.CraneCrab") translateModel(PlanarMechanics.Examples.CraneCrab,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.CraneCrab") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001298/0.001298, allocations: 86.95 kB / 15.06 MB, free: 1.09 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.001564/0.001565, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.486/1.486, allocations: 223.3 MB / 240 MB, free: 5.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.2583/0.2583, allocations: 9.116 MB / 300.2 MB, free: 2.742 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003637/0.0003637, allocations: 8 kB / 363.1 MB, free: 13.02 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1295/0.1299, allocations: 52.42 MB / 415.5 MB, free: 8.555 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.CraneCrab): time 0.2831/0.413, allocations: 24.43 MB / 440 MB, free: 30.6 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01527/0.4284, allocations: 5.805 MB / 445.8 MB, free: 26.57 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008219/0.4366, allocations: 97.06 kB / 445.9 MB, free: 26.56 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004658/0.4413, allocations: 1.181 MB / 447 MB, free: 26.15 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01438/0.4557, allocations: 4.256 MB / 451.3 MB, free: 24.29 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001728/0.4575, allocations: 123.4 kB / 451.4 MB, free: 24.21 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004184/0.4617, allocations: 2.75 MB / 454.2 MB, free: 23.16 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001378/0.4631, allocations: 0.7893 MB / 455 MB, free: 22.86 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001296/0.4644, allocations: 0.7835 MB / 455.7 MB, free: 22.59 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001568/0.466, allocations: 1.275 MB / 457 MB, free: 22.18 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003125/0.4663, allocations: 128.2 kB / 457.1 MB, free: 22.18 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001483/0.4678, allocations: 0.6695 MB / 457.8 MB, free: 22.04 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001029/0.4689, allocations: 1.09 MB / 458.9 MB, free: 21.67 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006764/0.4695, allocations: 0.6289 MB / 459.5 MB, free: 21.2 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003963/0.4735, allocations: 3.634 MB / 463.2 MB, free: 20.38 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.582e-06/0.4735, allocations: 4 kB / 463.2 MB, free: 20.37 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.4735, allocations: 0 / 463.2 MB, free: 20.37 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.122e-05/0.4736, allocations: 0 / 463.2 MB, free: 20.37 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1144 * Number of variables: 1144 Notification: Performance of Generate backend data structure: time 0.007761/0.4814, allocations: 3.23 MB / 466.4 MB, free: 18.74 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.886e-05/0.4815, allocations: 16.11 kB / 466.4 MB, free: 18.73 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0068/0.4883, allocations: 1.799 MB / 468.2 MB, free: 18.44 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003555/0.4919, allocations: 1.321 MB / 469.5 MB, free: 17.62 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001733/0.492, allocations: 143.4 kB / 469.7 MB, free: 17.55 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006223/0.4927, allocations: 193.9 kB / 469.9 MB, free: 17.48 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01607/0.5088, allocations: 7.891 MB / 477.8 MB, free: 13.97 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.9e-05/0.5089, allocations: 33.25 kB / 477.8 MB, free: 13.95 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002959/0.5092, allocations: 92.61 kB / 477.9 MB, free: 13.88 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003727/0.5129, allocations: 1.845 MB / 479.7 MB, free: 13.51 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0184/0.5313, allocations: 7.097 MB / 486.8 MB, free: 10.74 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03947/0.5709, allocations: 23.9 MB / 0.4988 GB, free: 3.98 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005263/0.5762, allocations: 2.362 MB / 0.5011 GB, free: 1.504 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001258/0.5774, allocations: 0.8137 MB / 0.5019 GB, free: 0.6914 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007183/0.5846, allocations: 4.609 MB / 0.5064 GB, free: 11.7 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.333e-05/0.5847, allocations: 43.56 kB / 0.5064 GB, free: 11.65 MB / 382.1 MB Notification: Performance of pre-optimization done (n=129): time 3.937e-06/0.5847, allocations: 0 / 0.5064 GB, free: 11.65 MB / 382.1 MB Notification: Performance of matching and sorting (n=153): time 0.01408/0.5988, allocations: 6.998 MB / 0.5132 GB, free: 4.562 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.876e-05/0.5989, allocations: 64.72 kB / 0.5133 GB, free: 4.484 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003642/0.6025, allocations: 2.565 MB / 0.5158 GB, free: 1.887 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.295e-05/0.6026, allocations: 57.69 kB / 0.5159 GB, free: 1.824 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00146/0.6041, allocations: 2.047 MB / 0.5179 GB, free: 15.74 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004818/0.6046, allocations: 0.5745 MB / 0.5184 GB, free: 15.16 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000166/0.6048, allocations: 76 kB / 0.5185 GB, free: 15.09 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002944/0.6051, allocations: 478.3 kB / 0.5189 GB, free: 14.62 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002058/0.6071, allocations: 1.257 MB / 0.5202 GB, free: 13.36 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003789/0.6109, allocations: 3.359 MB / 0.5235 GB, free: 8.98 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003049/0.614, allocations: 2.073 MB / 0.5255 GB, free: 6.91 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.887e-05/0.614, allocations: 28 kB / 0.5255 GB, free: 6.883 MB / 398.1 MB Notification: Performance of matching and sorting (n=507) (initialization): time 0.008127/0.6222, allocations: 4.792 MB / 0.5302 GB, free: 2.078 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.23e-05/0.6223, allocations: 36 kB / 0.5302 GB, free: 2.043 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.289e-05/0.6223, allocations: 76 kB / 0.5303 GB, free: 1.969 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007655/0.6231, allocations: 325.2 kB / 0.5306 GB, free: 1.648 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002495/0.6256, allocations: 0.8461 MB / 0.5314 GB, free: 0.8008 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004451/0.6301, allocations: 3.352 MB / 0.5347 GB, free: 13.31 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002665/0.6328, allocations: 191.9 kB / 0.5349 GB, free: 13.12 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003426/0.6331, allocations: 228 kB / 0.5351 GB, free: 12.9 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 333 * Number of states: 0 () * Number of discrete variables: 15 (prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[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 (463): * Single equations (assignments): 458 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 17} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00302/0.6361, allocations: 1.55 MB / 0.5366 GB, free: 11.34 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004158/0.6366, allocations: 217.2 kB / 0.5368 GB, free: 11.12 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003451/0.64, allocations: 1.989 MB / 0.5388 GB, free: 9.117 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.359e-05/0.6401, allocations: 27.98 kB / 0.5388 GB, free: 9.09 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.859e-06/0.6402, allocations: 8.062 kB / 0.5388 GB, free: 9.082 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.572e-05/0.6402, allocations: 7.969 kB / 0.5388 GB, free: 9.074 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009838/0.65, allocations: 5.669 MB / 0.5443 GB, free: 3.285 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.263e-05/0.6501, allocations: 8.344 kB / 0.5444 GB, free: 3.277 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008049/0.6509, allocations: 203.7 kB / 0.5445 GB, free: 3.078 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006089/0.6515, allocations: 214.5 kB / 0.5448 GB, free: 2.867 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.562e-05/0.6516, allocations: 35.97 kB / 0.5448 GB, free: 2.832 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003439/0.6551, allocations: 2.713 MB / 0.5474 GB, free: 15.98 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.805e-06/0.6551, allocations: 3.938 kB / 0.5474 GB, free: 15.98 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004636/0.6597, allocations: 3.071 MB / 0.5504 GB, free: 12.85 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008891/0.6607, allocations: 318.2 kB / 0.5507 GB, free: 12.52 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002274/0.6609, allocations: 24 kB / 0.5508 GB, free: 12.5 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007133/0.6616, allocations: 67.91 kB / 0.5508 GB, free: 12.43 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001601/0.6618, allocations: 88.83 kB / 0.5509 GB, free: 12.34 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.882e-05/0.6619, allocations: 47.98 kB / 0.551 GB, free: 12.3 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002871/0.6648, allocations: 1.656 MB / 0.5526 GB, free: 10.62 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.6648, allocations: 0 / 0.5526 GB, free: 10.62 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003421/0.6682, allocations: 0.6757 MB / 0.5532 GB, free: 9.949 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 4 (revolute.phi,revolute.w,damper1D.s_rel,damper1D.v_rel) * 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 (113): * Single equations (assignments): 108 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 15} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004567/0.6687, allocations: 170.6 kB / 0.5534 GB, free: 9.773 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.005927/0.6746, allocations: 3.108 MB / 0.5564 GB, free: 6.676 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.811e-06/0.6746, allocations: 0 / 0.5564 GB, free: 6.676 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001537/0.6762, allocations: 1.009 MB / 0.5574 GB, free: 5.652 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002097/0.6783, allocations: 373 kB / 0.5578 GB, free: 5.297 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0134/0.6917, allocations: 7.733 MB / 0.5653 GB, free: 13.51 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003056/0.6948, allocations: 2.559 MB / 0.5678 GB, free: 10.91 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003185/0.698, allocations: 1.184 MB / 0.569 GB, free: 9.723 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000406/0.6985, allocations: 163.4 kB / 0.5691 GB, free: 9.566 MB / 446.1 MB Notification: Performance of SimCode: time 1.402e-06/0.6985, allocations: 0 / 0.5691 GB, free: 9.566 MB / 446.1 MB Notification: Performance of Templates: time 0.2894/0.9879, allocations: 23.54 MB / 0.5921 GB, free: 119.2 MB / 446.1 MB make -j1 -f PlanarMechanics_PlanarMechanics.Examples.CraneCrab.makefile (rm -f PlanarMechanics_PlanarMechanics.Examples.CraneCrab.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.CraneCrab.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.CraneCrab.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.CraneCrab.sim & ./PlanarMechanics_PlanarMechanics.Examples.CraneCrab -abortSlowSimulation -alarm=480 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.CraneCrab.pipe 2>&1)