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.0008215/0.0008216, allocations: 91.22 kB / 15.36 MB, free: 0.7383 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.005704/0.005704, allocations: 172.9 kB / 16.26 MB, free: 6.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.41/1.41, allocations: 223.3 MB / 240.3 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.1984/0.1984, allocations: 9.111 MB / 300.5 MB, free: 2.727 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003704/0.0003704, allocations: 8 kB / 363.7 MB, free: 12.67 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1233/0.1237, allocations: 52.43 MB / 416.2 MB, free: 8.191 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.CraneCrab): time 0.3122/0.4359, allocations: 26.21 MB / 442.4 MB, free: 27.44 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01362/0.4496, allocations: 6.038 MB / 448.4 MB, free: 24.87 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006474/0.4561, allocations: 100.4 kB / 448.5 MB, free: 24.86 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001438/0.4576, allocations: 295.7 kB / 448.8 MB, free: 24.75 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003962/0.4616, allocations: 1.304 MB / 450.1 MB, free: 24.16 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006326/0.4622, allocations: 120.8 kB / 450.2 MB, free: 24.09 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003949/0.4662, allocations: 3.463 MB / 453.7 MB, free: 22.91 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001614/0.4678, allocations: 0.8021 MB / 454.5 MB, free: 22.61 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001491/0.4694, allocations: 0.7372 MB / 455.2 MB, free: 22.32 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002033/0.4714, allocations: 1.29 MB / 456.5 MB, free: 21.88 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006125/0.472, allocations: 129.2 kB / 456.6 MB, free: 21.88 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00174/0.4738, allocations: 0.7791 MB / 457.4 MB, free: 21.68 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001497/0.4753, allocations: 1.131 MB / 458.5 MB, free: 21.3 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002374/0.4777, allocations: 1.471 MB / 460 MB, free: 20.23 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005078/0.4828, allocations: 4.458 MB / 464.5 MB, free: 18.87 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.062e-06/0.4828, allocations: 7.344 kB / 464.5 MB, free: 18.87 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.883e-06/0.4828, allocations: 0 / 464.5 MB, free: 18.87 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002106/0.4831, allocations: 0 / 464.5 MB, free: 18.87 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.009203/0.4923, allocations: 3.2 MB / 467.7 MB, free: 17.23 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.405e-05/0.4923, allocations: 9.531 kB / 467.7 MB, free: 17.23 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007329/0.4997, allocations: 1.804 MB / 469.5 MB, free: 16.94 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002728/0.5024, allocations: 1.342 MB / 470.8 MB, free: 16.09 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001846/0.5026, allocations: 146.7 kB / 471 MB, free: 16.02 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007717/0.5034, allocations: 202.5 kB / 471.2 MB, free: 15.95 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.016/0.5194, allocations: 7.9 MB / 479.1 MB, free: 12.45 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001422/0.5196, allocations: 25.77 kB / 479.1 MB, free: 12.43 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006813/0.5203, allocations: 92.48 kB / 479.2 MB, free: 12.36 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003807/0.5241, allocations: 1.85 MB / 481 MB, free: 11.98 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01774/0.5419, allocations: 7.121 MB / 488.2 MB, free: 9.559 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04062/0.5826, allocations: 23.91 MB / 0.5001 GB, free: 2.898 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005714/0.5883, allocations: 2.376 MB / 0.5024 GB, free: 412 kB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001487/0.5898, allocations: 0.8202 MB / 0.5032 GB, free: 15.59 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007851/0.5977, allocations: 4.605 MB / 0.5077 GB, free: 10.6 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.592e-05/0.5978, allocations: 43.56 kB / 0.5077 GB, free: 10.55 MB / 382.1 MB Notification: Performance of pre-optimization done (n=129): time 4.659e-06/0.5978, allocations: 0 / 0.5077 GB, free: 10.55 MB / 382.1 MB Notification: Performance of matching and sorting (n=153): time 0.01687/0.6147, allocations: 7.009 MB / 0.5146 GB, free: 3.445 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.32e-05/0.6148, allocations: 64.72 kB / 0.5146 GB, free: 3.367 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004936/0.6197, allocations: 2.592 MB / 0.5172 GB, free: 0.7422 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001708/0.6199, allocations: 49.64 kB / 0.5172 GB, free: 0.6875 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001709/0.6216, allocations: 2.058 MB / 0.5192 GB, free: 14.59 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006701/0.6223, allocations: 0.5628 MB / 0.5198 GB, free: 14.02 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006061/0.6229, allocations: 326.2 kB / 0.5201 GB, free: 13.7 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001023/0.623, allocations: 305.1 kB / 0.5204 GB, free: 13.4 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00241/0.6255, allocations: 1.276 MB / 0.5216 GB, free: 12.12 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003772/0.6292, allocations: 3.378 MB / 0.5249 GB, free: 7.723 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007243/0.6365, allocations: 4.998 MB / 0.5298 GB, free: 1.707 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.594e-05/0.6366, allocations: 20 kB / 0.5298 GB, free: 1.688 MB / 398.1 MB Notification: Performance of matching and sorting (n=507) (initialization): time 0.01047/0.6471, allocations: 4.827 MB / 0.5345 GB, free: 12.85 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.187e-05/0.6472, allocations: 36 kB / 0.5346 GB, free: 12.81 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001119/0.6473, allocations: 72 kB / 0.5346 GB, free: 12.74 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009258/0.6483, allocations: 305.1 kB / 0.5349 GB, free: 12.44 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00302/0.6513, allocations: 0.8577 MB / 0.5358 GB, free: 11.58 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004841/0.6562, allocations: 3.352 MB / 0.539 GB, free: 8.102 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002917/0.6591, allocations: 199.8 kB / 0.5392 GB, free: 7.906 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000544/0.6597, allocations: 224 kB / 0.5394 GB, free: 7.688 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,17,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002863/0.6625, allocations: 1.554 MB / 0.541 GB, free: 6.121 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004321/0.663, allocations: 217.2 kB / 0.5412 GB, free: 5.906 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003874/0.6669, allocations: 2.001 MB / 0.5431 GB, free: 3.887 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001106/0.667, allocations: 27.98 kB / 0.5432 GB, free: 3.859 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.023e-05/0.667, allocations: 8.266 kB / 0.5432 GB, free: 3.852 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.605e-05/0.667, allocations: 11.92 kB / 0.5432 GB, free: 3.84 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01138/0.6784, allocations: 5.673 MB / 0.5487 GB, free: 14.04 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.978e-06/0.6785, allocations: 7.938 kB / 0.5487 GB, free: 14.04 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008885/0.6794, allocations: 208 kB / 0.5489 GB, free: 13.83 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006371/0.68, allocations: 212.6 kB / 0.5491 GB, free: 13.62 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001109/0.6801, allocations: 28 kB / 0.5491 GB, free: 13.59 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003441/0.6836, allocations: 2.741 MB / 0.5518 GB, free: 10.73 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.088e-06/0.6836, allocations: 0 / 0.5518 GB, free: 10.73 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004803/0.6884, allocations: 3.087 MB / 0.5548 GB, free: 7.578 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007601/0.6892, allocations: 306.3 kB / 0.5551 GB, free: 7.258 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004619/0.6897, allocations: 27.94 kB / 0.5552 GB, free: 7.23 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001009/0.6907, allocations: 67.91 kB / 0.5552 GB, free: 7.164 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002218/0.691, allocations: 96.89 kB / 0.5553 GB, free: 7.07 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001059/0.6911, allocations: 44 kB / 0.5554 GB, free: 7.027 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.003379/0.6945, allocations: 1.667 MB / 0.557 GB, free: 5.344 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.6945, allocations: 0 / 0.557 GB, free: 5.344 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003892/0.6984, allocations: 0.6758 MB / 0.5576 GB, free: 4.668 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,15,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004822/0.6989, allocations: 170.8 kB / 0.5578 GB, free: 4.492 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.006064/0.7049, allocations: 3.129 MB / 0.5609 GB, free: 1.375 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 7.855e-06/0.705, allocations: 0 / 0.5609 GB, free: 1.375 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001898/0.7069, allocations: 1.009 MB / 0.5618 GB, free: 360 kB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003391/0.7103, allocations: 361 kB / 0.5622 GB, free: 4 kB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01349/0.7238, allocations: 8.073 MB / 0.5701 GB, free: 7.875 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003501/0.7273, allocations: 2.57 MB / 0.5726 GB, free: 5.27 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003184/0.7306, allocations: 1.176 MB / 0.5737 GB, free: 4.086 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005573/0.7311, allocations: 167.4 kB / 0.5739 GB, free: 3.926 MB / 446.1 MB Notification: Performance of SimCode: time 1.313e-06/0.7311, allocations: 0 / 0.5739 GB, free: 3.926 MB / 446.1 MB Notification: Performance of Templates: time 0.2216/0.9527, allocations: 24.07 MB / 0.5974 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)