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.009113/0.009113, allocations: 101.7 kB / 15.73 MB, free: 5.586 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.002391/0.002391, allocations: 191.3 kB / 16.67 MB, free: 5.523 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.468/1.468, allocations: 222.9 MB / 240.4 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.04482/0.04483, allocations: 9.131 MB / 299.7 MB, free: 5.852 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001146/0.001146, allocations: 67.89 kB / 414.6 MB, free: 21.14 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.126/0.1271, allocations: 51.44 MB / 466.1 MB, free: 1.676 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.InvertedCraneCrab): time 0.01071/0.1379, allocations: 8.631 MB / 474.7 MB, free: 8.992 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007113/0.145, allocations: 2.608 MB / 477.3 MB, free: 6.379 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001274/0.1463, allocations: 31.94 kB / 477.4 MB, free: 6.348 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008583/0.1472, allocations: 373.5 kB / 477.7 MB, free: 5.98 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003419/0.1507, allocations: 1.44 MB / 479.2 MB, free: 4.535 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000476/0.1512, allocations: 155.7 kB / 479.3 MB, free: 4.383 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00259/0.1538, allocations: 2.52 MB / 481.8 MB, free: 1.859 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001125/0.1549, allocations: 0.9309 MB / 482.8 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001027/0.1559, allocations: 0.9143 MB / 483.7 MB, free: 15.98 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001517/0.1575, allocations: 1.315 MB / 485 MB, free: 14.66 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003411/0.1578, allocations: 232 kB / 485.2 MB, free: 14.43 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001357/0.1592, allocations: 0.8387 MB / 486.1 MB, free: 13.59 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001057/0.1603, allocations: 1.219 MB / 487.3 MB, free: 12.37 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001356/0.1616, allocations: 1.557 MB / 488.8 MB, free: 10.8 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004792/0.1664, allocations: 4.99 MB / 493.8 MB, free: 5.793 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.951e-06/0.1664, allocations: 0 / 493.8 MB, free: 5.793 MB / 366.1 MB Notification: Performance of FrontEnd: time 4.017e-06/0.1665, allocations: 0 / 493.8 MB, free: 5.793 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.583e-05/0.1665, allocations: 3.938 kB / 493.8 MB, free: 5.789 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: 1155 * Number of variables: 1155 Notification: Performance of Generate backend data structure: time 0.008546/0.1751, allocations: 3.877 MB / 497.7 MB, free: 1.848 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.135e-05/0.1751, allocations: 8.031 kB / 497.7 MB, free: 1.84 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006725/0.1819, allocations: 1.763 MB / 499.5 MB, free: 72 kB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004089/0.186, allocations: 1.363 MB / 0.4891 GB, free: 14.66 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001856/0.1862, allocations: 156 kB / 0.4892 GB, free: 14.51 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007007/0.1869, allocations: 203.9 kB / 0.4894 GB, free: 14.31 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01196/0.1989, allocations: 7.963 MB / 0.4972 GB, free: 5.988 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.856e-05/0.199, allocations: 15.88 kB / 0.4972 GB, free: 5.973 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002952/0.1993, allocations: 103.8 kB / 0.4973 GB, free: 5.871 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003082/0.2024, allocations: 1.848 MB / 0.4991 GB, free: 4.02 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2938/0.4962, allocations: 7.158 MB / 0.5061 GB, free: 39.04 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03624/0.5325, allocations: 24.06 MB / 0.5296 GB, free: 23.43 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004885/0.5374, allocations: 2.369 MB / 0.5319 GB, free: 21.97 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001043/0.5385, allocations: 0.8292 MB / 0.5327 GB, free: 21.57 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005902/0.5444, allocations: 4.741 MB / 0.5374 GB, free: 17.85 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.794e-05/0.5444, allocations: 43.31 kB / 0.5374 GB, free: 17.8 MB / 382.1 MB Notification: Performance of pre-optimization done (n=128): time 4.609e-06/0.5444, allocations: 2.531 kB / 0.5374 GB, free: 17.8 MB / 382.1 MB Notification: Performance of matching and sorting (n=154): time 0.0124/0.5568, allocations: 7.007 MB / 0.5443 GB, free: 13.08 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.838e-05/0.5569, allocations: 64.72 kB / 0.5443 GB, free: 13 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002746/0.5596, allocations: 2.617 MB / 0.5469 GB, free: 10.36 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.995e-05/0.5597, allocations: 45.7 kB / 0.5469 GB, free: 10.3 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008448/0.5606, allocations: 2.08 MB / 0.549 GB, free: 8.223 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002978/0.5609, allocations: 0.5652 MB / 0.5495 GB, free: 7.66 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007729/0.5617, allocations: 0.7895 MB / 0.5503 GB, free: 6.863 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.092e-05/0.5617, allocations: 305.1 kB / 0.5506 GB, free: 6.562 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001704/0.5634, allocations: 1.311 MB / 0.5518 GB, free: 5.246 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00255/0.566, allocations: 3.433 MB / 0.5552 GB, free: 0.7578 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006104/0.5721, allocations: 5.084 MB / 0.5602 GB, free: 10.64 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.544e-05/0.5722, allocations: 24 kB / 0.5602 GB, free: 10.62 MB / 398.1 MB Notification: Performance of matching and sorting (n=512) (initialization): time 0.007797/0.58, allocations: 4.795 MB / 0.5649 GB, free: 5.816 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.114e-05/0.58, allocations: 49.98 kB / 0.5649 GB, free: 5.77 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.298e-05/0.5801, allocations: 76.08 kB / 0.565 GB, free: 5.695 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004068/0.5805, allocations: 188.8 kB / 0.5652 GB, free: 5.508 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002665/0.5832, allocations: 0.8929 MB / 0.566 GB, free: 4.613 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002216/0.5854, allocations: 2.386 MB / 0.5684 GB, free: 2.07 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002465/0.5879, allocations: 215.5 kB / 0.5686 GB, free: 1.863 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002793/0.5882, allocations: 228 kB / 0.5688 GB, free: 1.641 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.002522/0.5907, allocations: 1.55 MB / 0.5703 GB, free: 80 kB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003081/0.5911, allocations: 221.3 kB / 0.5705 GB, free: 15.86 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003364/0.5944, allocations: 1.958 MB / 0.5724 GB, free: 13.88 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001079/0.5946, allocations: 33.44 kB / 0.5725 GB, free: 13.85 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.959e-06/0.5946, allocations: 0 / 0.5725 GB, free: 13.85 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.598e-05/0.5946, allocations: 7.969 kB / 0.5725 GB, free: 13.84 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008861/0.6035, allocations: 5.564 MB / 0.5779 GB, free: 8.188 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.145e-06/0.6035, allocations: 4 kB / 0.5779 GB, free: 8.184 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009959/0.6045, allocations: 235.7 kB / 0.5781 GB, free: 7.953 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002388/0.6047, allocations: 84.72 kB / 0.5782 GB, free: 7.867 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.356e-05/0.6048, allocations: 30.39 kB / 0.5782 GB, free: 7.84 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001898/0.6067, allocations: 2.118 MB / 0.5803 GB, free: 5.566 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.067e-06/0.6067, allocations: 4.031 kB / 0.5803 GB, free: 5.562 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004624/0.6114, allocations: 3.029 MB / 0.5833 GB, free: 2.492 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005526/0.6119, allocations: 298.3 kB / 0.5836 GB, free: 2.18 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002416/0.6122, allocations: 24 kB / 0.5836 GB, free: 2.156 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008833/0.6131, allocations: 76.5 kB / 0.5837 GB, free: 2.086 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001787/0.6133, allocations: 80.83 kB / 0.5837 GB, free: 2.008 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.921e-05/0.6134, allocations: 44 kB / 0.5838 GB, free: 1.965 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002425/0.6158, allocations: 1.684 MB / 0.5854 GB, free: 272 kB / 414.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.6158, allocations: 480 / 0.5854 GB, free: 272 kB / 414.1 MB Notification: Performance of remove unused functions: time 0.003011/0.6188, allocations: 0.6668 MB / 0.5861 GB, free: 15.6 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.0003455/0.6192, allocations: 163.7 kB / 0.5862 GB, free: 15.44 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004953/0.6241, allocations: 3.128 MB / 0.5893 GB, free: 12.31 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.659e-06/0.6242, allocations: 4.25 kB / 0.5893 GB, free: 12.31 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001406/0.6256, allocations: 0.9766 MB / 0.5902 GB, free: 11.32 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001685/0.6273, allocations: 402 kB / 0.5906 GB, free: 10.95 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009918/0.6372, allocations: 6.324 MB / 0.5968 GB, free: 4.594 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002533/0.6398, allocations: 2.573 MB / 0.5993 GB, free: 1.992 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.002635/0.6424, allocations: 1.2 MB / 0.6005 GB, free: 0.7852 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004133/0.6428, allocations: 171.4 kB / 0.6006 GB, free: 0.6172 MB / 430.1 MB Notification: Performance of SimCode: time 6.92e-07/0.6428, allocations: 0 / 0.6006 GB, free: 0.6172 MB / 430.1 MB Notification: Performance of Templates: time 0.04861/0.6915, allocations: 24.03 MB / 0.6241 GB, free: 8.742 MB / 462.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)