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.001158/0.001158, allocations: 116.4 kB / 16.37 MB, free: 6.012 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.001167/0.001167, allocations: 192.6 kB / 17.31 MB, free: 5.609 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.33/1.33, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.04509/0.04509, allocations: 9.115 MB / 300.3 MB, free: 5.848 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002322/0.002323, allocations: 59.91 kB / 363.4 MB, free: 6.695 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2129/0.2153, allocations: 51.42 MB / 414.8 MB, free: 24.86 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.Pendulum): time 0.005966/0.2213, allocations: 7.023 MB / 421.8 MB, free: 17.81 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003687/0.225, allocations: 2.353 MB / 424.2 MB, free: 15.45 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001004/0.226, allocations: 27.94 kB / 424.2 MB, free: 15.43 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000909/0.227, allocations: 302.1 kB / 424.5 MB, free: 15.13 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002668/0.2297, allocations: 1.276 MB / 425.8 MB, free: 13.85 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003229/0.23, allocations: 83.83 kB / 425.9 MB, free: 13.77 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002559/0.2326, allocations: 2.155 MB / 428 MB, free: 11.61 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009636/0.2336, allocations: 0.7114 MB / 428.7 MB, free: 10.88 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007437/0.2343, allocations: 0.7548 MB / 429.5 MB, free: 10.12 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009504/0.2353, allocations: 1.121 MB / 430.6 MB, free: 8.996 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002049/0.2355, allocations: 204 kB / 430.8 MB, free: 8.797 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00101/0.2365, allocations: 0.8074 MB / 431.6 MB, free: 7.988 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005628/0.2371, allocations: 1.063 MB / 432.7 MB, free: 6.922 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007188/0.2378, allocations: 1.359 MB / 434 MB, free: 5.555 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0027/0.2405, allocations: 4.457 MB / 438.5 MB, free: 1.086 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.389e-06/0.2405, allocations: 3.938 kB / 438.5 MB, free: 1.082 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.2406, allocations: 0 / 438.5 MB, free: 1.082 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.6e-05/0.2406, allocations: 0 / 438.5 MB, free: 1.082 MB / 302.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.006219/0.2468, allocations: 3.356 MB / 441.9 MB, free: 13.67 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.008e-05/0.2469, allocations: 8.031 kB / 441.9 MB, free: 13.66 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006041/0.2529, allocations: 1.721 MB / 443.6 MB, free: 11.93 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002519/0.2555, allocations: 1.194 MB / 444.8 MB, free: 10.7 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.434e-05/0.2556, allocations: 127.3 kB / 444.9 MB, free: 10.57 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003388/0.2559, allocations: 152.2 kB / 445 MB, free: 10.42 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009604/0.2655, allocations: 7.216 MB / 452.3 MB, free: 2.918 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.721e-05/0.2656, allocations: 11.88 kB / 452.3 MB, free: 2.906 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002217/0.2658, allocations: 75.88 kB / 452.3 MB, free: 2.832 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002629/0.2685, allocations: 1.746 MB / 454.1 MB, free: 1.082 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01101/0.2795, allocations: 6.58 MB / 460.7 MB, free: 10.48 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03094/0.3105, allocations: 21.11 MB / 481.8 MB, free: 4.953 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003909/0.3144, allocations: 2.026 MB / 483.8 MB, free: 2.805 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00103/0.3155, allocations: 0.6753 MB / 484.5 MB, free: 2.129 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005283/0.3208, allocations: 3.274 MB / 487.8 MB, free: 14.58 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.574e-05/0.3209, allocations: 51.09 kB / 487.8 MB, free: 14.52 MB / 366.1 MB Notification: Performance of pre-optimization done (n=106): time 3.636e-06/0.3209, allocations: 0 / 487.8 MB, free: 14.52 MB / 366.1 MB Notification: Performance of matching and sorting (n=120): time 0.0108/0.3317, allocations: 5.523 MB / 493.3 MB, free: 8.902 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.276e-05/0.3318, allocations: 60.41 kB / 493.4 MB, free: 8.832 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003096/0.3349, allocations: 2.27 MB / 495.7 MB, free: 6.516 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.141e-05/0.3349, allocations: 41.7 kB / 495.7 MB, free: 6.469 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00114/0.3361, allocations: 1.833 MB / 497.5 MB, free: 4.605 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003747/0.3365, allocations: 465.9 kB / 498 MB, free: 4.145 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000841/0.3373, allocations: 0.659 MB / 498.6 MB, free: 3.477 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.251e-05/0.3374, allocations: 301.1 kB / 498.9 MB, free: 3.18 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001579/0.339, allocations: 1.096 MB / 0.4883 GB, free: 2.082 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002668/0.3417, allocations: 2.974 MB / 0.4912 GB, free: 14.19 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00462/0.3463, allocations: 4.375 MB / 0.4955 GB, free: 8.902 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.154e-05/0.3464, allocations: 20 kB / 0.4955 GB, free: 8.883 MB / 382.1 MB Notification: Performance of matching and sorting (n=430) (initialization): time 0.006496/0.3529, allocations: 4.135 MB / 0.4996 GB, free: 4.738 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.106e-05/0.3529, allocations: 39.94 kB / 0.4996 GB, free: 4.699 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.774e-05/0.353, allocations: 72 kB / 0.4997 GB, free: 4.629 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004811/0.3535, allocations: 200.8 kB / 0.4998 GB, free: 4.43 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002063/0.3556, allocations: 0.7213 MB / 0.5006 GB, free: 3.707 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002902/0.3585, allocations: 2.71 MB / 0.5032 GB, free: 0.8477 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002138/0.3607, allocations: 159.9 kB / 0.5034 GB, free: 0.6914 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002791/0.3609, allocations: 204 kB / 0.5035 GB, free: 0.4922 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.1548/0.5158, allocations: 1.426 MB / 0.5049 GB, free: 86.52 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003306/0.5161, allocations: 185 kB / 0.5051 GB, free: 86.52 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002624/0.5187, allocations: 1.617 MB / 0.5067 GB, free: 86.11 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001151/0.5189, allocations: 25.95 kB / 0.5067 GB, free: 86.11 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.022e-06/0.5189, allocations: 3.125 kB / 0.5067 GB, free: 86.11 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.238e-05/0.5189, allocations: 4.547 kB / 0.5067 GB, free: 86.11 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00726/0.5262, allocations: 4.862 MB / 0.5115 GB, free: 84.25 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.154e-06/0.5262, allocations: 3.938 kB / 0.5115 GB, free: 84.25 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006321/0.5268, allocations: 158.8 kB / 0.5116 GB, free: 84.23 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003089/0.5272, allocations: 114.8 kB / 0.5117 GB, free: 84.2 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.26e-05/0.5272, allocations: 24.62 kB / 0.5118 GB, free: 84.19 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001605/0.5288, allocations: 2.161 MB / 0.5139 GB, free: 82.54 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.286e-06/0.5289, allocations: 7.219 kB / 0.5139 GB, free: 82.54 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002821/0.5317, allocations: 2.551 MB / 0.5164 GB, free: 81.54 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004001/0.5321, allocations: 268.4 kB / 0.5166 GB, free: 81.42 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001942/0.5323, allocations: 16.89 kB / 0.5166 GB, free: 81.41 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006362/0.5329, allocations: 62.06 kB / 0.5167 GB, free: 81.4 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000108/0.5331, allocations: 70 kB / 0.5168 GB, free: 81.39 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.499e-05/0.5331, allocations: 38.77 kB / 0.5168 GB, free: 81.38 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00174/0.5349, allocations: 1.471 MB / 0.5182 GB, free: 80.81 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.5349, allocations: 0 / 0.5182 GB, free: 80.81 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002101/0.537, allocations: 0.5712 MB / 0.5188 GB, free: 80.74 MB / 382.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.0002503/0.5373, allocations: 141.4 kB / 0.5189 GB, free: 80.63 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003133/0.5404, allocations: 2.659 MB / 0.5215 GB, free: 79.61 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.827e-06/0.5404, allocations: 0 / 0.5215 GB, free: 79.61 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000878/0.5413, allocations: 0.8182 MB / 0.5223 GB, free: 78.87 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001375/0.5427, allocations: 356.3 kB / 0.5227 GB, free: 78.61 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007644/0.5503, allocations: 5.493 MB / 0.528 GB, free: 73.59 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001773/0.5521, allocations: 2.355 MB / 0.5303 GB, free: 71.45 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001888/0.554, allocations: 1.032 MB / 0.5313 GB, free: 70.42 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002878/0.5543, allocations: 147.4 kB / 0.5315 GB, free: 70.28 MB / 382.1 MB Notification: Performance of SimCode: time 7.52e-07/0.5543, allocations: 4 kB / 0.5315 GB, free: 70.27 MB / 382.1 MB Notification: Performance of Templates: time 0.03003/0.5844, allocations: 19.75 MB / 0.5508 GB, free: 50.71 MB / 382.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 -s gbode -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.Pendulum.pipe 2>&1)