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.00129/0.00129, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002032/0.002031, allocations: 191.6 kB / 16.53 MB, free: 6.391 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.461/1.461, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.2085/0.2085, allocations: 9.115 MB / 299.5 MB, free: 1.703 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001465/0.001466, allocations: 63.91 kB / 361.9 MB, free: 13.04 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.119/0.1205, allocations: 51.44 MB / 413.4 MB, free: 9.555 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.InvertedCraneCrab): time 0.01146/0.132, allocations: 8.631 MB / 422 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.2444/0.3764, allocations: 2.605 MB / 424.6 MB, free: 36.23 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001349/0.3778, allocations: 31.81 kB / 424.7 MB, free: 36.23 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008738/0.3787, allocations: 365.7 kB / 425 MB, free: 36.23 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002994/0.3818, allocations: 1.4 MB / 426.4 MB, free: 36.17 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003625/0.3822, allocations: 148.4 kB / 426.6 MB, free: 36.16 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002328/0.3845, allocations: 2.517 MB / 429.1 MB, free: 35.77 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009712/0.3855, allocations: 0.9423 MB / 430 MB, free: 35.65 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008754/0.3864, allocations: 0.8965 MB / 430.9 MB, free: 35.47 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001163/0.3875, allocations: 1.32 MB / 432.2 MB, free: 35.1 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003041/0.3879, allocations: 232.8 kB / 432.5 MB, free: 35.1 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001304/0.3892, allocations: 0.8407 MB / 433.3 MB, free: 34.95 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007845/0.39, allocations: 1.218 MB / 434.5 MB, free: 34.47 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001044/0.391, allocations: 1.566 MB / 436.1 MB, free: 33.33 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003617/0.3946, allocations: 4.74 MB / 440.8 MB, free: 31.59 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.3947, allocations: 2.875 kB / 440.8 MB, free: 31.59 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.3947, allocations: 0 / 440.8 MB, free: 31.59 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.757e-05/0.3947, allocations: 0 / 440.8 MB, free: 31.59 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.007803/0.4026, allocations: 3.878 MB / 444.7 MB, free: 29.65 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.298e-05/0.4026, allocations: 9.594 kB / 444.7 MB, free: 29.65 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005915/0.4085, allocations: 1.77 MB / 446.5 MB, free: 29.36 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002496/0.4111, allocations: 1.349 MB / 447.8 MB, free: 28.52 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001101/0.4112, allocations: 150.9 kB / 448 MB, free: 28.48 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003715/0.4116, allocations: 203.5 kB / 448.2 MB, free: 28.44 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01031/0.4219, allocations: 7.959 MB / 456.1 MB, free: 25.01 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.812e-05/0.422, allocations: 24.66 kB / 456.2 MB, free: 24.99 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002638/0.4223, allocations: 94.72 kB / 456.3 MB, free: 24.96 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002744/0.425, allocations: 1.851 MB / 458.1 MB, free: 24.59 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01482/0.4398, allocations: 7.156 MB / 465.3 MB, free: 22.16 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03834/0.4782, allocations: 24.15 MB / 489.4 MB, free: 5.918 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005274/0.4836, allocations: 2.378 MB / 491.8 MB, free: 3.727 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00136/0.485, allocations: 0.8262 MB / 492.6 MB, free: 2.902 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007693/0.4927, allocations: 4.738 MB / 497.4 MB, free: 13.81 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.476e-05/0.4928, allocations: 47.5 kB / 497.4 MB, free: 13.75 MB / 366.1 MB Notification: Performance of pre-optimization done (n=128): time 5.12e-06/0.4928, allocations: 0 / 497.4 MB, free: 13.75 MB / 366.1 MB Notification: Performance of matching and sorting (n=154): time 0.01627/0.5091, allocations: 7.018 MB / 0.4926 GB, free: 6.68 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.563e-05/0.5092, allocations: 64.72 kB / 0.4927 GB, free: 6.602 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005307/0.5145, allocations: 2.609 MB / 0.4952 GB, free: 3.961 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.00016/0.5147, allocations: 49.7 kB / 0.4953 GB, free: 3.906 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001599/0.5163, allocations: 2.085 MB / 0.4973 GB, free: 1.816 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006269/0.5169, allocations: 0.5679 MB / 0.4978 GB, free: 1.254 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001426/0.5184, allocations: 0.7741 MB / 0.4986 GB, free: 480 kB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001058/0.5185, allocations: 305.1 kB / 0.4989 GB, free: 172 kB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002425/0.5209, allocations: 1.308 MB / 0.5002 GB, free: 14.86 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003823/0.5248, allocations: 3.445 MB / 0.5035 GB, free: 10.36 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006251/0.531, allocations: 5.093 MB / 0.5085 GB, free: 4.223 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.555e-05/0.5311, allocations: 20 kB / 0.5085 GB, free: 4.203 MB / 382.1 MB Notification: Performance of matching and sorting (n=512) (initialization): time 0.008937/0.5401, allocations: 4.803 MB / 0.5132 GB, free: 15.39 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.086e-05/0.5402, allocations: 37.88 kB / 0.5133 GB, free: 15.36 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000124/0.5403, allocations: 76 kB / 0.5133 GB, free: 15.29 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004673/0.5408, allocations: 188.7 kB / 0.5135 GB, free: 15.1 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003071/0.5439, allocations: 0.9087 MB / 0.5144 GB, free: 14.19 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002364/0.5463, allocations: 2.369 MB / 0.5167 GB, free: 11.66 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003337/0.5496, allocations: 215.9 kB / 0.5169 GB, free: 11.45 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006474/0.5503, allocations: 235 kB / 0.5171 GB, free: 11.22 MB / 398.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.003164/0.5535, allocations: 1.551 MB / 0.5186 GB, free: 9.66 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005399/0.554, allocations: 221.1 kB / 0.5189 GB, free: 9.441 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003726/0.5578, allocations: 1.945 MB / 0.5208 GB, free: 7.484 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001053/0.5579, allocations: 27.98 kB / 0.5208 GB, free: 7.457 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.008e-05/0.5579, allocations: 0 / 0.5208 GB, free: 7.457 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.521e-05/0.5579, allocations: 4.453 kB / 0.5208 GB, free: 7.453 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01133/0.5693, allocations: 5.633 MB / 0.5263 GB, free: 1.719 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.775e-06/0.5693, allocations: 0 / 0.5263 GB, free: 1.719 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009612/0.5703, allocations: 239.7 kB / 0.5265 GB, free: 1.484 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002596/0.5705, allocations: 92.91 kB / 0.5266 GB, free: 1.391 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.715e-05/0.5707, allocations: 27.94 kB / 0.5266 GB, free: 1.363 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001824/0.5725, allocations: 2.115 MB / 0.5287 GB, free: 15.09 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/0.5725, allocations: 0 / 0.5287 GB, free: 15.09 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004647/0.5772, allocations: 3.037 MB / 0.5317 GB, free: 12.02 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008085/0.578, allocations: 294.3 kB / 0.5319 GB, free: 11.71 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005222/0.5785, allocations: 20 kB / 0.532 GB, free: 11.69 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001159/0.5797, allocations: 83.84 kB / 0.532 GB, free: 11.61 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001993/0.5799, allocations: 80.09 kB / 0.5321 GB, free: 11.53 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.176e-05/0.58, allocations: 47.92 kB / 0.5322 GB, free: 11.48 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.003262/0.5833, allocations: 1.687 MB / 0.5338 GB, free: 9.781 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.5833, allocations: 0 / 0.5338 GB, free: 9.781 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003766/0.5871, allocations: 0.6602 MB / 0.5345 GB, free: 9.121 MB / 414.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.0004728/0.5876, allocations: 153.2 kB / 0.5346 GB, free: 8.965 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.008631/0.5962, allocations: 4.571 MB / 0.5391 GB, free: 4.398 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.873e-06/0.5962, allocations: 1.5 kB / 0.5391 GB, free: 4.398 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001525/0.5978, allocations: 0.981 MB / 0.54 GB, free: 3.406 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002719/0.6005, allocations: 392.8 kB / 0.5404 GB, free: 3.043 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01351/0.614, allocations: 6.41 MB / 0.5467 GB, free: 12.59 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004576/0.6186, allocations: 2.566 MB / 0.5492 GB, free: 9.996 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.003905/0.6226, allocations: 1.204 MB / 0.5503 GB, free: 8.785 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007737/0.6234, allocations: 171.4 kB / 0.5505 GB, free: 8.621 MB / 430.1 MB Notification: Performance of SimCode: time 1.493e-06/0.6234, allocations: 0 / 0.5505 GB, free: 8.621 MB / 430.1 MB Notification: Performance of Templates: time 0.05063/0.674, allocations: 24.46 MB / 0.5744 GB, free: 368 kB / 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)