Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.Pendulum.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.Pendulum,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.Pendulum") translateModel(PlanarMechanics.Examples.Pendulum,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.Pendulum") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00126/0.00126, allocations: 108.7 kB / 16.41 MB, free: 6.027 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.001224/0.001224, allocations: 186.2 kB / 17.34 MB, free: 5.633 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.365/1.365, 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.04675/0.04675, allocations: 9.12 MB / 300.3 MB, free: 5.828 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001375/0.001375, allocations: 67.91 kB / 415.3 MB, free: 21.1 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1025/0.1039, allocations: 51.43 MB / 466.7 MB, free: 1.676 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.Pendulum): time 0.008622/0.1126, allocations: 7.012 MB / 473.7 MB, free: 10.62 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005497/0.1182, allocations: 2.355 MB / 476.1 MB, free: 8.262 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001238/0.1194, allocations: 27.94 kB / 476.1 MB, free: 8.234 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001109/0.1206, allocations: 314 kB / 476.4 MB, free: 7.926 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004243/0.1249, allocations: 1.261 MB / 477.7 MB, free: 6.66 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005146/0.1254, allocations: 83.83 kB / 477.8 MB, free: 6.578 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003312/0.1288, allocations: 2.159 MB / 479.9 MB, free: 4.414 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001333/0.1301, allocations: 0.7191 MB / 480.7 MB, free: 3.68 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001514/0.1316, allocations: 0.7587 MB / 481.4 MB, free: 2.918 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002005/0.1337, allocations: 1.121 MB / 482.5 MB, free: 1.793 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008157/0.1345, allocations: 204 kB / 482.7 MB, free: 1.594 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002067/0.1366, allocations: 0.8035 MB / 483.5 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001348/0.138, allocations: 1.06 MB / 484.6 MB, free: 15.73 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001534/0.1395, allocations: 1.351 MB / 486 MB, free: 14.37 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005259/0.1448, allocations: 4.485 MB / 490.4 MB, free: 9.867 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.853e-06/0.1448, allocations: 0 / 490.4 MB, free: 9.867 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.1448, allocations: 0 / 490.4 MB, free: 9.867 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001169/0.145, allocations: 0 / 490.4 MB, free: 9.867 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: 1017 * Number of variables: 1017 Notification: Performance of Generate backend data structure: time 0.00827/0.1532, allocations: 3.352 MB / 493.8 MB, free: 6.457 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.523e-05/0.1533, allocations: 12.03 kB / 493.8 MB, free: 6.445 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006171/0.1595, allocations: 1.709 MB / 495.5 MB, free: 4.73 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002944/0.1625, allocations: 1.205 MB / 496.7 MB, free: 3.48 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000113/0.1626, allocations: 123.3 kB / 496.8 MB, free: 3.359 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004487/0.1631, allocations: 160.2 kB / 497 MB, free: 3.203 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01106/0.1741, allocations: 7.204 MB / 0.4924 GB, free: 11.71 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.757e-05/0.1743, allocations: 23.8 kB / 0.4924 GB, free: 11.69 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002542/0.1745, allocations: 79.81 kB / 0.4925 GB, free: 11.61 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002733/0.1773, allocations: 1.734 MB / 0.4942 GB, free: 9.871 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01289/0.1902, allocations: 6.584 MB / 0.5006 GB, free: 3.273 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2902/0.4804, allocations: 21.1 MB / 0.5212 GB, free: 28.93 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005263/0.4858, allocations: 2.022 MB / 0.5232 GB, free: 27.88 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001303/0.4871, allocations: 0.6735 MB / 0.5238 GB, free: 27.64 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004819/0.492, allocations: 3.279 MB / 0.527 GB, free: 25.45 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.633e-05/0.492, allocations: 42.44 kB / 0.5271 GB, free: 25.4 MB / 382.1 MB Notification: Performance of pre-optimization done (n=106): time 4.328e-06/0.492, allocations: 0 / 0.5271 GB, free: 25.4 MB / 382.1 MB Notification: Performance of matching and sorting (n=120): time 0.01047/0.5025, allocations: 5.524 MB / 0.5325 GB, free: 22.93 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.502e-05/0.5026, allocations: 67.3 kB / 0.5325 GB, free: 22.87 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00309/0.5057, allocations: 2.267 MB / 0.5348 GB, free: 21.61 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001381/0.5058, allocations: 45.36 kB / 0.5348 GB, free: 21.57 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008728/0.5067, allocations: 1.831 MB / 0.5366 GB, free: 19.96 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004043/0.5071, allocations: 467.9 kB / 0.537 GB, free: 19.57 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000773/0.5079, allocations: 0.6583 MB / 0.5377 GB, free: 19.19 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.766e-05/0.508, allocations: 309 kB / 0.538 GB, free: 18.89 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001483/0.5095, allocations: 1.096 MB / 0.539 GB, free: 18.36 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002071/0.5116, allocations: 2.963 MB / 0.5419 GB, free: 15.21 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003539/0.5151, allocations: 4.366 MB / 0.5462 GB, free: 10.43 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.233e-05/0.5152, allocations: 24 kB / 0.5462 GB, free: 10.41 MB / 382.1 MB Notification: Performance of matching and sorting (n=430) (initialization): time 0.0055/0.5207, allocations: 4.133 MB / 0.5503 GB, free: 6.277 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.162e-05/0.5208, allocations: 36.06 kB / 0.5503 GB, free: 6.242 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.955e-05/0.5208, allocations: 68 kB / 0.5504 GB, free: 6.176 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004447/0.5213, allocations: 204.7 kB / 0.5506 GB, free: 5.973 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001845/0.5231, allocations: 0.7213 MB / 0.5513 GB, free: 5.25 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002271/0.5254, allocations: 2.714 MB / 0.5539 GB, free: 2.402 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002159/0.5276, allocations: 163.9 kB / 0.5541 GB, free: 2.242 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002291/0.5278, allocations: 196 kB / 0.5543 GB, free: 2.051 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 298 * Number of states: 0 () * Number of discrete variables: 9 (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 (395): * Single equations (assignments): 390 * 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,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001752/0.5296, allocations: 1.433 MB / 0.5557 GB, free: 0.6094 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002438/0.5298, allocations: 181.6 kB / 0.5558 GB, free: 440 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002574/0.5324, allocations: 1.616 MB / 0.5574 GB, free: 14.8 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001003/0.5325, allocations: 31.91 kB / 0.5574 GB, free: 14.77 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.532e-06/0.5325, allocations: 0 / 0.5574 GB, free: 14.77 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.063e-05/0.5325, allocations: 7.922 kB / 0.5574 GB, free: 14.76 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00847/0.541, allocations: 4.865 MB / 0.5622 GB, free: 9.797 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.676e-06/0.5411, allocations: 8.031 kB / 0.5622 GB, free: 9.789 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000642/0.5417, allocations: 155.8 kB / 0.5623 GB, free: 9.637 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003311/0.5421, allocations: 112.8 kB / 0.5625 GB, free: 9.523 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.309e-05/0.5421, allocations: 27.94 kB / 0.5625 GB, free: 9.496 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002201/0.5444, allocations: 2.158 MB / 0.5646 GB, free: 7.211 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.162e-06/0.5444, allocations: 8 kB / 0.5646 GB, free: 7.203 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003661/0.548, allocations: 2.555 MB / 0.5671 GB, free: 4.594 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006325/0.5487, allocations: 262.8 kB / 0.5673 GB, free: 4.316 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000205/0.5489, allocations: 27.59 kB / 0.5674 GB, free: 4.293 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006462/0.5496, allocations: 51.94 kB / 0.5674 GB, free: 4.242 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001544/0.5497, allocations: 64.86 kB / 0.5675 GB, free: 4.176 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.672e-05/0.5498, allocations: 39.98 kB / 0.5675 GB, free: 4.137 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002225/0.552, allocations: 1.472 MB / 0.569 GB, free: 2.641 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.552, allocations: 4 kB / 0.569 GB, free: 2.637 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002807/0.5549, allocations: 0.5673 MB / 0.5695 GB, free: 2.074 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * 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 (88): * Single equations (assignments): 83 * 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,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003641/0.5552, allocations: 139.6 kB / 0.5696 GB, free: 1.934 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004696/0.5599, allocations: 2.66 MB / 0.5722 GB, free: 15.28 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.122e-06/0.56, allocations: 4 kB / 0.5723 GB, free: 15.28 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001176/0.5612, allocations: 0.8184 MB / 0.573 GB, free: 14.45 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001803/0.563, allocations: 348.4 kB / 0.5734 GB, free: 14.12 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01073/0.5737, allocations: 5.839 MB / 0.5791 GB, free: 8.227 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002546/0.5763, allocations: 2.357 MB / 0.5814 GB, free: 5.848 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007414/0.5771, allocations: 179.4 kB / 0.5816 GB, free: 5.672 MB / 414.1 MB Notification: Performance of SimCode: time 2.445e-06/0.5771, allocations: 0 / 0.5816 GB, free: 5.672 MB / 414.1 MB Notification: Performance of Templates: time 0.08147/0.6586, allocations: 49.76 MB / 0.6301 GB, free: 4 MB / 462.1 MB make -j1 -f PlanarMechanics_PlanarMechanics.Examples.Pendulum.makefile (rm -f PlanarMechanics_PlanarMechanics.Examples.Pendulum.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.Pendulum.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.Pendulum.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.Pendulum.sim & ./PlanarMechanics_PlanarMechanics.Examples.Pendulum -abortSlowSimulation -alarm=480 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.Pendulum.pipe 2>&1)