Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.PendulumExcited.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.PendulumExcited,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.PendulumExcited") translateModel(PlanarMechanics.Examples.PendulumExcited,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.PendulumExcited") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001196/0.001196, allocations: 113.9 kB / 16.41 MB, free: 6.484 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.001098/0.001098, allocations: 189.5 kB / 17.34 MB, free: 5.762 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.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.0464/0.0464, allocations: 9.116 MB / 300.3 MB, free: 5.84 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001248/0.001248, allocations: 67.89 kB / 415.3 MB, free: 21.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1066/0.1078, allocations: 51.44 MB / 466.7 MB, free: 1.688 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PendulumExcited): time 0.009793/0.1177, allocations: 8.515 MB / 475.3 MB, free: 9.125 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005854/0.1236, allocations: 2.597 MB / 477.9 MB, free: 6.52 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001515/0.1251, allocations: 31.94 kB / 477.9 MB, free: 6.488 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001067/0.1263, allocations: 381.5 kB / 478.3 MB, free: 6.113 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003903/0.1302, allocations: 1.369 MB / 479.6 MB, free: 4.738 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005633/0.1308, allocations: 155.7 kB / 479.8 MB, free: 4.586 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003627/0.1344, allocations: 2.532 MB / 482.3 MB, free: 2.051 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00167/0.1361, allocations: 1.003 MB / 483.3 MB, free: 1.02 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001632/0.1378, allocations: 0.9183 MB / 484.2 MB, free: 100 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001968/0.1398, allocations: 1.327 MB / 485.6 MB, free: 14.77 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000503/0.1403, allocations: 240 kB / 485.8 MB, free: 14.53 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00166/0.1419, allocations: 0.8308 MB / 486.6 MB, free: 13.7 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001229/0.1432, allocations: 1.219 MB / 487.8 MB, free: 12.48 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001855/0.1451, allocations: 1.588 MB / 489.4 MB, free: 10.88 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005715/0.1508, allocations: 5.072 MB / 494.5 MB, free: 5.789 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.1508, allocations: 0 / 494.5 MB, free: 5.789 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.1508, allocations: 0 / 494.5 MB, free: 5.789 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001347/0.151, allocations: 0 / 494.5 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: 1181 * Number of variables: 1181 Notification: Performance of Generate backend data structure: time 0.01046/0.1614, allocations: 4.279 MB / 498.8 MB, free: 1.445 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.792e-05/0.1615, allocations: 8.031 kB / 498.8 MB, free: 1.438 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006457/0.168, allocations: 1.763 MB / 0.4888 GB, free: 15.67 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003537/0.1716, allocations: 1.343 MB / 0.4901 GB, free: 14.28 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001585/0.1718, allocations: 152 kB / 0.4903 GB, free: 14.13 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007586/0.1725, allocations: 200.1 kB / 0.4905 GB, free: 13.94 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01357/0.1861, allocations: 8.192 MB / 0.4985 GB, free: 5.383 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.824e-05/0.1862, allocations: 23.81 kB / 0.4985 GB, free: 5.359 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003058/0.1865, allocations: 91.86 kB / 0.4986 GB, free: 5.27 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00306/0.1896, allocations: 1.915 MB / 0.5005 GB, free: 3.352 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3003/0.4899, allocations: 7.425 MB / 0.5077 GB, free: 38.85 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03833/0.5283, allocations: 24.79 MB / 0.5319 GB, free: 22.64 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004893/0.5333, allocations: 2.414 MB / 0.5343 GB, free: 21.15 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001193/0.5345, allocations: 0.8642 MB / 0.5351 GB, free: 20.73 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005573/0.5401, allocations: 4.437 MB / 0.5395 GB, free: 17.04 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.397e-05/0.5402, allocations: 52.44 kB / 0.5395 GB, free: 16.99 MB / 382.1 MB Notification: Performance of pre-optimization done (n=130): time 4.068e-06/0.5402, allocations: 0 / 0.5395 GB, free: 16.99 MB / 382.1 MB Notification: Performance of matching and sorting (n=144): time 0.00978/0.55, allocations: 4.645 MB / 0.544 GB, free: 13.91 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.532e-05/0.55, allocations: 68.39 kB / 0.5441 GB, free: 13.84 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002819/0.5529, allocations: 2.488 MB / 0.5465 GB, free: 11.31 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.929e-05/0.553, allocations: 45.7 kB / 0.5466 GB, free: 11.26 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008721/0.5538, allocations: 2.077 MB / 0.5486 GB, free: 9.18 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003585/0.5542, allocations: 0.5314 MB / 0.5491 GB, free: 8.652 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007881/0.555, allocations: 0.746 MB / 0.5499 GB, free: 7.902 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.103e-05/0.5551, allocations: 309.1 kB / 0.5501 GB, free: 7.598 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001581/0.5567, allocations: 1.233 MB / 0.5513 GB, free: 6.363 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002436/0.5591, allocations: 3.298 MB / 0.5546 GB, free: 2.059 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005625/0.5647, allocations: 4.888 MB / 0.5593 GB, free: 12.16 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.202e-05/0.5649, allocations: 20 kB / 0.5594 GB, free: 12.14 MB / 398.1 MB Notification: Performance of matching and sorting (n=483) (initialization): time 0.009563/0.5745, allocations: 4.632 MB / 0.5639 GB, free: 7.5 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.094e-05/0.5746, allocations: 44.19 kB / 0.5639 GB, free: 7.457 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.04e-05/0.5747, allocations: 72 kB / 0.564 GB, free: 7.387 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006502/0.5753, allocations: 227.4 kB / 0.5642 GB, free: 7.164 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002923/0.5783, allocations: 0.8227 MB / 0.565 GB, free: 6.34 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003524/0.5818, allocations: 2.863 MB / 0.5678 GB, free: 3.344 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003122/0.585, allocations: 183.9 kB / 0.568 GB, free: 3.164 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005658/0.5856, allocations: 216 kB / 0.5682 GB, free: 2.953 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 329 * Number of states: 0 () * Number of discrete variables: 21 (worldForce.arrowTorque.twoHeadedArrow,worldForce.arrowTorque.headAtOrigin,worldForce.arrowForce.twoHeadedArrow,worldForce.arrowForce.headAtOrigin,cutForce.arrowForce.twoHeadedArrow,cutForce.arrowForce.headAtOrigin,worldForce.color[3],worldForce.color[2],worldForce.color[1],cutForce.forceColor[3],cutForce.forceColor[2],cutForce.forceColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[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 (445): * Single equations (assignments): 440 * 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,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00272/0.5883, allocations: 1.584 MB / 0.5697 GB, free: 1.359 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003995/0.5887, allocations: 213.2 kB / 0.5699 GB, free: 1.148 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00337/0.5921, allocations: 1.943 MB / 0.5718 GB, free: 15.2 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001023/0.5922, allocations: 27.98 kB / 0.5719 GB, free: 15.17 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.232e-06/0.5922, allocations: 0 / 0.5719 GB, free: 15.17 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.307e-05/0.5922, allocations: 3.984 kB / 0.5719 GB, free: 15.17 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01044/0.6027, allocations: 5.814 MB / 0.5776 GB, free: 9.246 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.013e-05/0.6027, allocations: 4 kB / 0.5776 GB, free: 9.242 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000894/0.6036, allocations: 215.7 kB / 0.5778 GB, free: 9.031 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003952/0.604, allocations: 137.2 kB / 0.5779 GB, free: 8.895 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.068e-05/0.6041, allocations: 27.98 kB / 0.5779 GB, free: 8.867 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002691/0.6068, allocations: 2.525 MB / 0.5804 GB, free: 6.207 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.301e-06/0.6068, allocations: 8 kB / 0.5804 GB, free: 6.199 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00464/0.6115, allocations: 3.06 MB / 0.5834 GB, free: 3.074 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000766/0.6123, allocations: 286.3 kB / 0.5837 GB, free: 2.773 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002396/0.6125, allocations: 23.94 kB / 0.5837 GB, free: 2.75 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008047/0.6133, allocations: 75.91 kB / 0.5837 GB, free: 2.676 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000215/0.6136, allocations: 91.47 kB / 0.5838 GB, free: 2.59 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.959e-05/0.6137, allocations: 43.98 kB / 0.5839 GB, free: 2.547 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002467/0.6161, allocations: 1.603 MB / 0.5854 GB, free: 0.9258 MB / 414.1 MB Notification: Performance of sort global known variables: time 7.31e-07/0.6162, allocations: 0 / 0.5854 GB, free: 0.9258 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003267/0.6194, allocations: 0.6472 MB / 0.5861 GB, free: 288 kB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 2 (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 (109): * Single equations (assignments): 104 * 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,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000383/0.6198, allocations: 158.1 kB / 0.5862 GB, free: 128 kB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.005465/0.6253, allocations: 3.04 MB / 0.5892 GB, free: 13.09 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 7.544e-06/0.6254, allocations: 192 / 0.5892 GB, free: 13.09 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001619/0.627, allocations: 1.009 MB / 0.5902 GB, free: 12.07 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002107/0.6291, allocations: 402.4 kB / 0.5906 GB, free: 11.69 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01145/0.6406, allocations: 6.694 MB / 0.5971 GB, free: 4.941 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002671/0.6433, allocations: 2.6 MB / 0.5996 GB, free: 2.309 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007969/0.6441, allocations: 207.4 kB / 0.5998 GB, free: 2.105 MB / 430.1 MB Notification: Performance of SimCode: time 1.082e-06/0.6441, allocations: 0 / 0.5998 GB, free: 2.105 MB / 430.1 MB Notification: Performance of Templates: time 0.07862/0.7227, allocations: 56.43 MB / 0.6549 GB, free: 9.77 MB / 494.1 MB make -j1 -f PlanarMechanics_PlanarMechanics.Examples.PendulumExcited.makefile (rm -f PlanarMechanics_PlanarMechanics.Examples.PendulumExcited.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.PendulumExcited.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.PendulumExcited.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.PendulumExcited.sim & ./PlanarMechanics_PlanarMechanics.Examples.PendulumExcited -abortSlowSimulation -alarm=480 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.PendulumExcited.pipe 2>&1)