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-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.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.005574/0.005574, allocations: 101.7 kB / 15.73 MB, free: 5.586 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.001178/0.001179, allocations: 191.5 kB / 16.67 MB, free: 5.523 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.399/1.399, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.04522/0.04522, allocations: 9.135 MB / 299.7 MB, free: 5.867 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001777/0.001777, allocations: 63.91 kB / 414.6 MB, free: 21.27 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1153/0.1171, allocations: 51.44 MB / 466.1 MB, free: 1.801 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.Pendulum): time 0.009402/0.1266, allocations: 7.01 MB / 473.1 MB, free: 10.76 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005453/0.1321, allocations: 2.355 MB / 475.4 MB, free: 8.395 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009713/0.1331, allocations: 27.94 kB / 475.5 MB, free: 8.367 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007719/0.1339, allocations: 310.1 kB / 475.8 MB, free: 8.062 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00299/0.1369, allocations: 1.3 MB / 477.1 MB, free: 6.758 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003103/0.1373, allocations: 83.83 kB / 477.2 MB, free: 6.676 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002808/0.1401, allocations: 2.159 MB / 479.3 MB, free: 4.512 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009846/0.1411, allocations: 0.7153 MB / 480 MB, free: 3.781 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00118/0.1423, allocations: 0.7548 MB / 480.8 MB, free: 3.023 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00149/0.1438, allocations: 1.133 MB / 481.9 MB, free: 1.887 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003141/0.1441, allocations: 204 kB / 482.1 MB, free: 1.688 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001548/0.1457, allocations: 0.7996 MB / 482.9 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009876/0.1467, allocations: 1.06 MB / 484 MB, free: 15.82 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001347/0.148, allocations: 1.351 MB / 485.3 MB, free: 14.46 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005516/0.1535, allocations: 4.488 MB / 489.8 MB, free: 9.961 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.86e-06/0.1537, allocations: 4 kB / 489.8 MB, free: 9.957 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.1537, allocations: 0 / 489.8 MB, free: 9.957 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.114e-05/0.1537, allocations: 0 / 489.8 MB, free: 9.957 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.007596/0.1613, allocations: 3.348 MB / 493.2 MB, free: 6.551 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.583e-05/0.1614, allocations: 12.03 kB / 493.2 MB, free: 6.539 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006275/0.1677, allocations: 1.709 MB / 494.9 MB, free: 4.824 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002537/0.1702, allocations: 1.197 MB / 496.1 MB, free: 3.582 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001188/0.1704, allocations: 123.3 kB / 496.2 MB, free: 3.461 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003434/0.1707, allocations: 160.2 kB / 496.4 MB, free: 3.305 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01006/0.1808, allocations: 7.212 MB / 0.4918 GB, free: 11.8 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.911e-05/0.1809, allocations: 19.81 kB / 0.4918 GB, free: 11.79 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002314/0.1811, allocations: 75.88 kB / 0.4919 GB, free: 11.71 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002676/0.1838, allocations: 1.738 MB / 0.4936 GB, free: 9.969 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01238/0.1962, allocations: 6.584 MB / 0.5 GB, free: 3.371 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3552/0.5514, allocations: 21.1 MB / 0.5206 GB, free: 28.95 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004571/0.556, allocations: 2.027 MB / 0.5226 GB, free: 27.91 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001095/0.5572, allocations: 0.6772 MB / 0.5232 GB, free: 27.66 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005523/0.5627, allocations: 3.269 MB / 0.5264 GB, free: 25.47 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.123e-05/0.5627, allocations: 41.72 kB / 0.5265 GB, free: 25.43 MB / 382.1 MB Notification: Performance of pre-optimization done (n=106): time 5.5e-06/0.5628, allocations: 1.438 kB / 0.5265 GB, free: 25.43 MB / 382.1 MB Notification: Performance of matching and sorting (n=120): time 0.01124/0.574, allocations: 5.533 MB / 0.5319 GB, free: 22.95 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.361e-05/0.5741, allocations: 60.31 kB / 0.5319 GB, free: 22.89 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00274/0.5768, allocations: 2.272 MB / 0.5342 GB, free: 21.63 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.432e-05/0.5769, allocations: 45.08 kB / 0.5342 GB, free: 21.58 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007753/0.5777, allocations: 1.831 MB / 0.536 GB, free: 19.98 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002997/0.578, allocations: 460.7 kB / 0.5364 GB, free: 19.6 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007411/0.5787, allocations: 0.6651 MB / 0.5371 GB, free: 19.21 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.302e-05/0.5788, allocations: 313.1 kB / 0.5374 GB, free: 18.9 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001374/0.5802, allocations: 1.092 MB / 0.5384 GB, free: 18.37 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00215/0.5823, allocations: 2.967 MB / 0.5413 GB, free: 15.22 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003696/0.586, allocations: 4.361 MB / 0.5456 GB, free: 10.54 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.547e-05/0.5861, allocations: 21.69 kB / 0.5456 GB, free: 10.52 MB / 382.1 MB Notification: Performance of matching and sorting (n=430) (initialization): time 0.005331/0.5914, allocations: 4.135 MB / 0.5496 GB, free: 6.387 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.086e-05/0.5915, allocations: 32 kB / 0.5497 GB, free: 6.355 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.86e-05/0.5915, allocations: 68.16 kB / 0.5497 GB, free: 6.289 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004368/0.592, allocations: 206 kB / 0.5499 GB, free: 6.086 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001783/0.5938, allocations: 0.7252 MB / 0.5507 GB, free: 5.359 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002348/0.5961, allocations: 2.708 MB / 0.5533 GB, free: 2.516 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00226/0.5984, allocations: 163.9 kB / 0.5535 GB, free: 2.355 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002293/0.5986, allocations: 208 kB / 0.5536 GB, free: 2.152 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.001819/0.6005, allocations: 1.43 MB / 0.555 GB, free: 0.7148 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002851/0.6008, allocations: 189.5 kB / 0.5552 GB, free: 0.5273 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002763/0.6035, allocations: 1.615 MB / 0.5568 GB, free: 14.9 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.822e-05/0.6036, allocations: 23.98 kB / 0.5568 GB, free: 14.88 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.162e-06/0.6037, allocations: 0 / 0.5568 GB, free: 14.88 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.313e-05/0.6037, allocations: 3.984 kB / 0.5568 GB, free: 14.87 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00848/0.6122, allocations: 4.866 MB / 0.5616 GB, free: 9.906 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.688e-06/0.6122, allocations: 4 kB / 0.5616 GB, free: 9.902 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006379/0.6128, allocations: 155.8 kB / 0.5617 GB, free: 9.75 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003603/0.6132, allocations: 121 kB / 0.5618 GB, free: 9.629 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.41e-05/0.6133, allocations: 31.92 kB / 0.5619 GB, free: 9.598 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002331/0.6156, allocations: 2.152 MB / 0.564 GB, free: 7.316 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.529e-06/0.6156, allocations: 4 kB / 0.564 GB, free: 7.312 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004158/0.6198, allocations: 2.552 MB / 0.5665 GB, free: 4.703 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006095/0.6204, allocations: 265.7 kB / 0.5667 GB, free: 4.426 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001912/0.6206, allocations: 20 kB / 0.5668 GB, free: 4.406 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006405/0.6213, allocations: 51.94 kB / 0.5668 GB, free: 4.355 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002033/0.6215, allocations: 80.2 kB / 0.5669 GB, free: 4.277 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.202e-05/0.6216, allocations: 36 kB / 0.5669 GB, free: 4.242 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002514/0.6241, allocations: 1.472 MB / 0.5683 GB, free: 2.746 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.6241, allocations: 0 / 0.5683 GB, free: 2.746 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.003353/0.6275, allocations: 0.5677 MB / 0.5689 GB, free: 2.184 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.0004794/0.628, allocations: 141.6 kB / 0.569 GB, free: 2.043 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.005057/0.633, allocations: 2.662 MB / 0.5716 GB, free: 15.39 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.494e-05/0.6331, allocations: 8 kB / 0.5716 GB, free: 15.38 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001287/0.6344, allocations: 0.814 MB / 0.5724 GB, free: 14.55 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001679/0.6361, allocations: 338.9 kB / 0.5728 GB, free: 14.23 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.011/0.6471, allocations: 5.497 MB / 0.5781 GB, free: 8.688 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002477/0.6496, allocations: 2.355 MB / 0.5804 GB, free: 6.312 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.002394/0.652, allocations: 1.032 MB / 0.5814 GB, free: 5.277 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003706/0.6524, allocations: 139.4 kB / 0.5816 GB, free: 5.141 MB / 414.1 MB Notification: Performance of SimCode: time 1.283e-06/0.6524, allocations: 4 kB / 0.5816 GB, free: 5.137 MB / 414.1 MB Notification: Performance of Templates: time 0.04079/0.6932, allocations: 20.97 MB / 0.6021 GB, free: 316 kB / 430.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)