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/package.mo", uses=false) Using package PlanarMechanics with version 1.6.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/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.001331/0.001331, allocations: 105.2 kB / 16.41 MB, free: 6.469 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.001282/0.001282, allocations: 192.2 kB / 17.34 MB, free: 5.715 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.259/1.259, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.04285/0.04285, allocations: 9.123 MB / 300.3 MB, free: 5.828 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001371/0.001371, allocations: 67.89 kB / 415.3 MB, free: 21.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09105/0.09244, allocations: 51.43 MB / 466.7 MB, free: 1.688 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.ControlledCraneCrab): time 0.01004/0.1025, allocations: 8.786 MB / 475.5 MB, free: 8.852 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005751/0.1083, allocations: 2.682 MB / 478.2 MB, free: 6.16 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001389/0.1098, allocations: 39.94 kB / 478.2 MB, free: 6.121 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001244/0.1111, allocations: 369.5 kB / 478.6 MB, free: 5.758 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003905/0.115, allocations: 1.42 MB / 480 MB, free: 4.332 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007253/0.1158, allocations: 175.7 kB / 480.2 MB, free: 4.16 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003737/0.1195, allocations: 2.625 MB / 482.8 MB, free: 1.531 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00175/0.1213, allocations: 0.9803 MB / 483.8 MB, free: 0.5234 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001826/0.1231, allocations: 0.9493 MB / 484.8 MB, free: 15.57 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002127/0.1253, allocations: 1.339 MB / 486.1 MB, free: 14.23 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008192/0.1261, allocations: 240 kB / 486.3 MB, free: 13.99 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001925/0.128, allocations: 0.8465 MB / 487.2 MB, free: 13.14 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001588/0.1297, allocations: 1.239 MB / 488.4 MB, free: 11.9 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002659/0.1323, allocations: 1.596 MB / 490 MB, free: 10.3 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006247/0.1386, allocations: 5.068 MB / 495.1 MB, free: 5.211 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.442e-06/0.1386, allocations: 4 kB / 495.1 MB, free: 5.207 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.846e-06/0.1386, allocations: 0 / 495.1 MB, free: 5.207 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001104/0.1388, allocations: 3.938 kB / 495.1 MB, free: 5.203 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.008621/0.1474, allocations: 3.935 MB / 499 MB, free: 1.203 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.755e-05/0.1474, allocations: 8.031 kB / 499 MB, free: 1.195 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0065/0.1539, allocations: 1.775 MB / 0.4891 GB, free: 15.41 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002635/0.1566, allocations: 1.409 MB / 0.4904 GB, free: 13.96 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001342/0.1568, allocations: 148.1 kB / 0.4906 GB, free: 13.82 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000515/0.1573, allocations: 211.9 kB / 0.4908 GB, free: 13.61 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01227/0.1696, allocations: 7.993 MB / 0.4986 GB, free: 5.25 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.087e-05/0.1697, allocations: 27.8 kB / 0.4986 GB, free: 5.223 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003042/0.17, allocations: 95.86 kB / 0.4987 GB, free: 5.129 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002884/0.1729, allocations: 1.841 MB / 0.5005 GB, free: 3.285 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2088/0.3817, allocations: 7.171 MB / 0.5075 GB, free: 38.98 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03184/0.4136, allocations: 24.35 MB / 0.5313 GB, free: 22.99 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004617/0.4183, allocations: 2.395 MB / 0.5336 GB, free: 21.5 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001038/0.4194, allocations: 0.8181 MB / 0.5344 GB, free: 21.11 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005416/0.4248, allocations: 4.647 MB / 0.539 GB, free: 17.43 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.801e-05/0.4248, allocations: 42.44 kB / 0.539 GB, free: 17.38 MB / 382.1 MB Notification: Performance of pre-optimization done (n=131): time 3.196e-06/0.4248, allocations: 0 / 0.539 GB, free: 17.38 MB / 382.1 MB Notification: Performance of matching and sorting (n=153): time 0.01168/0.4365, allocations: 6.878 MB / 0.5457 GB, free: 12.21 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.263e-05/0.4366, allocations: 64.72 kB / 0.5458 GB, free: 12.14 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002789/0.4394, allocations: 2.663 MB / 0.5484 GB, free: 9.445 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.378e-05/0.4395, allocations: 45.7 kB / 0.5484 GB, free: 9.395 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007605/0.4403, allocations: 2.113 MB / 0.5505 GB, free: 7.277 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003333/0.4406, allocations: 0.5687 MB / 0.551 GB, free: 6.711 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007614/0.4414, allocations: 0.782 MB / 0.5518 GB, free: 5.922 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.238e-05/0.4414, allocations: 304.5 kB / 0.5521 GB, free: 5.625 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001611/0.443, allocations: 1.296 MB / 0.5534 GB, free: 4.324 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002311/0.4454, allocations: 3.436 MB / 0.5567 GB, free: 15.83 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005584/0.451, allocations: 5.085 MB / 0.5617 GB, free: 9.707 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.766e-05/0.451, allocations: 24 kB / 0.5617 GB, free: 9.684 MB / 398.1 MB Notification: Performance of matching and sorting (n=516) (initialization): time 0.00823/0.4593, allocations: 4.903 MB / 0.5665 GB, free: 4.777 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.338e-05/0.4594, allocations: 42.59 kB / 0.5665 GB, free: 4.738 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001059/0.4595, allocations: 76 kB / 0.5666 GB, free: 4.664 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007854/0.4603, allocations: 311.2 kB / 0.5669 GB, free: 4.359 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002746/0.4631, allocations: 0.858 MB / 0.5677 GB, free: 3.5 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004626/0.4677, allocations: 3.64 MB / 0.5713 GB, free: 15.72 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002885/0.4706, allocations: 207.9 kB / 0.5715 GB, free: 15.52 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005459/0.4712, allocations: 232 kB / 0.5717 GB, free: 15.29 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.002893/0.4741, allocations: 1.573 MB / 0.5733 GB, free: 13.71 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000496/0.4746, allocations: 225.1 kB / 0.5735 GB, free: 13.48 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003729/0.4783, allocations: 2.017 MB / 0.5754 GB, free: 11.45 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001182/0.4785, allocations: 27.98 kB / 0.5755 GB, free: 11.43 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.37e-05/0.4785, allocations: 4 kB / 0.5755 GB, free: 11.42 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.448e-05/0.4785, allocations: 7.969 kB / 0.5755 GB, free: 11.41 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01074/0.4893, allocations: 5.69 MB / 0.581 GB, free: 5.641 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.071e-05/0.4893, allocations: 4 kB / 0.581 GB, free: 5.637 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008379/0.4902, allocations: 203.6 kB / 0.5812 GB, free: 5.438 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005896/0.4908, allocations: 208.7 kB / 0.5814 GB, free: 5.23 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.77e-05/0.4909, allocations: 27.59 kB / 0.5815 GB, free: 5.207 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003454/0.4943, allocations: 2.945 MB / 0.5843 GB, free: 2.121 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.557e-06/0.4944, allocations: 0 / 0.5843 GB, free: 2.121 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004755/0.4991, allocations: 3.109 MB / 0.5874 GB, free: 14.96 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009904/0.5002, allocations: 446.1 kB / 0.5878 GB, free: 14.51 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005125/0.5007, allocations: 24 kB / 0.5878 GB, free: 14.48 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001077/0.5018, allocations: 67.86 kB / 0.5879 GB, free: 14.42 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001914/0.502, allocations: 92.81 kB / 0.588 GB, free: 14.33 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.743e-05/0.5021, allocations: 44 kB / 0.588 GB, free: 14.29 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.003029/0.5051, allocations: 1.716 MB / 0.5897 GB, free: 12.55 MB / 430.1 MB Notification: Performance of sort global known variables: time 2e-07/0.5051, allocations: 6.812 kB / 0.5897 GB, free: 12.55 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003247/0.5084, allocations: 0.6888 MB / 0.5904 GB, free: 11.87 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.0004208/0.5088, allocations: 157.5 kB / 0.5905 GB, free: 11.71 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.005451/0.5143, allocations: 3.175 MB / 0.5936 GB, free: 8.547 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 9.067e-06/0.5143, allocations: 0 / 0.5936 GB, free: 8.547 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001622/0.516, allocations: 1.04 MB / 0.5946 GB, free: 7.492 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002505/0.5185, allocations: 415.2 kB / 0.595 GB, free: 7.105 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01245/0.531, allocations: 6.896 MB / 0.6018 GB, free: 164 kB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00338/0.5344, allocations: 2.599 MB / 0.6043 GB, free: 13.53 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007213/0.5351, allocations: 207.4 kB / 0.6045 GB, free: 13.33 MB / 446.1 MB Notification: Performance of SimCode: time 8.21e-07/0.5351, allocations: 0 / 0.6045 GB, free: 13.33 MB / 446.1 MB Notification: Performance of Templates: time 0.0769/0.6121, allocations: 57.3 MB / 0.6605 GB, free: 4.133 MB / 494.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)