Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab.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.InvertedCraneCrab,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab") translateModel(PlanarMechanics.Examples.InvertedCraneCrab,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.01087/0.01087, allocations: 96.7 kB / 15.73 MB, free: 6.055 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.001863/0.001863, allocations: 194.9 kB / 16.67 MB, free: 5.977 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.436/1.436, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.2063/0.2063, allocations: 9.123 MB / 299.7 MB, free: 1.734 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001318/0.001318, allocations: 71.88 kB / 414.7 MB, free: 8.375 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3148/0.3162, allocations: 51.43 MB / 466.1 MB, free: 18.02 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.InvertedCraneCrab): time 0.009419/0.3256, allocations: 8.63 MB / 474.7 MB, free: 11.9 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00524/0.3309, allocations: 2.603 MB / 477.3 MB, free: 10.14 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001222/0.3321, allocations: 34.38 kB / 477.4 MB, free: 10.13 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008712/0.333, allocations: 373.3 kB / 477.7 MB, free: 9.953 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003071/0.3362, allocations: 1.404 MB / 479.1 MB, free: 9.16 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000387/0.3366, allocations: 145.3 kB / 479.3 MB, free: 9.043 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002659/0.3392, allocations: 2.537 MB / 481.8 MB, free: 7.582 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001078/0.3403, allocations: 0.9315 MB / 482.7 MB, free: 6.945 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00144/0.3418, allocations: 0.8999 MB / 483.6 MB, free: 6.414 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001665/0.3434, allocations: 1.316 MB / 485 MB, free: 5.602 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004452/0.3439, allocations: 233.2 kB / 485.2 MB, free: 5.602 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001625/0.3455, allocations: 0.8363 MB / 486 MB, free: 5.266 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001052/0.3466, allocations: 1.213 MB / 487.2 MB, free: 4.551 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001261/0.3479, allocations: 1.569 MB / 488.8 MB, free: 3.32 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006381/0.3543, allocations: 5.004 MB / 493.8 MB, free: 15.87 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.3543, allocations: 0 / 493.8 MB, free: 15.87 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.3543, allocations: 3.938 kB / 493.8 MB, free: 15.86 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001338/0.3544, allocations: 0 / 493.8 MB, free: 15.86 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: 1155 * Number of variables: 1155 Notification: Performance of Generate backend data structure: time 0.01014/0.3646, allocations: 3.967 MB / 497.8 MB, free: 12.33 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.401e-05/0.3647, allocations: 12.03 kB / 497.8 MB, free: 12.32 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006561/0.3712, allocations: 1.781 MB / 499.6 MB, free: 10.54 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003109/0.3744, allocations: 1.375 MB / 0.4892 GB, free: 9.117 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001349/0.3745, allocations: 148.1 kB / 0.4893 GB, free: 8.973 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004041/0.3749, allocations: 200 kB / 0.4895 GB, free: 8.777 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01193/0.3869, allocations: 7.967 MB / 0.4973 GB, free: 464 kB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.815e-05/0.387, allocations: 23.83 kB / 0.4973 GB, free: 440 kB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002741/0.3872, allocations: 95.86 kB / 0.4974 GB, free: 344 kB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002907/0.3902, allocations: 1.848 MB / 0.4992 GB, free: 14.48 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01362/0.4038, allocations: 7.157 MB / 0.5062 GB, free: 7.316 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04401/0.4479, allocations: 24.11 MB / 0.5298 GB, free: 14.71 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006481/0.4544, allocations: 2.389 MB / 0.5321 GB, free: 12.21 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00166/0.4561, allocations: 0.8203 MB / 0.5329 GB, free: 11.39 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0106/0.4667, allocations: 4.738 MB / 0.5375 GB, free: 6.266 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.807e-05/0.4668, allocations: 47.56 kB / 0.5376 GB, free: 6.211 MB / 414.1 MB Notification: Performance of pre-optimization done (n=128): time 3.797e-06/0.4668, allocations: 0 / 0.5376 GB, free: 6.211 MB / 414.1 MB Notification: Performance of matching and sorting (n=154): time 0.01789/0.4847, allocations: 7.07 MB / 0.5445 GB, free: 15.07 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.778e-05/0.4848, allocations: 72.7 kB / 0.5445 GB, free: 14.99 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005681/0.4905, allocations: 2.618 MB / 0.5471 GB, free: 12.34 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002403/0.4908, allocations: 45.7 kB / 0.5471 GB, free: 12.29 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002201/0.493, allocations: 2.172 MB / 0.5493 GB, free: 10.09 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001019/0.494, allocations: 0.5929 MB / 0.5498 GB, free: 9.496 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00213/0.4962, allocations: 0.7864 MB / 0.5506 GB, free: 8.699 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001237/0.4963, allocations: 301.1 kB / 0.5509 GB, free: 8.402 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002772/0.4991, allocations: 1.308 MB / 0.5522 GB, free: 7.09 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004235/0.5033, allocations: 3.433 MB / 0.5555 GB, free: 2.602 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006665/0.51, allocations: 5.09 MB / 0.5605 GB, free: 12.46 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.061e-05/0.5101, allocations: 24 kB / 0.5605 GB, free: 12.44 MB / 446.1 MB Notification: Performance of matching and sorting (n=512) (initialization): time 0.009558/0.5197, allocations: 4.817 MB / 0.5652 GB, free: 7.625 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.92e-05/0.5198, allocations: 36 kB / 0.5653 GB, free: 7.59 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001206/0.5199, allocations: 76 kB / 0.5653 GB, free: 7.516 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000424/0.5204, allocations: 189.4 kB / 0.5655 GB, free: 7.328 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002965/0.5234, allocations: 0.9007 MB / 0.5664 GB, free: 6.426 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002213/0.5256, allocations: 2.375 MB / 0.5687 GB, free: 3.891 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003383/0.529, allocations: 207.8 kB / 0.5689 GB, free: 3.688 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000813/0.5298, allocations: 232 kB / 0.5691 GB, free: 3.461 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 338 * 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 (478): * Single equations (assignments): 473 * 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 {(1,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003909/0.5337, allocations: 1.562 MB / 0.5707 GB, free: 1.887 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005947/0.5343, allocations: 230.5 kB / 0.5709 GB, free: 1.66 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004346/0.5387, allocations: 1.947 MB / 0.5728 GB, free: 15.7 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001265/0.5388, allocations: 27.98 kB / 0.5728 GB, free: 15.67 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.58e-05/0.5389, allocations: 0 / 0.5728 GB, free: 15.67 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.793e-05/0.5389, allocations: 3.984 kB / 0.5728 GB, free: 15.67 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01291/0.5518, allocations: 5.583 MB / 0.5783 GB, free: 9.953 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.891e-05/0.5519, allocations: 16 kB / 0.5783 GB, free: 9.938 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001052/0.553, allocations: 243.8 kB / 0.5785 GB, free: 9.699 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002884/0.5533, allocations: 80.8 kB / 0.5786 GB, free: 9.617 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001218/0.5534, allocations: 27.98 kB / 0.5786 GB, free: 9.59 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002082/0.5555, allocations: 2.11 MB / 0.5807 GB, free: 7.32 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.352e-06/0.5555, allocations: 7.969 kB / 0.5807 GB, free: 7.312 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005769/0.5613, allocations: 3.042 MB / 0.5837 GB, free: 4.227 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009616/0.5623, allocations: 307.6 kB / 0.5839 GB, free: 3.906 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000732/0.563, allocations: 27.94 kB / 0.584 GB, free: 3.879 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001449/0.5645, allocations: 75.91 kB / 0.584 GB, free: 3.805 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002771/0.5648, allocations: 84.83 kB / 0.5841 GB, free: 3.723 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001107/0.5649, allocations: 43.98 kB / 0.5842 GB, free: 3.68 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.004198/0.5691, allocations: 1.684 MB / 0.5858 GB, free: 1.98 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.5691, allocations: 0 / 0.5858 GB, free: 1.98 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004509/0.5736, allocations: 0.664 MB / 0.5865 GB, free: 1.316 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (revolute.phi,prismatic.s,prismatic.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 (124): * Single equations (assignments): 119 * 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 {(1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004555/0.5741, allocations: 156.4 kB / 0.5866 GB, free: 1.156 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.2717/0.8459, allocations: 3.128 MB / 0.5897 GB, free: 115 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.022e-05/0.8459, allocations: 0 / 0.5897 GB, free: 115 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002081/0.848, allocations: 0.9882 MB / 0.5906 GB, free: 114.7 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002579/0.8506, allocations: 400.8 kB / 0.591 GB, free: 114.5 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01641/0.867, allocations: 6.424 MB / 0.5973 GB, free: 111.7 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003977/0.871, allocations: 2.566 MB / 0.5998 GB, free: 110.5 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003501/0.8746, allocations: 1.203 MB / 0.601 GB, free: 110.4 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005636/0.8752, allocations: 174.9 kB / 0.6011 GB, free: 110.4 MB / 462.1 MB Notification: Performance of SimCode: time 1.984e-06/0.8752, allocations: 0 / 0.6011 GB, free: 110.4 MB / 462.1 MB Notification: Performance of Templates: time 0.05113/0.9263, allocations: 24.02 MB / 0.6246 GB, free: 97.16 MB / 462.1 MB make -j1 -f PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab.makefile (rm -f PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab.sim & ./PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab -abortSlowSimulation -alarm=480 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab.pipe 2>&1)