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.0009928/0.0009926, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.007315/0.007315, allocations: 170.6 kB / 16.27 MB, free: 6.652 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.434/1.434, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.1561/0.1561, allocations: 9.114 MB / 300.5 MB, free: 2.668 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003224/0.0003225, allocations: 8 kB / 363.7 MB, free: 12.66 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09482/0.09516, allocations: 52.44 MB / 416.2 MB, free: 8.184 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.InvertedCraneCrab): time 0.1998/0.295, allocations: 26.5 MB / 442.7 MB, free: 27.31 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01056/0.3056, allocations: 6.067 MB / 448.7 MB, free: 24.65 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003682/0.3093, allocations: 99.06 kB / 448.8 MB, free: 24.64 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008069/0.3101, allocations: 299.7 kB / 449.1 MB, free: 24.53 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002776/0.3129, allocations: 1.31 MB / 450.4 MB, free: 23.93 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003978/0.3133, allocations: 132.2 kB / 450.6 MB, free: 23.86 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002809/0.3161, allocations: 3.494 MB / 454 MB, free: 22.66 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001014/0.3172, allocations: 0.8508 MB / 454.9 MB, free: 22.34 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001013/0.3182, allocations: 0.7506 MB / 455.6 MB, free: 22.04 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001489/0.3197, allocations: 1.302 MB / 456.9 MB, free: 21.6 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003265/0.32, allocations: 128.2 kB / 457.1 MB, free: 21.6 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001215/0.3213, allocations: 0.7797 MB / 457.9 MB, free: 21.41 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007815/0.3221, allocations: 1.134 MB / 459 MB, free: 21.02 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001162/0.3232, allocations: 1.488 MB / 460.5 MB, free: 19.93 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003568/0.3268, allocations: 4.505 MB / 465 MB, free: 18.55 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.596e-06/0.3268, allocations: 0 / 465 MB, free: 18.55 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.3268, allocations: 0 / 465 MB, free: 18.55 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001074/0.3269, allocations: 0 / 465 MB, free: 18.55 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.007838/0.3348, allocations: 3.247 MB / 468.2 MB, free: 16.91 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.101e-05/0.3349, allocations: 9.5 kB / 468.2 MB, free: 16.91 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006914/0.3418, allocations: 1.811 MB / 470 MB, free: 16.61 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00275/0.3446, allocations: 1.348 MB / 471.4 MB, free: 15.76 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001274/0.3447, allocations: 152.3 kB / 471.5 MB, free: 15.68 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005892/0.3453, allocations: 205.4 kB / 471.7 MB, free: 15.61 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01417/0.3595, allocations: 7.967 MB / 479.7 MB, free: 12.07 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.19e-05/0.3596, allocations: 29.88 kB / 479.7 MB, free: 12.05 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003497/0.36, allocations: 93.2 kB / 479.8 MB, free: 11.98 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00332/0.3633, allocations: 1.84 MB / 481.7 MB, free: 11.61 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01512/0.3784, allocations: 7.178 MB / 488.8 MB, free: 9.176 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03665/0.4151, allocations: 24.17 MB / 0.501 GB, free: 1.949 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005574/0.4207, allocations: 2.377 MB / 0.5033 GB, free: 15.45 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00146/0.4222, allocations: 0.8347 MB / 0.5041 GB, free: 14.62 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007505/0.4298, allocations: 4.738 MB / 0.5088 GB, free: 9.5 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.868e-05/0.4299, allocations: 47.5 kB / 0.5088 GB, free: 9.445 MB / 382.1 MB Notification: Performance of pre-optimization done (n=128): time 4.728e-06/0.4299, allocations: 0 / 0.5088 GB, free: 9.445 MB / 382.1 MB Notification: Performance of matching and sorting (n=154): time 0.0157/0.4456, allocations: 7.101 MB / 0.5157 GB, free: 2.266 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.832e-05/0.4457, allocations: 64.72 kB / 0.5158 GB, free: 2.188 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004197/0.4499, allocations: 2.609 MB / 0.5183 GB, free: 15.55 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001302/0.45, allocations: 53.69 kB / 0.5184 GB, free: 15.49 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001441/0.4515, allocations: 2.077 MB / 0.5204 GB, free: 13.38 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005346/0.452, allocations: 0.5706 MB / 0.521 GB, free: 12.8 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004763/0.4525, allocations: 322.3 kB / 0.5213 GB, free: 12.48 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001085/0.4526, allocations: 301.1 kB / 0.5216 GB, free: 12.18 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002508/0.4551, allocations: 1.315 MB / 0.5229 GB, free: 10.86 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003992/0.4591, allocations: 3.449 MB / 0.5262 GB, free: 6.355 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007252/0.4664, allocations: 5.111 MB / 0.5312 GB, free: 212 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.545e-05/0.4665, allocations: 20 kB / 0.5312 GB, free: 192 kB / 398.1 MB Notification: Performance of matching and sorting (n=512) (initialization): time 0.01043/0.477, allocations: 4.829 MB / 0.536 GB, free: 11.35 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.71e-05/0.4771, allocations: 36 kB / 0.536 GB, free: 11.32 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001148/0.4772, allocations: 76.12 kB / 0.5361 GB, free: 11.24 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004433/0.4777, allocations: 196.9 kB / 0.5363 GB, free: 11.05 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003193/0.4809, allocations: 0.9085 MB / 0.5371 GB, free: 10.14 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002184/0.4831, allocations: 2.18 MB / 0.5393 GB, free: 7.801 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002806/0.4859, allocations: 215.9 kB / 0.5395 GB, free: 7.59 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005151/0.4864, allocations: 232 kB / 0.5397 GB, free: 7.363 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.002817/0.4893, allocations: 1.558 MB / 0.5412 GB, free: 5.793 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004087/0.4897, allocations: 225.1 kB / 0.5414 GB, free: 5.57 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003685/0.4934, allocations: 1.967 MB / 0.5434 GB, free: 3.594 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001169/0.4935, allocations: 27.98 kB / 0.5434 GB, free: 3.566 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.458e-06/0.4935, allocations: 0 / 0.5434 GB, free: 3.566 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.708e-05/0.4936, allocations: 11.97 kB / 0.5434 GB, free: 3.555 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0109/0.5045, allocations: 5.639 MB / 0.5489 GB, free: 13.78 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.689e-06/0.5045, allocations: 3.938 kB / 0.5489 GB, free: 13.77 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009944/0.5055, allocations: 243.7 kB / 0.5491 GB, free: 13.54 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002533/0.5058, allocations: 88.97 kB / 0.5492 GB, free: 13.45 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001025/0.5059, allocations: 31.89 kB / 0.5492 GB, free: 13.42 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001771/0.5077, allocations: 1.927 MB / 0.5511 GB, free: 11.34 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.891e-06/0.5077, allocations: 7.938 kB / 0.5511 GB, free: 11.33 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004662/0.5124, allocations: 3.059 MB / 0.5541 GB, free: 8.227 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006688/0.5131, allocations: 310.2 kB / 0.5544 GB, free: 7.902 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003847/0.5134, allocations: 27.98 kB / 0.5544 GB, free: 7.875 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009812/0.5144, allocations: 83.97 kB / 0.5545 GB, free: 7.793 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001852/0.5146, allocations: 84.77 kB / 0.5546 GB, free: 7.707 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.343e-05/0.5147, allocations: 44 kB / 0.5546 GB, free: 7.664 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002732/0.5175, allocations: 1.687 MB / 0.5563 GB, free: 5.961 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.5175, allocations: 192 / 0.5563 GB, free: 5.961 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002852/0.5203, allocations: 0.6562 MB / 0.5569 GB, free: 5.305 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.000349/0.5207, allocations: 162.9 kB / 0.5571 GB, free: 5.137 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.005135/0.5258, allocations: 3.136 MB / 0.5602 GB, free: 2.012 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.569e-06/0.5259, allocations: 0 / 0.5602 GB, free: 2.012 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001554/0.5274, allocations: 0.9967 MB / 0.5611 GB, free: 0.9961 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002432/0.5299, allocations: 365.4 kB / 0.5615 GB, free: 0.6445 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01294/0.5428, allocations: 8.02 MB / 0.5693 GB, free: 8.578 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003432/0.5463, allocations: 2.563 MB / 0.5718 GB, free: 5.98 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003106/0.5494, allocations: 1.196 MB / 0.573 GB, free: 4.777 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004536/0.5499, allocations: 171.4 kB / 0.5731 GB, free: 4.613 MB / 446.1 MB Notification: Performance of SimCode: time 1.342e-06/0.5499, allocations: 3.938 kB / 0.5731 GB, free: 4.609 MB / 446.1 MB Notification: Performance of Templates: time 0.2248/0.7747, allocations: 23.29 MB / 0.5959 GB, free: 119 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)