Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.CraneCrab.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.CraneCrab,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.CraneCrab") translateModel(PlanarMechanics.Examples.CraneCrab,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.CraneCrab") 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: 104.1 kB / 16.41 MB, free: 6.461 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.719 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.323/1.323, allocations: 222.9 MB / 241 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.04382/0.04382, allocations: 9.116 MB / 300.3 MB, free: 5.809 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001143/0.001143, allocations: 63.89 kB / 415.3 MB, free: 21.11 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08588/0.08704, allocations: 51.44 MB / 466.7 MB, free: 1.66 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.CraneCrab): time 0.009245/0.09634, allocations: 8.308 MB / 475.1 MB, free: 9.309 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00461/0.101, allocations: 2.593 MB / 477.6 MB, free: 6.707 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000744/0.1018, allocations: 39.94 kB / 477.7 MB, free: 6.668 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007054/0.1025, allocations: 357.6 kB / 478 MB, free: 6.316 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002801/0.1053, allocations: 1.389 MB / 479.4 MB, free: 4.922 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003575/0.1057, allocations: 135.8 kB / 479.6 MB, free: 4.789 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002533/0.1082, allocations: 2.496 MB / 482.1 MB, free: 2.289 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001026/0.1093, allocations: 0.9086 MB / 483 MB, free: 1.352 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009103/0.1102, allocations: 0.8871 MB / 483.8 MB, free: 472 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001393/0.1116, allocations: 1.296 MB / 485.1 MB, free: 15.16 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003271/0.1119, allocations: 228 kB / 485.4 MB, free: 14.94 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001292/0.1132, allocations: 0.8387 MB / 486.2 MB, free: 14.1 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009114/0.1142, allocations: 1.2 MB / 487.4 MB, free: 12.89 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001284/0.1155, allocations: 1.549 MB / 489 MB, free: 11.34 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004433/0.1199, allocations: 4.94 MB / 493.9 MB, free: 6.379 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.469e-06/0.1199, allocations: 0 / 493.9 MB, free: 6.379 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.1199, allocations: 0 / 493.9 MB, free: 6.379 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.34e-05/0.12, allocations: 0 / 493.9 MB, free: 6.379 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: 1144 * Number of variables: 1144 Notification: Performance of Generate backend data structure: time 0.007738/0.1278, allocations: 3.83 MB / 497.7 MB, free: 2.484 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.067e-05/0.1278, allocations: 16.02 kB / 497.7 MB, free: 2.469 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006402/0.1342, allocations: 1.752 MB / 499.5 MB, free: 0.7109 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002261/0.1365, allocations: 1.349 MB / 0.4891 GB, free: 15.32 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001383/0.1367, allocations: 152 kB / 0.4892 GB, free: 15.17 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004959/0.1372, allocations: 199.9 kB / 0.4894 GB, free: 14.98 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01113/0.1483, allocations: 7.909 MB / 0.4972 GB, free: 6.715 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.748e-05/0.1484, allocations: 15.88 kB / 0.4972 GB, free: 6.699 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003353/0.1488, allocations: 87.88 kB / 0.4973 GB, free: 6.613 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002884/0.1517, allocations: 1.856 MB / 0.4991 GB, free: 4.754 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2138/0.3655, allocations: 7.116 MB / 0.506 GB, free: 39.16 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03297/0.3985, allocations: 23.82 MB / 0.5293 GB, free: 23.9 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004987/0.4035, allocations: 2.378 MB / 0.5316 GB, free: 22.43 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00117/0.4047, allocations: 0.8158 MB / 0.5324 GB, free: 22.03 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005743/0.4105, allocations: 4.583 MB / 0.5369 GB, free: 18.39 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.278e-05/0.4106, allocations: 51.44 kB / 0.5369 GB, free: 18.34 MB / 382.1 MB Notification: Performance of pre-optimization done (n=129): time 3.587e-06/0.4106, allocations: 3.938 kB / 0.5369 GB, free: 18.33 MB / 382.1 MB Notification: Performance of matching and sorting (n=153): time 0.01205/0.4226, allocations: 7.021 MB / 0.5438 GB, free: 14.26 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.212e-05/0.4227, allocations: 64.72 kB / 0.5438 GB, free: 14.18 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002777/0.4255, allocations: 2.576 MB / 0.5464 GB, free: 11.57 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.017e-05/0.4256, allocations: 45.7 kB / 0.5464 GB, free: 11.52 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007734/0.4264, allocations: 2.055 MB / 0.5484 GB, free: 9.465 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003024/0.4267, allocations: 0.5695 MB / 0.549 GB, free: 8.898 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007384/0.4274, allocations: 0.7735 MB / 0.5497 GB, free: 8.121 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.371e-05/0.4275, allocations: 305.1 kB / 0.55 GB, free: 7.82 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001531/0.429, allocations: 1.276 MB / 0.5513 GB, free: 6.543 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002186/0.4312, allocations: 3.376 MB / 0.5546 GB, free: 2.145 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004869/0.4361, allocations: 5.007 MB / 0.5594 GB, free: 12.12 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.986e-05/0.4362, allocations: 20 kB / 0.5595 GB, free: 12.1 MB / 398.1 MB Notification: Performance of matching and sorting (n=507) (initialization): time 0.007279/0.4435, allocations: 4.826 MB / 0.5642 GB, free: 7.27 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.15e-05/0.4435, allocations: 40.03 kB / 0.5642 GB, free: 7.23 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.171e-05/0.4436, allocations: 72 kB / 0.5643 GB, free: 7.16 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000724/0.4443, allocations: 311.3 kB / 0.5646 GB, free: 6.855 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002347/0.4467, allocations: 0.85 MB / 0.5654 GB, free: 6.004 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004203/0.4509, allocations: 3.647 MB / 0.569 GB, free: 2.223 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002439/0.4534, allocations: 196 kB / 0.5692 GB, free: 2.031 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003834/0.4538, allocations: 228 kB / 0.5694 GB, free: 1.809 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 333 * 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 (463): * Single equations (assignments): 458 * 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.002311/0.4561, allocations: 1.551 MB / 0.5709 GB, free: 252 kB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004077/0.4565, allocations: 217.2 kB / 0.5711 GB, free: 32 kB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003309/0.4598, allocations: 1.997 MB / 0.5731 GB, free: 14.02 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.975e-05/0.4599, allocations: 27.98 kB / 0.5731 GB, free: 13.99 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.057e-05/0.46, allocations: 4 kB / 0.5731 GB, free: 13.99 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.564e-05/0.46, allocations: 11.91 kB / 0.5731 GB, free: 13.98 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009457/0.4694, allocations: 5.652 MB / 0.5786 GB, free: 8.234 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.156e-06/0.4695, allocations: 0 / 0.5786 GB, free: 8.234 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008029/0.4703, allocations: 203.7 kB / 0.5788 GB, free: 8.035 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000573/0.4709, allocations: 210.4 kB / 0.579 GB, free: 7.828 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.853e-05/0.471, allocations: 35.12 kB / 0.579 GB, free: 7.797 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003202/0.4742, allocations: 2.959 MB / 0.5819 GB, free: 4.703 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.35e-06/0.4742, allocations: 8 kB / 0.5819 GB, free: 4.695 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00437/0.4786, allocations: 3.092 MB / 0.585 GB, free: 1.547 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006473/0.4793, allocations: 294.4 kB / 0.5852 GB, free: 1.238 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004284/0.4797, allocations: 24 kB / 0.5853 GB, free: 1.215 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009093/0.4806, allocations: 67.92 kB / 0.5853 GB, free: 1.148 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001702/0.4808, allocations: 88.77 kB / 0.5854 GB, free: 1.062 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.436e-05/0.4809, allocations: 43.98 kB / 0.5855 GB, free: 1.02 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002589/0.4835, allocations: 1.671 MB / 0.5871 GB, free: 15.33 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4835, allocations: 0 / 0.5871 GB, free: 15.33 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002817/0.4863, allocations: 0.682 MB / 0.5878 GB, free: 14.66 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 4 (revolute.phi,revolute.w,damper1D.s_rel,damper1D.v_rel) * 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.0003717/0.4867, allocations: 148.2 kB / 0.5879 GB, free: 14.51 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004976/0.4917, allocations: 3.151 MB / 0.591 GB, free: 11.37 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.53e-06/0.4917, allocations: 1.5 kB / 0.591 GB, free: 11.37 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001487/0.4932, allocations: 1.024 MB / 0.592 GB, free: 10.33 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002033/0.4953, allocations: 384.1 kB / 0.5923 GB, free: 9.961 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01119/0.5065, allocations: 6.765 MB / 0.5989 GB, free: 3.152 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002826/0.5093, allocations: 2.565 MB / 0.6015 GB, free: 0.5547 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006889/0.51, allocations: 203.4 kB / 0.6016 GB, free: 364 kB / 430.1 MB Notification: Performance of SimCode: time 9.82e-07/0.51, allocations: 0 / 0.6016 GB, free: 364 kB / 430.1 MB Notification: Performance of Templates: time 0.07154/0.5816, allocations: 55.97 MB / 0.6563 GB, free: 8.484 MB / 494.1 MB make -j1 -f PlanarMechanics_PlanarMechanics.Examples.CraneCrab.makefile (rm -f PlanarMechanics_PlanarMechanics.Examples.CraneCrab.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.CraneCrab.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.CraneCrab.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.CraneCrab.sim & ./PlanarMechanics_PlanarMechanics.Examples.CraneCrab -abortSlowSimulation -alarm=480 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.CraneCrab.pipe 2>&1)