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-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.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.001462/0.001462, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001722/0.001722, allocations: 198.1 kB / 16.54 MB, free: 6.672 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.411/1.411, allocations: 222.9 MB / 240.2 MB, free: 4.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.1954/0.1954, allocations: 9.116 MB / 299.5 MB, free: 1.809 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001288/0.001288, allocations: 68.12 kB / 361.9 MB, free: 13.04 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1265/0.1278, allocations: 51.45 MB / 413.4 MB, free: 9.551 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PendulumExcited): time 0.01145/0.1393, allocations: 8.5 MB / 421.9 MB, free: 1.008 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.2414/0.3808, allocations: 2.609 MB / 424.5 MB, free: 36.21 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001353/0.3822, allocations: 30.34 kB / 424.5 MB, free: 36.21 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001154/0.3834, allocations: 364.3 kB / 424.9 MB, free: 36.21 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00317/0.3866, allocations: 1.384 MB / 426.3 MB, free: 36.16 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004031/0.387, allocations: 145.2 kB / 426.4 MB, free: 36.15 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002881/0.3899, allocations: 2.519 MB / 428.9 MB, free: 35.8 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001208/0.3912, allocations: 1.005 MB / 429.9 MB, free: 35.69 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001089/0.3923, allocations: 0.9193 MB / 430.9 MB, free: 35.51 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001374/0.3936, allocations: 1.322 MB / 432.2 MB, free: 35.14 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003433/0.394, allocations: 239.4 kB / 432.4 MB, free: 35.14 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001326/0.3953, allocations: 0.8317 MB / 433.2 MB, free: 34.99 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008169/0.3962, allocations: 1.227 MB / 434.5 MB, free: 34.51 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00112/0.3973, allocations: 1.591 MB / 436.1 MB, free: 33.34 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003882/0.4012, allocations: 4.822 MB / 440.9 MB, free: 31.57 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.2e-06/0.4012, allocations: 0 / 440.9 MB, free: 31.57 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.4012, allocations: 0 / 440.9 MB, free: 31.57 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.241e-05/0.4013, allocations: 0 / 440.9 MB, free: 31.57 MB / 350.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.008818/0.4101, allocations: 4.286 MB / 445.2 MB, free: 29.59 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.175e-05/0.4102, allocations: 9.625 kB / 445.2 MB, free: 29.59 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00611/0.4163, allocations: 1.767 MB / 446.9 MB, free: 29.3 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002438/0.4188, allocations: 1.339 MB / 448.3 MB, free: 28.45 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.244e-05/0.4189, allocations: 147.5 kB / 448.4 MB, free: 28.42 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003738/0.4193, allocations: 199.5 kB / 448.6 MB, free: 28.38 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01034/0.4296, allocations: 8.198 MB / 456.8 MB, free: 24.87 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.379e-05/0.4297, allocations: 16 kB / 456.8 MB, free: 24.86 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003171/0.43, allocations: 92.53 kB / 456.9 MB, free: 24.83 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003077/0.4331, allocations: 1.917 MB / 458.8 MB, free: 24.45 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01636/0.4495, allocations: 7.423 MB / 466.3 MB, free: 21.95 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03643/0.4859, allocations: 24.9 MB / 491.2 MB, free: 4.406 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004722/0.4907, allocations: 2.414 MB / 493.6 MB, free: 1.871 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001163/0.4919, allocations: 0.861 MB / 494.4 MB, free: 1.012 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006179/0.4981, allocations: 4.444 MB / 498.9 MB, free: 12.18 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.233e-05/0.4981, allocations: 43.56 kB / 498.9 MB, free: 12.12 MB / 366.1 MB Notification: Performance of pre-optimization done (n=130): time 3.206e-06/0.4982, allocations: 0 / 498.9 MB, free: 12.12 MB / 366.1 MB Notification: Performance of matching and sorting (n=144): time 0.01227/0.5104, allocations: 4.65 MB / 0.4918 GB, free: 7.469 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.988e-05/0.5105, allocations: 64.41 kB / 0.4918 GB, free: 7.395 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003749/0.5143, allocations: 2.488 MB / 0.4943 GB, free: 4.871 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 9.506e-05/0.5144, allocations: 44.05 kB / 0.4943 GB, free: 4.824 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001318/0.5157, allocations: 2.076 MB / 0.4963 GB, free: 2.742 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004404/0.5162, allocations: 0.5308 MB / 0.4969 GB, free: 2.215 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009859/0.5172, allocations: 0.7445 MB / 0.4976 GB, free: 1.465 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.575e-05/0.5173, allocations: 305.1 kB / 0.4979 GB, free: 1.164 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002033/0.5193, allocations: 1.241 MB / 0.4991 GB, free: 15.92 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003742/0.5231, allocations: 3.298 MB / 0.5023 GB, free: 11.61 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006788/0.5299, allocations: 4.89 MB / 0.5071 GB, free: 5.715 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.627e-05/0.53, allocations: 24 kB / 0.5071 GB, free: 5.691 MB / 382.1 MB Notification: Performance of matching and sorting (n=483) (initialization): time 0.00917/0.5391, allocations: 4.643 MB / 0.5116 GB, free: 1.047 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.201e-05/0.5392, allocations: 36 kB / 0.5117 GB, free: 1.012 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.215e-05/0.5393, allocations: 72 kB / 0.5117 GB, free: 0.9414 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007089/0.54, allocations: 237.2 kB / 0.512 GB, free: 0.707 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002684/0.5427, allocations: 0.8265 MB / 0.5128 GB, free: 15.88 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003717/0.5465, allocations: 2.844 MB / 0.5155 GB, free: 12.89 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003376/0.5499, allocations: 193.7 kB / 0.5157 GB, free: 12.7 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004353/0.5503, allocations: 228 kB / 0.516 GB, free: 12.48 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.003282/0.5536, allocations: 1.583 MB / 0.5175 GB, free: 10.89 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004032/0.554, allocations: 213.2 kB / 0.5177 GB, free: 10.68 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003612/0.5577, allocations: 1.932 MB / 0.5196 GB, free: 8.734 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001052/0.5578, allocations: 27.98 kB / 0.5196 GB, free: 8.707 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.112e-06/0.5578, allocations: 3.938 kB / 0.5196 GB, free: 8.703 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.603e-05/0.5578, allocations: 7.922 kB / 0.5196 GB, free: 8.695 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00979/0.5676, allocations: 5.842 MB / 0.5253 GB, free: 2.738 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.496e-06/0.5676, allocations: 4.438 kB / 0.5253 GB, free: 2.734 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008787/0.5685, allocations: 215.7 kB / 0.5255 GB, free: 2.523 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003946/0.5689, allocations: 136.7 kB / 0.5257 GB, free: 2.387 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.722e-05/0.569, allocations: 37.8 kB / 0.5257 GB, free: 2.352 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002713/0.5718, allocations: 2.508 MB / 0.5282 GB, free: 15.71 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.965e-06/0.5718, allocations: 11.88 kB / 0.5282 GB, free: 15.7 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004634/0.5764, allocations: 3.055 MB / 0.5312 GB, free: 12.58 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006207/0.5771, allocations: 286.8 kB / 0.5314 GB, free: 12.28 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00026/0.5773, allocations: 31.94 kB / 0.5315 GB, free: 12.25 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008007/0.5781, allocations: 71.91 kB / 0.5315 GB, free: 12.18 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002008/0.5783, allocations: 84.89 kB / 0.5316 GB, free: 12.09 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.004e-05/0.5784, allocations: 49.88 kB / 0.5317 GB, free: 12.04 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002456/0.5809, allocations: 1.607 MB / 0.5332 GB, free: 10.42 MB / 414.1 MB Notification: Performance of sort global known variables: time 3.21e-07/0.5809, allocations: 0 / 0.5332 GB, free: 10.42 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003215/0.5841, allocations: 0.6555 MB / 0.5339 GB, free: 9.766 MB / 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.0003751/0.5845, allocations: 158.9 kB / 0.534 GB, free: 9.598 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.007773/0.5923, allocations: 4.137 MB / 0.5381 GB, free: 5.477 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.089e-06/0.5923, allocations: 0 / 0.5381 GB, free: 5.477 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001557/0.5939, allocations: 1.017 MB / 0.539 GB, free: 4.445 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00205/0.596, allocations: 389.8 kB / 0.5394 GB, free: 4.086 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01182/0.6078, allocations: 6.415 MB / 0.5457 GB, free: 13.61 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003294/0.6111, allocations: 2.594 MB / 0.5482 GB, free: 10.98 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.003209/0.6144, allocations: 1.137 MB / 0.5493 GB, free: 9.84 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004236/0.6148, allocations: 163.4 kB / 0.5495 GB, free: 9.68 MB / 430.1 MB Notification: Performance of SimCode: time 1.192e-06/0.6148, allocations: 0 / 0.5495 GB, free: 9.68 MB / 430.1 MB Notification: Performance of Templates: time 0.04543/0.6603, allocations: 24.54 MB / 0.5734 GB, free: 1.324 MB / 446.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)