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.00115/0.00115, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001284/0.001284, allocations: 195.4 kB / 16.14 MB, free: 6.703 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.581/1.581, allocations: 222.9 MB / 239.8 MB, free: 4.551 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.2008/0.2008, allocations: 9.105 MB / 299.1 MB, free: 1.926 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001381/0.001381, allocations: 67.89 kB / 361.3 MB, free: 13.55 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1085/0.1099, allocations: 51.44 MB / 412.7 MB, free: 10.07 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.InvertedCraneCrab): time 0.1984/0.3083, allocations: 27.34 MB / 440 MB, free: 28.8 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01337/0.3217, allocations: 6.1 MB / 446.1 MB, free: 25.09 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005206/0.327, allocations: 99.84 kB / 446.2 MB, free: 25.08 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001142/0.3282, allocations: 310.2 kB / 446.5 MB, free: 24.96 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003326/0.3316, allocations: 1.302 MB / 447.9 MB, free: 24.37 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004827/0.3321, allocations: 138.3 kB / 448 MB, free: 24.29 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002914/0.335, allocations: 3.49 MB / 451.5 MB, free: 23.09 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001117/0.3361, allocations: 0.8551 MB / 452.3 MB, free: 22.77 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001132/0.3373, allocations: 0.763 MB / 453.1 MB, free: 22.46 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001499/0.3388, allocations: 1.325 MB / 454.4 MB, free: 22 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004231/0.3392, allocations: 138.4 kB / 454.6 MB, free: 22 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001315/0.3406, allocations: 0.7899 MB / 455.3 MB, free: 21.81 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008764/0.3414, allocations: 1.126 MB / 456.5 MB, free: 21.43 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001157/0.3426, allocations: 1.482 MB / 458 MB, free: 20.36 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003746/0.3464, allocations: 4.603 MB / 462.6 MB, free: 18.57 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.562e-06/0.3464, allocations: 0 / 462.6 MB, free: 18.57 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.3464, allocations: 0 / 462.6 MB, free: 18.57 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001276/0.3465, allocations: 0 / 462.6 MB, free: 18.57 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.008524/0.3551, allocations: 3.883 MB / 466.4 MB, free: 16.54 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.921e-05/0.3551, allocations: 10.09 kB / 466.4 MB, free: 16.54 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006444/0.3616, allocations: 1.763 MB / 468.2 MB, free: 16.25 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002817/0.3644, allocations: 1.349 MB / 469.6 MB, free: 15.4 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001435/0.3646, allocations: 149.3 kB / 469.7 MB, free: 15.33 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006227/0.3652, allocations: 204.7 kB / 469.9 MB, free: 15.25 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01612/0.3814, allocations: 7.97 MB / 477.9 MB, free: 11.71 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001661/0.3816, allocations: 25.67 kB / 477.9 MB, free: 11.69 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005935/0.3822, allocations: 90.19 kB / 478 MB, free: 11.63 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003301/0.3855, allocations: 1.855 MB / 479.8 MB, free: 11.24 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01898/0.4045, allocations: 7.167 MB / 487 MB, free: 8.809 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03724/0.4418, allocations: 24.15 MB / 0.4992 GB, free: 1.672 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006125/0.448, allocations: 2.37 MB / 0.5015 GB, free: 15.18 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001572/0.4496, allocations: 0.827 MB / 0.5023 GB, free: 14.36 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008901/0.4585, allocations: 4.745 MB / 0.5069 GB, free: 9.23 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.067e-05/0.4586, allocations: 43.56 kB / 0.507 GB, free: 9.18 MB / 382.1 MB Notification: Performance of pre-optimization done (n=128): time 5.42e-06/0.4586, allocations: 0 / 0.507 GB, free: 9.18 MB / 382.1 MB Notification: Performance of matching and sorting (n=154): time 0.01731/0.4759, allocations: 7.009 MB / 0.5138 GB, free: 2.094 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.483e-05/0.476, allocations: 64.72 kB / 0.5139 GB, free: 2.016 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005212/0.4813, allocations: 2.613 MB / 0.5164 GB, free: 15.37 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000252/0.4816, allocations: 45.7 kB / 0.5165 GB, free: 15.32 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001589/0.4832, allocations: 2.081 MB / 0.5185 GB, free: 13.21 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007232/0.4839, allocations: 0.5667 MB / 0.5191 GB, free: 12.63 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00171/0.4856, allocations: 0.7857 MB / 0.5198 GB, free: 11.84 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001121/0.4858, allocations: 305.1 kB / 0.5201 GB, free: 11.54 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002847/0.4886, allocations: 1.308 MB / 0.5214 GB, free: 10.22 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004237/0.4929, allocations: 3.437 MB / 0.5248 GB, free: 5.73 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007946/0.5009, allocations: 5.083 MB / 0.5297 GB, free: 15.61 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001655/0.5011, allocations: 24 kB / 0.5297 GB, free: 15.59 MB / 414.1 MB Notification: Performance of matching and sorting (n=512) (initialization): time 0.01019/0.5113, allocations: 4.809 MB / 0.5344 GB, free: 10.77 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.673e-05/0.5114, allocations: 36 kB / 0.5345 GB, free: 10.73 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001192/0.5116, allocations: 76 kB / 0.5345 GB, free: 10.66 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004717/0.512, allocations: 192.7 kB / 0.5347 GB, free: 10.47 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003197/0.5153, allocations: 0.8968 MB / 0.5356 GB, free: 9.57 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002604/0.5179, allocations: 2.188 MB / 0.5377 GB, free: 7.227 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003631/0.5215, allocations: 211.8 kB / 0.5379 GB, free: 7.02 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006869/0.5223, allocations: 228 kB / 0.5382 GB, free: 6.797 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.003519/0.5258, allocations: 1.56 MB / 0.5397 GB, free: 5.227 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004999/0.5263, allocations: 221.2 kB / 0.5399 GB, free: 5.008 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003947/0.5303, allocations: 1.951 MB / 0.5418 GB, free: 3.047 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001222/0.5304, allocations: 31.92 kB / 0.5418 GB, free: 3.016 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.341e-05/0.5304, allocations: 480 / 0.5418 GB, free: 3.016 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.839e-05/0.5305, allocations: 7.969 kB / 0.5418 GB, free: 3.008 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01177/0.5422, allocations: 5.612 MB / 0.5473 GB, free: 13.26 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.104e-05/0.5423, allocations: 0 / 0.5473 GB, free: 13.26 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001029/0.5433, allocations: 243.6 kB / 0.5476 GB, free: 13.02 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000283/0.5436, allocations: 88.66 kB / 0.5476 GB, free: 12.93 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001238/0.5438, allocations: 24 kB / 0.5477 GB, free: 12.91 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002007/0.5458, allocations: 1.934 MB / 0.5495 GB, free: 10.82 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.789e-06/0.5458, allocations: 7.875 kB / 0.5496 GB, free: 10.81 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005282/0.5511, allocations: 3.031 MB / 0.5525 GB, free: 7.738 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00102/0.5522, allocations: 294.3 kB / 0.5528 GB, free: 7.43 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006576/0.5529, allocations: 24 kB / 0.5528 GB, free: 7.406 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001241/0.5541, allocations: 79.91 kB / 0.5529 GB, free: 7.328 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002516/0.5544, allocations: 80.89 kB / 0.553 GB, free: 7.246 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001251/0.5545, allocations: 43.98 kB / 0.553 GB, free: 7.203 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.003252/0.5578, allocations: 1.687 MB / 0.5547 GB, free: 5.5 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.5578, allocations: 0 / 0.5547 GB, free: 5.5 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0039/0.5617, allocations: 0.6602 MB / 0.5553 GB, free: 4.84 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.0005377/0.5623, allocations: 159 kB / 0.5555 GB, free: 4.676 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.005785/0.5681, allocations: 3.116 MB / 0.5585 GB, free: 1.57 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 6.101e-06/0.5681, allocations: 1.438 kB / 0.5585 GB, free: 1.57 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001714/0.5698, allocations: 0.9848 MB / 0.5595 GB, free: 0.5664 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002363/0.5722, allocations: 355.2 kB / 0.5598 GB, free: 232 kB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01386/0.5861, allocations: 7.935 MB / 0.5676 GB, free: 8.25 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004257/0.5904, allocations: 2.576 MB / 0.5701 GB, free: 5.645 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003641/0.5941, allocations: 1.204 MB / 0.5712 GB, free: 4.434 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006718/0.5948, allocations: 171.4 kB / 0.5714 GB, free: 4.27 MB / 446.1 MB Notification: Performance of SimCode: time 9.82e-07/0.5948, allocations: 0 / 0.5714 GB, free: 4.27 MB / 446.1 MB Notification: Performance of Templates: time 0.2401/0.8349, allocations: 23.52 MB / 0.5944 GB, free: 122.1 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)