Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab.conf.json 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo", uses=false) Using package PlanarMechanics with version 1.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/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) 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) Running command: translateModel(PlanarMechanics.Examples.ControlledCraneCrab,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab") translateModel(PlanarMechanics.Examples.ControlledCraneCrab,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001128/0.001128, allocations: 182.2 kB / 15.98 MB, free: 5.77 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.266/1.266, allocations: 222.9 MB / 239.7 MB, free: 11 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009597/0.0009597, allocations: 104.6 kB / 289.9 MB, free: 10.96 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.04036/0.04036, allocations: 8.941 MB / 349 MB, free: 56 kB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009723/0.0009724, allocations: 50.39 kB / 411.1 MB, free: 57.09 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07665/0.07764, allocations: 51.39 MB / 462.5 MB, free: 5.746 MB / 298.7 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.ControlledCraneCrab): time 0.197/0.2746, allocations: 27.51 MB / 490 MB, free: 10.8 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.0107/0.2854, allocations: 6.178 MB / 496.2 MB, free: 9.117 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00439/0.2898, allocations: 102.3 kB / 496.3 MB, free: 9.105 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009276/0.2907, allocations: 312 kB / 496.6 MB, free: 8.992 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003752/0.2946, allocations: 1.324 MB / 497.9 MB, free: 8.527 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005343/0.2951, allocations: 155.6 kB / 498.1 MB, free: 8.441 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.004125/0.2992, allocations: 3.594 MB / 0.4899 GB, free: 7.328 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00113/0.3004, allocations: 0.9037 MB / 0.4908 GB, free: 6.98 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009605/0.3013, allocations: 0.7956 MB / 0.4916 GB, free: 6.691 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001359/0.3027, allocations: 1.359 MB / 0.4929 GB, free: 6.289 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002616/0.303, allocations: 138.8 kB / 0.493 GB, free: 6.289 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001283/0.3043, allocations: 0.7847 MB / 0.4938 GB, free: 6 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000808/0.3051, allocations: 1.14 MB / 0.4949 GB, free: 5.375 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009429/0.306, allocations: 1.505 MB / 0.4964 GB, free: 4.227 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003423/0.3095, allocations: 4.677 MB / 0.5009 GB, free: 1.148 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.3095, allocations: 5.219 kB / 0.501 GB, free: 1.145 MB / 314.7 MB Notification: Performance of FrontEnd: time 8.81e-07/0.3095, allocations: 0 / 0.501 GB, free: 1.145 MB / 314.7 MB Notification: Performance of Transformations before backend: time 6.36e-05/0.3096, allocations: 0 / 0.501 GB, free: 1.145 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1165 * Number of variables: 1165 Notification: Performance of Generate backend data structure: time 0.007795/0.3174, allocations: 3.942 MB / 0.5048 GB, free: 14.51 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.847e-05/0.3174, allocations: 10.62 kB / 0.5048 GB, free: 14.51 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006234/0.3237, allocations: 1.776 MB / 0.5065 GB, free: 13.57 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002695/0.3264, allocations: 1.395 MB / 0.5079 GB, free: 12.3 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001049/0.3265, allocations: 154.6 kB / 0.5081 GB, free: 12.19 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003527/0.3269, allocations: 208.4 kB / 0.5083 GB, free: 12.02 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01086/0.3377, allocations: 8.002 MB / 0.5161 GB, free: 3.758 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.078e-05/0.3378, allocations: 19.78 kB / 0.5161 GB, free: 3.738 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002551/0.3381, allocations: 97.44 kB / 0.5162 GB, free: 3.676 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002823/0.3409, allocations: 1.847 MB / 0.518 GB, free: 1.836 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01189/0.3528, allocations: 7.169 MB / 0.525 GB, free: 10.66 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03114/0.384, allocations: 24.43 MB / 0.5488 GB, free: 1.875 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004633/0.3886, allocations: 2.39 MB / 0.5512 GB, free: 15.38 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001139/0.3898, allocations: 0.8316 MB / 0.552 GB, free: 14.55 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006643/0.3965, allocations: 4.647 MB / 0.5565 GB, free: 9.547 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.639e-05/0.3965, allocations: 43.56 kB / 0.5566 GB, free: 9.496 MB / 378.7 MB Notification: Performance of pre-optimization done (n=131): time 3.917e-06/0.3965, allocations: 0 / 0.5566 GB, free: 9.496 MB / 378.7 MB Notification: Performance of matching and sorting (n=153): time 0.0132/0.4097, allocations: 6.876 MB / 0.5633 GB, free: 2.547 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.915e-05/0.4098, allocations: 68.72 kB / 0.5634 GB, free: 2.469 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003481/0.4133, allocations: 2.667 MB / 0.566 GB, free: 15.77 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 7.883e-05/0.4134, allocations: 47.97 kB / 0.566 GB, free: 15.72 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001203/0.4146, allocations: 2.102 MB / 0.5681 GB, free: 13.62 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000429/0.415, allocations: 0.5716 MB / 0.5686 GB, free: 13.05 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009734/0.416, allocations: 0.7782 MB / 0.5694 GB, free: 12.26 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 8.263e-05/0.4161, allocations: 313.1 kB / 0.5697 GB, free: 11.95 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001865/0.418, allocations: 1.3 MB / 0.5709 GB, free: 10.65 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003032/0.421, allocations: 3.432 MB / 0.5743 GB, free: 6.156 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005203/0.4262, allocations: 5.089 MB / 0.5793 GB, free: 24 kB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.372e-05/0.4263, allocations: 20 kB / 0.5793 GB, free: 4 kB / 394.7 MB Notification: Performance of matching and sorting (n=516) (initialization): time 0.007628/0.4339, allocations: 4.896 MB / 0.5841 GB, free: 11.11 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.968e-05/0.434, allocations: 38.66 kB / 0.5841 GB, free: 11.07 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.239e-05/0.4341, allocations: 76 kB / 0.5842 GB, free: 11 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006665/0.4347, allocations: 309.1 kB / 0.5845 GB, free: 10.7 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002279/0.437, allocations: 0.8617 MB / 0.5853 GB, free: 9.832 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003744/0.4408, allocations: 3.353 MB / 0.5886 GB, free: 6.344 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00239/0.4432, allocations: 195.9 kB / 0.5888 GB, free: 6.152 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003032/0.4435, allocations: 228 kB / 0.589 GB, free: 5.93 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 340 * Number of states: 0 () * Number of discrete variables: 16 (revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],PID.I.local_reset,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 (472): * Single equations (assignments): 467 * 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 {(2,17,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002528/0.446, allocations: 1.568 MB / 0.5905 GB, free: 4.352 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003493/0.4464, allocations: 233.1 kB / 0.5907 GB, free: 4.121 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003169/0.4496, allocations: 2.016 MB / 0.5927 GB, free: 2.09 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.435e-05/0.4497, allocations: 27.98 kB / 0.5927 GB, free: 2.062 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.959e-06/0.4497, allocations: 7.984 kB / 0.5927 GB, free: 2.055 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.304e-05/0.4497, allocations: 11.91 kB / 0.5928 GB, free: 2.043 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009756/0.4595, allocations: 5.722 MB / 0.5983 GB, free: 12.23 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.823e-06/0.4595, allocations: 0 / 0.5983 GB, free: 12.23 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000784/0.4603, allocations: 207.8 kB / 0.5985 GB, free: 12.03 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005323/0.4608, allocations: 212.9 kB / 0.5987 GB, free: 11.82 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.952e-05/0.461, allocations: 24 kB / 0.5988 GB, free: 11.8 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002935/0.4639, allocations: 2.712 MB / 0.6014 GB, free: 8.957 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/0.4639, allocations: 4.031 kB / 0.6014 GB, free: 8.953 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01772/0.4816, allocations: 12.87 MB / 0.614 GB, free: 11.75 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007886/0.4825, allocations: 450.1 kB / 0.6144 GB, free: 11.29 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002181/0.4827, allocations: 34.08 kB / 0.6145 GB, free: 11.26 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007429/0.4834, allocations: 67.92 kB / 0.6145 GB, free: 11.19 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001714/0.4836, allocations: 84.83 kB / 0.6146 GB, free: 11.11 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.235e-05/0.4837, allocations: 44.05 kB / 0.6146 GB, free: 11.07 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002308/0.486, allocations: 1.72 MB / 0.6163 GB, free: 9.332 MB / 442.7 MB Notification: Performance of sort global known variables: time 2e-07/0.486, allocations: 0 / 0.6163 GB, free: 9.332 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002995/0.489, allocations: 0.8818 MB / 0.6172 GB, free: 8.453 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 6 (PID.I.y,PID.D.x,prismatic.s,prismatic.v,revolute.phi,revolute.w) * 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 (113): * Single equations (assignments): 108 * 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 {(2,15,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002957/0.4893, allocations: 157.2 kB / 0.6173 GB, free: 8.293 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.004522/0.4939, allocations: 3.166 MB / 0.6204 GB, free: 5.125 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.159e-06/0.4939, allocations: 4.188 kB / 0.6204 GB, free: 5.121 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001336/0.4952, allocations: 1.033 MB / 0.6214 GB, free: 4.082 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001813/0.4971, allocations: 387.9 kB / 0.6218 GB, free: 3.711 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01295/0.51, allocations: 9.306 MB / 0.6309 GB, free: 10.32 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00253/0.5126, allocations: 2.65 MB / 0.6335 GB, free: 7.637 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.002852/0.5154, allocations: 1.185 MB / 0.6346 GB, free: 6.445 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004351/0.5159, allocations: 171.4 kB / 0.6348 GB, free: 6.277 MB / 458.7 MB Notification: Performance of SimCode: time 9.22e-07/0.5159, allocations: 0 / 0.6348 GB, free: 6.277 MB / 458.7 MB Notification: Performance of Templates: time 0.2256/0.7415, allocations: 27.73 MB / 0.6619 GB, free: 146.3 MB / 458.7 MB make -j1 -f PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab.makefile (rm -f PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab.sim & ./PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab -abortSlowSimulation -alarm=480 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab.pipe 2>&1)