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.001108/0.001108, allocations: 104.7 kB / 15.98 MB, free: 6.355 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.001074/0.001074, allocations: 195.9 kB / 16.91 MB, free: 6.188 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.241/1.241, allocations: 222.9 MB / 240.6 MB, free: 15.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.04149/0.04149, allocations: 9.111 MB / 299.8 MB, free: 6.031 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00132/0.001319, allocations: 63.89 kB / 362.1 MB, free: 7.746 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2234/0.2247, allocations: 51.43 MB / 413.5 MB, free: 25.21 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.InvertedCraneCrab): time 0.01758/0.2423, allocations: 27.36 MB / 440.9 MB, free: 13.76 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01296/0.2553, allocations: 6.073 MB / 446.9 MB, free: 7.668 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005697/0.2611, allocations: 99.81 kB / 447 MB, free: 7.57 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001218/0.2624, allocations: 302.5 kB / 447.3 MB, free: 7.273 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003815/0.2662, allocations: 1.304 MB / 448.6 MB, free: 5.965 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005907/0.2668, allocations: 127.9 kB / 448.8 MB, free: 5.84 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003355/0.2702, allocations: 2.545 MB / 451.3 MB, free: 3.289 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001386/0.2716, allocations: 0.9543 MB / 452.3 MB, free: 2.309 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001255/0.2729, allocations: 0.9026 MB / 453.2 MB, free: 1.402 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001677/0.2746, allocations: 1.421 MB / 454.6 MB, free: 15.98 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004053/0.275, allocations: 232 kB / 454.8 MB, free: 15.75 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001369/0.2764, allocations: 0.8543 MB / 455.7 MB, free: 14.89 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001048/0.2774, allocations: 1.219 MB / 456.9 MB, free: 13.67 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001403/0.2788, allocations: 1.581 MB / 458.5 MB, free: 12.07 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003869/0.2827, allocations: 3.867 MB / 462.3 MB, free: 8.195 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.342e-06/0.2827, allocations: 3.984 kB / 462.3 MB, free: 8.191 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.555e-06/0.2827, allocations: 0 / 462.3 MB, free: 8.191 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.613e-05/0.2828, allocations: 0 / 462.3 MB, free: 8.191 MB / 334.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.008888/0.2917, allocations: 3.873 MB / 466.2 MB, free: 4.254 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.39e-05/0.2918, allocations: 8.031 kB / 466.2 MB, free: 4.246 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006177/0.298, allocations: 1.763 MB / 468 MB, free: 2.477 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0025/0.3005, allocations: 1.359 MB / 469.3 MB, free: 1.07 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001375/0.3007, allocations: 152 kB / 469.5 MB, free: 0.9219 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000455/0.3011, allocations: 196 kB / 469.7 MB, free: 0.7305 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01169/0.3128, allocations: 7.967 MB / 477.6 MB, free: 8.406 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.997e-05/0.313, allocations: 27.72 kB / 477.7 MB, free: 8.379 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002745/0.3132, allocations: 91.86 kB / 477.8 MB, free: 8.289 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002723/0.316, allocations: 1.852 MB / 479.6 MB, free: 6.434 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0131/0.3291, allocations: 7.164 MB / 486.8 MB, free: 15.26 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03245/0.3616, allocations: 24.16 MB / 0.499 GB, free: 6.609 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004886/0.3665, allocations: 2.366 MB / 0.5013 GB, free: 4.129 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001234/0.3678, allocations: 0.8242 MB / 0.5021 GB, free: 3.305 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2464/0.6142, allocations: 4.743 MB / 0.5067 GB, free: 57.36 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.562e-05/0.6143, allocations: 43.66 kB / 0.5067 GB, free: 57.32 MB / 382.1 MB Notification: Performance of pre-optimization done (n=128): time 3.957e-06/0.6143, allocations: 0 / 0.5067 GB, free: 57.32 MB / 382.1 MB Notification: Performance of matching and sorting (n=154): time 0.01438/0.6287, allocations: 7.001 MB / 0.5136 GB, free: 56.31 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.831e-05/0.6287, allocations: 73.16 kB / 0.5136 GB, free: 56.24 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004047/0.6328, allocations: 2.612 MB / 0.5162 GB, free: 55.92 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001651/0.633, allocations: 49.23 kB / 0.5162 GB, free: 55.89 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001492/0.6345, allocations: 2.081 MB / 0.5183 GB, free: 54.65 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005547/0.635, allocations: 0.5737 MB / 0.5188 GB, free: 54.31 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001016/0.6361, allocations: 0.7753 MB / 0.5196 GB, free: 54.23 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.198e-05/0.6361, allocations: 301.1 kB / 0.5199 GB, free: 53.93 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001825/0.638, allocations: 1.311 MB / 0.5212 GB, free: 53.68 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00258/0.6405, allocations: 3.436 MB / 0.5245 GB, free: 50.41 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004437/0.645, allocations: 5.089 MB / 0.5295 GB, free: 46.52 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.046e-05/0.645, allocations: 23.44 kB / 0.5295 GB, free: 46.52 MB / 382.1 MB Notification: Performance of matching and sorting (n=512) (initialization): time 0.006536/0.6516, allocations: 4.81 MB / 0.5342 GB, free: 44.96 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.81e-05/0.6517, allocations: 36 kB / 0.5342 GB, free: 44.92 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.57e-05/0.6517, allocations: 72 kB / 0.5343 GB, free: 44.85 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003507/0.6521, allocations: 195.4 kB / 0.5345 GB, free: 44.68 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002378/0.6545, allocations: 0.9065 MB / 0.5354 GB, free: 43.97 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001637/0.6561, allocations: 2.372 MB / 0.5377 GB, free: 41.63 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002631/0.6588, allocations: 215.9 kB / 0.5379 GB, free: 41.45 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002712/0.6591, allocations: 227.6 kB / 0.5381 GB, free: 41.23 MB / 382.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.001928/0.661, allocations: 1.555 MB / 0.5396 GB, free: 39.93 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003379/0.6613, allocations: 221.1 kB / 0.5398 GB, free: 39.71 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002662/0.664, allocations: 1.951 MB / 0.5418 GB, free: 38.05 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.379e-05/0.6641, allocations: 23.75 kB / 0.5418 GB, free: 38.03 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.474e-06/0.6641, allocations: 4 kB / 0.5418 GB, free: 38.02 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.344e-05/0.6641, allocations: 11.59 kB / 0.5418 GB, free: 38.02 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007132/0.6713, allocations: 5.614 MB / 0.5473 GB, free: 32.87 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.174e-06/0.6713, allocations: 4 kB / 0.5473 GB, free: 32.87 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008485/0.6722, allocations: 234.8 kB / 0.5475 GB, free: 32.65 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002216/0.6724, allocations: 88.78 kB / 0.5476 GB, free: 32.56 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.735e-05/0.6725, allocations: 27.98 kB / 0.5476 GB, free: 32.53 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001249/0.6737, allocations: 2.119 MB / 0.5497 GB, free: 30.27 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.087e-06/0.6738, allocations: 9.5 kB / 0.5497 GB, free: 30.27 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003523/0.6773, allocations: 3.022 MB / 0.5526 GB, free: 27.2 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004987/0.6778, allocations: 298.3 kB / 0.5529 GB, free: 26.89 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002465/0.6781, allocations: 27.52 kB / 0.553 GB, free: 26.87 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000778/0.6788, allocations: 79.84 kB / 0.553 GB, free: 26.79 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001667/0.679, allocations: 83.52 kB / 0.5531 GB, free: 26.71 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.54e-05/0.6791, allocations: 43.98 kB / 0.5532 GB, free: 26.67 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001946/0.681, allocations: 1.68 MB / 0.5548 GB, free: 24.97 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.6811, allocations: 0 / 0.5548 GB, free: 24.97 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002706/0.6838, allocations: 0.6692 MB / 0.5554 GB, free: 24.31 MB / 382.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.0003154/0.6841, allocations: 154.8 kB / 0.5556 GB, free: 24.17 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006866/0.691, allocations: 4.566 MB / 0.5601 GB, free: 19.85 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.284e-06/0.691, allocations: 1.031 kB / 0.5601 GB, free: 19.85 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001203/0.6922, allocations: 0.9838 MB / 0.561 GB, free: 18.88 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002129/0.6944, allocations: 386 kB / 0.5614 GB, free: 18.52 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0101/0.7045, allocations: 8.306 MB / 0.5695 GB, free: 10.18 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0019/0.7064, allocations: 2.559 MB / 0.572 GB, free: 7.594 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000709/0.7071, allocations: 211.4 kB / 0.5722 GB, free: 7.387 MB / 382.1 MB Notification: Performance of SimCode: time 1.012e-06/0.7072, allocations: 0 / 0.5722 GB, free: 7.387 MB / 382.1 MB Notification: Performance of Templates: time 0.0733/0.7805, allocations: 56.31 MB / 0.6272 GB, free: 15.25 MB / 446.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)