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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007372/0.007372, allocations: 100.8 kB / 15.73 MB, free: 6.023 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.001517/0.001517, allocations: 194.6 kB / 16.67 MB, free: 5.934 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.331/1.331, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.04484/0.04484, allocations: 9.141 MB / 299.7 MB, free: 5.852 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001345/0.001345, allocations: 63.91 kB / 414.6 MB, free: 21.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1119/0.1133, allocations: 51.45 MB / 466.1 MB, free: 1.652 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.ControlledCraneCrab): time 0.01004/0.1234, allocations: 8.778 MB / 474.9 MB, free: 8.82 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006477/0.1299, allocations: 2.678 MB / 477.5 MB, free: 6.137 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002124/0.132, allocations: 35.94 kB / 477.6 MB, free: 6.102 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001581/0.1337, allocations: 369.4 kB / 477.9 MB, free: 5.738 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004643/0.1384, allocations: 1.428 MB / 479.4 MB, free: 4.309 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008181/0.1393, allocations: 183.7 kB / 479.5 MB, free: 4.129 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003956/0.1432, allocations: 2.625 MB / 482.2 MB, free: 1.5 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001832/0.1451, allocations: 0.9802 MB / 483.2 MB, free: 0.4922 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001885/0.147, allocations: 0.9376 MB / 484.1 MB, free: 15.55 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00248/0.1495, allocations: 1.343 MB / 485.4 MB, free: 14.2 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008047/0.1503, allocations: 243.9 kB / 485.7 MB, free: 13.96 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002147/0.1525, allocations: 0.8387 MB / 486.5 MB, free: 13.12 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001688/0.1542, allocations: 1.239 MB / 487.7 MB, free: 11.88 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003101/0.1573, allocations: 1.6 MB / 489.3 MB, free: 10.27 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007105/0.1644, allocations: 5.085 MB / 494.4 MB, free: 5.168 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.019e-06/0.1645, allocations: 0 / 494.4 MB, free: 5.168 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.512e-06/0.1645, allocations: 4 kB / 494.4 MB, free: 5.164 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.000199/0.1647, allocations: 0 / 494.4 MB, free: 5.164 MB / 366.1 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.01263/0.1773, allocations: 4.035 MB / 498.5 MB, free: 1.059 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.732e-05/0.1774, allocations: 8.031 kB / 498.5 MB, free: 1.051 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007232/0.1846, allocations: 1.785 MB / 0.4885 GB, free: 15.26 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004885/0.1895, allocations: 1.414 MB / 0.4899 GB, free: 13.8 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002174/0.1898, allocations: 160.1 kB / 0.4901 GB, free: 13.64 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00106/0.1909, allocations: 207.9 kB / 0.4903 GB, free: 13.44 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01555/0.2064, allocations: 7.993 MB / 0.4981 GB, free: 5.082 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001192/0.2066, allocations: 23.81 kB / 0.4981 GB, free: 5.059 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008072/0.2074, allocations: 95.88 kB / 0.4982 GB, free: 4.965 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003149/0.2106, allocations: 1.848 MB / 0.5 GB, free: 3.113 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2849/0.4955, allocations: 7.164 MB / 0.507 GB, free: 38.83 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03351/0.529, allocations: 24.4 MB / 0.5308 GB, free: 22.96 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004533/0.5336, allocations: 2.388 MB / 0.5332 GB, free: 21.49 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001114/0.5347, allocations: 0.8212 MB / 0.534 GB, free: 21.09 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005914/0.5407, allocations: 4.655 MB / 0.5385 GB, free: 17.49 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.217e-05/0.5407, allocations: 42.94 kB / 0.5385 GB, free: 17.44 MB / 382.1 MB Notification: Performance of pre-optimization done (n=131): time 3.366e-06/0.5407, allocations: 0 / 0.5385 GB, free: 17.44 MB / 382.1 MB Notification: Performance of matching and sorting (n=153): time 0.01253/0.5533, allocations: 6.933 MB / 0.5453 GB, free: 12.2 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.863e-05/0.5533, allocations: 64.72 kB / 0.5454 GB, free: 12.13 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003349/0.5567, allocations: 2.672 MB / 0.548 GB, free: 9.43 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.402e-05/0.5568, allocations: 49.53 kB / 0.548 GB, free: 9.379 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008834/0.5577, allocations: 2.191 MB / 0.5502 GB, free: 7.191 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003408/0.558, allocations: 0.5965 MB / 0.5508 GB, free: 6.602 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008285/0.5588, allocations: 0.7937 MB / 0.5515 GB, free: 5.801 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.887e-05/0.5589, allocations: 305.1 kB / 0.5518 GB, free: 5.5 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001624/0.5605, allocations: 1.288 MB / 0.5531 GB, free: 4.207 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002585/0.5631, allocations: 3.436 MB / 0.5564 GB, free: 15.71 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006206/0.5693, allocations: 5.085 MB / 0.5614 GB, free: 9.586 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.566e-05/0.5694, allocations: 24 kB / 0.5614 GB, free: 9.562 MB / 398.1 MB Notification: Performance of matching and sorting (n=516) (initialization): time 0.00877/0.5782, allocations: 4.917 MB / 0.5662 GB, free: 4.648 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.568e-05/0.5783, allocations: 36 kB / 0.5663 GB, free: 4.613 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001458/0.5785, allocations: 80.12 kB / 0.5663 GB, free: 4.535 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009139/0.5794, allocations: 307.2 kB / 0.5666 GB, free: 4.234 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002785/0.5822, allocations: 0.8656 MB / 0.5675 GB, free: 3.367 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00494/0.5871, allocations: 3.652 MB / 0.571 GB, free: 15.58 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003125/0.5903, allocations: 191.9 kB / 0.5712 GB, free: 15.39 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000509/0.5908, allocations: 240.1 kB / 0.5715 GB, free: 15.16 MB / 414.1 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.002781/0.5936, allocations: 1.562 MB / 0.573 GB, free: 13.58 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004625/0.5941, allocations: 246.4 kB / 0.5732 GB, free: 13.34 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00358/0.5976, allocations: 2.021 MB / 0.5752 GB, free: 11.31 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.722e-05/0.5978, allocations: 27.98 kB / 0.5752 GB, free: 11.28 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.828e-06/0.5978, allocations: 4 kB / 0.5752 GB, free: 11.28 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.221e-05/0.5978, allocations: 3.984 kB / 0.5752 GB, free: 11.27 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01088/0.6087, allocations: 5.688 MB / 0.5808 GB, free: 5.496 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.004e-05/0.6087, allocations: 4 kB / 0.5808 GB, free: 5.492 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008314/0.6096, allocations: 204 kB / 0.581 GB, free: 5.293 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005674/0.6101, allocations: 204.7 kB / 0.5812 GB, free: 5.09 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.781e-05/0.6102, allocations: 27.98 kB / 0.5812 GB, free: 5.062 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003336/0.6136, allocations: 2.957 MB / 0.5841 GB, free: 1.977 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.44e-06/0.6136, allocations: 0 / 0.5841 GB, free: 1.977 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004554/0.6182, allocations: 3.118 MB / 0.5871 GB, free: 14.81 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001035/0.6192, allocations: 463.5 kB / 0.5876 GB, free: 14.34 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005299/0.6198, allocations: 24 kB / 0.5876 GB, free: 14.31 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001101/0.6209, allocations: 71.69 kB / 0.5877 GB, free: 14.25 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000176/0.6211, allocations: 88.83 kB / 0.5877 GB, free: 14.16 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.454e-05/0.6212, allocations: 47.98 kB / 0.5878 GB, free: 14.11 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.003243/0.6244, allocations: 1.713 MB / 0.5895 GB, free: 12.39 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.6244, allocations: 4 kB / 0.5895 GB, free: 12.38 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003375/0.6278, allocations: 0.6874 MB / 0.5901 GB, free: 11.7 MB / 430.1 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.0004495/0.6283, allocations: 160.4 kB / 0.5903 GB, free: 11.54 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.005628/0.6339, allocations: 3.184 MB / 0.5934 GB, free: 8.371 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 6.442e-06/0.6339, allocations: 0 / 0.5934 GB, free: 8.371 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001702/0.6357, allocations: 1.028 MB / 0.5944 GB, free: 7.324 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00314/0.6388, allocations: 418.6 kB / 0.5948 GB, free: 6.926 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01387/0.6527, allocations: 6.638 MB / 0.6013 GB, free: 232 kB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004111/0.6569, allocations: 2.587 MB / 0.6038 GB, free: 13.61 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003675/0.6606, allocations: 1.188 MB / 0.605 GB, free: 12.41 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006931/0.6613, allocations: 167.4 kB / 0.6051 GB, free: 12.25 MB / 446.1 MB Notification: Performance of SimCode: time 1.382e-06/0.6613, allocations: 0 / 0.6051 GB, free: 12.25 MB / 446.1 MB Notification: Performance of Templates: time 0.04827/0.7096, allocations: 25.38 MB / 0.6299 GB, free: 3.035 MB / 462.1 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)