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.001322/0.001322, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001526/0.001526, allocations: 192.4 kB / 16.25 MB, free: 6.637 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.369/1.369, allocations: 222.9 MB / 239.9 MB, free: 4.438 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.1465/0.1465, allocations: 9.111 MB / 299.2 MB, free: 1.836 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001291/0.001291, allocations: 71.89 kB / 361.5 MB, free: 13.38 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1079/0.1092, allocations: 51.42 MB / 412.9 MB, free: 9.906 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.InvertedCraneCrab): time 0.2265/0.3358, allocations: 27.34 MB / 440.2 MB, free: 28.75 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01351/0.3494, allocations: 6.074 MB / 446.3 MB, free: 25.05 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007096/0.3565, allocations: 105.5 kB / 446.4 MB, free: 25.04 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001237/0.3578, allocations: 302.8 kB / 446.7 MB, free: 24.93 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003635/0.3615, allocations: 1.305 MB / 448 MB, free: 24.32 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004649/0.362, allocations: 129.5 kB / 448.1 MB, free: 24.25 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002872/0.3649, allocations: 2.533 MB / 450.7 MB, free: 23.13 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001093/0.366, allocations: 0.9621 MB / 451.6 MB, free: 22.73 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009361/0.3669, allocations: 0.8999 MB / 452.5 MB, free: 22.33 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001297/0.3682, allocations: 1.423 MB / 454 MB, free: 21.78 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002805/0.3685, allocations: 238.2 kB / 454.2 MB, free: 21.77 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001218/0.3697, allocations: 0.8457 MB / 455 MB, free: 21.59 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008095/0.3706, allocations: 1.226 MB / 456.3 MB, free: 21.12 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001001/0.3716, allocations: 1.574 MB / 457.8 MB, free: 19.96 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003669/0.3753, allocations: 4.778 MB / 462.6 MB, free: 18.07 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.3753, allocations: 4 kB / 462.6 MB, free: 18.07 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.026e-06/0.3753, allocations: 0 / 462.6 MB, free: 18.07 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.746e-05/0.3754, allocations: 3.938 kB / 462.6 MB, free: 18.07 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: 1155 * Number of variables: 1155 Notification: Performance of Generate backend data structure: time 0.008504/0.3839, allocations: 3.873 MB / 466.5 MB, free: 16.04 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.747e-05/0.3839, allocations: 9.312 kB / 466.5 MB, free: 16.04 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006512/0.3905, allocations: 1.764 MB / 468.3 MB, free: 15.75 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003388/0.3939, allocations: 1.358 MB / 469.6 MB, free: 14.89 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001248/0.394, allocations: 149.3 kB / 469.8 MB, free: 14.82 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004446/0.3945, allocations: 196.5 kB / 470 MB, free: 14.75 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01327/0.4078, allocations: 7.968 MB / 477.9 MB, free: 11.21 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.79e-05/0.4079, allocations: 22.33 kB / 477.9 MB, free: 11.2 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003108/0.4082, allocations: 92.67 kB / 478 MB, free: 11.13 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00342/0.4116, allocations: 1.849 MB / 479.9 MB, free: 10.75 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01528/0.4269, allocations: 7.161 MB / 487 MB, free: 8.316 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03365/0.4606, allocations: 24.16 MB / 0.4992 GB, free: 1.633 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005493/0.4662, allocations: 2.38 MB / 0.5015 GB, free: 15.13 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001459/0.4676, allocations: 0.8223 MB / 0.5024 GB, free: 14.31 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007612/0.4753, allocations: 4.753 MB / 0.507 GB, free: 9.18 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.004e-05/0.4754, allocations: 43.56 kB / 0.507 GB, free: 9.129 MB / 382.1 MB Notification: Performance of pre-optimization done (n=128): time 3.938e-06/0.4754, allocations: 0 / 0.507 GB, free: 9.129 MB / 382.1 MB Notification: Performance of matching and sorting (n=154): time 0.01567/0.491, allocations: 7.007 MB / 0.5139 GB, free: 2.047 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.478e-05/0.4911, allocations: 64.72 kB / 0.5139 GB, free: 1.969 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00397/0.4951, allocations: 2.613 MB / 0.5165 GB, free: 15.32 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 9.851e-05/0.4952, allocations: 45.7 kB / 0.5165 GB, free: 15.27 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001309/0.4965, allocations: 2.081 MB / 0.5186 GB, free: 13.16 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004696/0.497, allocations: 0.5666 MB / 0.5191 GB, free: 12.59 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001115/0.4981, allocations: 0.7858 MB / 0.5199 GB, free: 11.79 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 8.38e-05/0.4982, allocations: 301.1 kB / 0.5202 GB, free: 11.49 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002156/0.5004, allocations: 1.311 MB / 0.5215 GB, free: 10.18 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003366/0.5038, allocations: 3.43 MB / 0.5248 GB, free: 5.691 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005542/0.5093, allocations: 5.091 MB / 0.5298 GB, free: 15.57 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.6e-05/0.5094, allocations: 20 kB / 0.5298 GB, free: 15.55 MB / 414.1 MB Notification: Performance of matching and sorting (n=512) (initialization): time 0.007262/0.5167, allocations: 4.801 MB / 0.5345 GB, free: 10.73 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.945e-05/0.5167, allocations: 40 kB / 0.5345 GB, free: 10.7 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.752e-05/0.5168, allocations: 75.94 kB / 0.5346 GB, free: 10.62 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003547/0.5172, allocations: 193.5 kB / 0.5348 GB, free: 10.43 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00265/0.5198, allocations: 0.8968 MB / 0.5357 GB, free: 9.531 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002064/0.5219, allocations: 2.387 MB / 0.538 GB, free: 6.984 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002454/0.5244, allocations: 211.7 kB / 0.5382 GB, free: 6.777 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003/0.5247, allocations: 228 kB / 0.5384 GB, free: 6.555 MB / 414.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.002125/0.5268, allocations: 1.554 MB / 0.5399 GB, free: 4.988 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000308/0.5271, allocations: 221.2 kB / 0.5401 GB, free: 4.77 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003227/0.5304, allocations: 1.955 MB / 0.542 GB, free: 2.801 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001093/0.5305, allocations: 31.97 kB / 0.5421 GB, free: 2.77 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.392e-06/0.5305, allocations: 4 kB / 0.5421 GB, free: 2.766 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.289e-05/0.5305, allocations: 3.984 kB / 0.5421 GB, free: 2.762 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008537/0.5391, allocations: 5.612 MB / 0.5476 GB, free: 13.01 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.345e-06/0.5391, allocations: 8.188 kB / 0.5476 GB, free: 13 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009496/0.5401, allocations: 239.6 kB / 0.5478 GB, free: 12.77 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002465/0.5403, allocations: 80.8 kB / 0.5479 GB, free: 12.69 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.922e-05/0.5404, allocations: 27.98 kB / 0.5479 GB, free: 12.66 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001764/0.5422, allocations: 2.122 MB / 0.55 GB, free: 10.38 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.747e-06/0.5422, allocations: 4.031 kB / 0.55 GB, free: 10.38 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004605/0.5468, allocations: 3.031 MB / 0.5529 GB, free: 7.301 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005936/0.5474, allocations: 294.3 kB / 0.5532 GB, free: 6.992 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002614/0.5477, allocations: 24 kB / 0.5532 GB, free: 6.969 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008415/0.5485, allocations: 75.84 kB / 0.5533 GB, free: 6.895 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001947/0.5487, allocations: 76.89 kB / 0.5534 GB, free: 6.82 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.483e-05/0.5488, allocations: 48.05 kB / 0.5534 GB, free: 6.773 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002473/0.5513, allocations: 1.687 MB / 0.5551 GB, free: 5.07 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.5513, allocations: 0 / 0.5551 GB, free: 5.07 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002681/0.554, allocations: 0.6602 MB / 0.5557 GB, free: 4.41 MB / 430.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.0003284/0.5544, allocations: 160.2 kB / 0.5559 GB, free: 4.246 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.007592/0.562, allocations: 4.565 MB / 0.5603 GB, free: 15.69 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.63e-06/0.562, allocations: 4.719 kB / 0.5603 GB, free: 15.68 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001419/0.5634, allocations: 0.9767 MB / 0.5613 GB, free: 14.69 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001958/0.5654, allocations: 391.8 kB / 0.5617 GB, free: 14.33 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01094/0.5763, allocations: 7.947 MB / 0.5694 GB, free: 6.336 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002724/0.5791, allocations: 2.562 MB / 0.5719 GB, free: 3.746 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003072/0.5822, allocations: 1.204 MB / 0.5731 GB, free: 2.535 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004413/0.5827, allocations: 167.4 kB / 0.5733 GB, free: 2.375 MB / 446.1 MB Notification: Performance of SimCode: time 7.62e-07/0.5827, allocations: 0 / 0.5733 GB, free: 2.375 MB / 446.1 MB Notification: Performance of Templates: time 0.2329/0.8156, allocations: 24.36 MB / 0.5971 GB, free: 123.5 MB / 446.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)