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/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.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.001218/0.001218, allocations: 110.2 kB / 16.41 MB, free: 6.008 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.001194/0.001195, allocations: 185 kB / 17.34 MB, free: 5.629 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.362/1.362, allocations: 222.9 MB / 241 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.04523/0.04523, allocations: 9.121 MB / 300.3 MB, free: 5.84 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001951/0.001951, allocations: 59.91 kB / 415.3 MB, free: 21.13 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1351/0.1371, allocations: 51.44 MB / 466.7 MB, free: 1.684 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.InvertedCraneCrab): time 0.01496/0.1521, allocations: 8.641 MB / 475.4 MB, free: 8.996 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007639/0.1598, allocations: 2.608 MB / 478 MB, free: 6.379 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001822/0.1617, allocations: 35.94 kB / 478 MB, free: 6.344 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001581/0.1633, allocations: 373.5 kB / 478.4 MB, free: 5.977 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005252/0.1686, allocations: 1.397 MB / 479.8 MB, free: 4.574 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008573/0.1695, allocations: 147.7 kB / 479.9 MB, free: 4.43 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00493/0.1745, allocations: 2.529 MB / 482.5 MB, free: 1.895 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002175/0.1767, allocations: 0.9386 MB / 483.4 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002118/0.1788, allocations: 0.9027 MB / 484.3 MB, free: 20 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002849/0.1817, allocations: 1.312 MB / 485.6 MB, free: 14.7 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001012/0.1828, allocations: 232 kB / 485.8 MB, free: 14.48 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002529/0.1853, allocations: 0.8426 MB / 486.7 MB, free: 13.63 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001998/0.1873, allocations: 1.212 MB / 487.9 MB, free: 12.42 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002563/0.1899, allocations: 1.565 MB / 489.5 MB, free: 10.84 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007691/0.1976, allocations: 4.99 MB / 494.4 MB, free: 5.836 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.392e-06/0.1977, allocations: 0 / 494.4 MB, free: 5.836 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.1977, allocations: 0 / 494.4 MB, free: 5.836 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001506/0.1978, allocations: 0 / 494.4 MB, free: 5.836 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.01368/0.2115, allocations: 3.881 MB / 498.3 MB, free: 1.891 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.42e-05/0.2116, allocations: 8.031 kB / 498.3 MB, free: 1.883 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01041/0.222, allocations: 1.763 MB / 0.4884 GB, free: 116 kB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004286/0.2264, allocations: 1.359 MB / 0.4897 GB, free: 14.71 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002229/0.2266, allocations: 152.1 kB / 0.4898 GB, free: 14.56 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001054/0.2277, allocations: 203.9 kB / 0.49 GB, free: 14.36 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01372/0.2414, allocations: 7.967 MB / 0.4978 GB, free: 6.039 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.71e-05/0.2416, allocations: 19.88 kB / 0.4978 GB, free: 6.02 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003274/0.2419, allocations: 91.88 kB / 0.4979 GB, free: 5.93 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00298/0.2449, allocations: 1.852 MB / 0.4997 GB, free: 4.074 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2212/0.4661, allocations: 7.164 MB / 0.5067 GB, free: 39.01 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03436/0.5005, allocations: 24.05 MB / 0.5302 GB, free: 23.43 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004746/0.5052, allocations: 2.38 MB / 0.5325 GB, free: 21.96 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00107/0.5063, allocations: 0.8251 MB / 0.5334 GB, free: 21.55 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006083/0.5124, allocations: 4.737 MB / 0.538 GB, free: 17.83 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.94e-05/0.5125, allocations: 43.31 kB / 0.538 GB, free: 17.78 MB / 382.1 MB Notification: Performance of pre-optimization done (n=128): time 3.586e-06/0.5125, allocations: 0 / 0.538 GB, free: 17.78 MB / 382.1 MB Notification: Performance of matching and sorting (n=154): time 0.01254/0.5251, allocations: 7.016 MB / 0.5449 GB, free: 13.11 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.415e-05/0.5251, allocations: 64.72 kB / 0.5449 GB, free: 13.04 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002927/0.5281, allocations: 2.613 MB / 0.5475 GB, free: 10.39 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.676e-05/0.5282, allocations: 45.7 kB / 0.5475 GB, free: 10.34 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000805/0.529, allocations: 2.08 MB / 0.5496 GB, free: 8.258 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003285/0.5293, allocations: 0.5736 MB / 0.5501 GB, free: 7.691 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007898/0.5301, allocations: 0.778 MB / 0.5509 GB, free: 6.902 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.056e-05/0.5302, allocations: 309.1 kB / 0.5512 GB, free: 6.598 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001738/0.5319, allocations: 1.308 MB / 0.5524 GB, free: 5.285 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002314/0.5343, allocations: 3.437 MB / 0.5558 GB, free: 0.793 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005564/0.5398, allocations: 5.087 MB / 0.5608 GB, free: 10.68 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.256e-05/0.5399, allocations: 26.06 kB / 0.5608 GB, free: 10.65 MB / 398.1 MB Notification: Performance of matching and sorting (n=512) (initialization): time 0.008093/0.548, allocations: 4.802 MB / 0.5655 GB, free: 5.848 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.582e-05/0.5481, allocations: 43.22 kB / 0.5655 GB, free: 5.809 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.386e-05/0.5482, allocations: 76 kB / 0.5656 GB, free: 5.734 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003864/0.5486, allocations: 188.8 kB / 0.5658 GB, free: 5.547 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002799/0.5514, allocations: 0.8983 MB / 0.5667 GB, free: 4.648 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00231/0.5537, allocations: 2.378 MB / 0.569 GB, free: 2.109 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002727/0.5565, allocations: 210.5 kB / 0.5692 GB, free: 1.906 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003554/0.5568, allocations: 232 kB / 0.5694 GB, free: 1.68 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.002401/0.5592, allocations: 1.561 MB / 0.5709 GB, free: 112 kB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003946/0.5596, allocations: 217.2 kB / 0.5711 GB, free: 15.89 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00341/0.5631, allocations: 1.958 MB / 0.573 GB, free: 13.91 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000122/0.5632, allocations: 27.98 kB / 0.5731 GB, free: 13.89 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.111e-06/0.5632, allocations: 0 / 0.5731 GB, free: 13.89 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.455e-05/0.5632, allocations: 3.984 kB / 0.5731 GB, free: 13.88 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009877/0.5731, allocations: 5.573 MB / 0.5785 GB, free: 8.223 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.777e-05/0.5732, allocations: 4 kB / 0.5785 GB, free: 8.219 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009838/0.5742, allocations: 235.7 kB / 0.5787 GB, free: 7.988 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002565/0.5744, allocations: 93.05 kB / 0.5788 GB, free: 7.895 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.174e-05/0.5745, allocations: 24 kB / 0.5789 GB, free: 7.871 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001919/0.5764, allocations: 2.115 MB / 0.5809 GB, free: 5.598 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.63e-06/0.5765, allocations: 4 kB / 0.5809 GB, free: 5.594 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004855/0.5813, allocations: 3.034 MB / 0.5839 GB, free: 2.52 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007886/0.5821, allocations: 294.3 kB / 0.5842 GB, free: 2.211 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002839/0.5824, allocations: 27.91 kB / 0.5842 GB, free: 2.188 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008451/0.5833, allocations: 71.91 kB / 0.5843 GB, free: 2.117 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001766/0.5835, allocations: 84.83 kB / 0.5844 GB, free: 2.035 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.925e-05/0.5836, allocations: 47.98 kB / 0.5844 GB, free: 1.988 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002525/0.5861, allocations: 1.68 MB / 0.586 GB, free: 300 kB / 414.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.5861, allocations: 0 / 0.586 GB, free: 300 kB / 414.1 MB Notification: Performance of remove unused functions: time 0.002849/0.589, allocations: 0.6628 MB / 0.5867 GB, free: 15.63 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.0003379/0.5893, allocations: 165.2 kB / 0.5868 GB, free: 15.47 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.00514/0.5945, allocations: 3.13 MB / 0.5899 GB, free: 12.34 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.719e-06/0.5945, allocations: 0 / 0.5899 GB, free: 12.34 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001563/0.5961, allocations: 0.9843 MB / 0.5909 GB, free: 11.35 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002021/0.5981, allocations: 392.1 kB / 0.5912 GB, free: 10.98 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01105/0.6092, allocations: 6.696 MB / 0.5978 GB, free: 4.258 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002862/0.6121, allocations: 2.569 MB / 0.6003 GB, free: 1.66 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001226/0.6133, allocations: 211.4 kB / 0.6005 GB, free: 1.453 MB / 430.1 MB Notification: Performance of SimCode: time 1.884e-06/0.6134, allocations: 0 / 0.6005 GB, free: 1.453 MB / 430.1 MB Notification: Performance of Templates: time 0.07935/0.6927, allocations: 56.72 MB / 0.6559 GB, free: 8.836 MB / 494.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)