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.0008934/0.0008935, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.006935/0.006935, allocations: 170 kB / 16.26 MB, free: 6.613 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.454/1.454, allocations: 223.3 MB / 240.3 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.1792/0.1792, allocations: 9.116 MB / 300.5 MB, free: 2.785 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004702/0.0004702, allocations: 8 kB / 363.7 MB, free: 12.67 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1431/0.1436, allocations: 52.42 MB / 416.1 MB, free: 8.199 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.Pendulum): time 0.2639/0.4076, allocations: 17.59 MB / 433.7 MB, free: 33.25 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01107/0.4187, allocations: 4.407 MB / 438.1 MB, free: 31.69 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004619/0.4234, allocations: 68.44 kB / 438.2 MB, free: 31.68 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001214/0.4246, allocations: 262.8 kB / 438.5 MB, free: 31.62 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003596/0.4282, allocations: 1.186 MB / 439.7 MB, free: 31.3 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003531/0.4286, allocations: 75.06 kB / 439.7 MB, free: 31.29 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002764/0.4314, allocations: 3.034 MB / 442.8 MB, free: 30.77 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007178/0.4321, allocations: 0.6373 MB / 443.4 MB, free: 30.55 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006071/0.4327, allocations: 0.6253 MB / 444 MB, free: 30.3 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001133/0.4339, allocations: 1.128 MB / 445.2 MB, free: 29.93 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001996/0.4341, allocations: 113.4 kB / 445.3 MB, free: 29.93 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001107/0.4352, allocations: 0.7509 MB / 446 MB, free: 29.74 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006409/0.4358, allocations: 0.9977 MB / 447 MB, free: 29.4 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000845/0.4367, allocations: 1.298 MB / 448.3 MB, free: 28.45 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003212/0.4399, allocations: 4.047 MB / 452.4 MB, free: 27.23 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.482e-06/0.4399, allocations: 0 / 452.4 MB, free: 27.23 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.44, allocations: 2.906 kB / 452.4 MB, free: 27.23 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.524e-05/0.44, allocations: 4 kB / 452.4 MB, free: 27.22 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: 1017 * Number of variables: 1017 Notification: Performance of Generate backend data structure: time 0.006904/0.4469, allocations: 2.809 MB / 455.2 MB, free: 25.75 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.372e-05/0.447, allocations: 9.875 kB / 455.2 MB, free: 25.75 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006681/0.4537, allocations: 1.757 MB / 456.9 MB, free: 25.48 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002354/0.4561, allocations: 1.2 MB / 458.1 MB, free: 24.71 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.715e-05/0.4562, allocations: 122.2 kB / 458.3 MB, free: 24.65 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004021/0.4566, allocations: 157.9 kB / 458.4 MB, free: 24.59 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01075/0.4673, allocations: 7.207 MB / 465.6 MB, free: 21.43 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.03e-05/0.4675, allocations: 20.92 kB / 465.6 MB, free: 21.42 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003016/0.4678, allocations: 76.09 kB / 465.7 MB, free: 21.36 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004034/0.4718, allocations: 1.735 MB / 467.4 MB, free: 21.01 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01724/0.4891, allocations: 6.585 MB / 474 MB, free: 18.73 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03513/0.5243, allocations: 21.19 MB / 495.2 MB, free: 3.82 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003662/0.528, allocations: 2.025 MB / 497.3 MB, free: 1.797 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008201/0.5288, allocations: 0.6675 MB / 497.9 MB, free: 1.129 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005364/0.5342, allocations: 3.282 MB / 0.4895 GB, free: 13.58 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.007e-05/0.5343, allocations: 43.16 kB / 0.4895 GB, free: 13.53 MB / 366.1 MB Notification: Performance of pre-optimization done (n=106): time 3.457e-06/0.5343, allocations: 0 / 0.4895 GB, free: 13.53 MB / 366.1 MB Notification: Performance of matching and sorting (n=120): time 0.01231/0.5466, allocations: 5.532 MB / 0.4949 GB, free: 7.898 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.945e-05/0.5467, allocations: 60.41 kB / 0.495 GB, free: 7.828 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003751/0.5505, allocations: 2.277 MB / 0.4972 GB, free: 5.504 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001311/0.5506, allocations: 41.7 kB / 0.4972 GB, free: 5.457 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001553/0.5522, allocations: 1.829 MB / 0.499 GB, free: 3.598 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005888/0.5528, allocations: 453.9 kB / 0.4994 GB, free: 3.148 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004069/0.5532, allocations: 280.8 kB / 0.4997 GB, free: 2.867 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001195/0.5533, allocations: 305.1 kB / 0.5 GB, free: 2.566 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001836/0.5552, allocations: 1.099 MB / 0.5011 GB, free: 1.465 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004105/0.5593, allocations: 2.958 MB / 0.504 GB, free: 13.59 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006273/0.5656, allocations: 4.371 MB / 0.5082 GB, free: 8.301 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.306e-05/0.5656, allocations: 20 kB / 0.5082 GB, free: 8.281 MB / 382.1 MB Notification: Performance of matching and sorting (n=430) (initialization): time 0.007804/0.5734, allocations: 4.139 MB / 0.5123 GB, free: 4.137 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.065e-05/0.5735, allocations: 35.94 kB / 0.5123 GB, free: 4.102 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.794e-05/0.5736, allocations: 64 kB / 0.5124 GB, free: 4.039 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005805/0.5742, allocations: 216.7 kB / 0.5126 GB, free: 3.828 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002372/0.5766, allocations: 0.7252 MB / 0.5133 GB, free: 3.102 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003424/0.58, allocations: 2.468 MB / 0.5157 GB, free: 0.4922 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002658/0.5827, allocations: 175.8 kB / 0.5159 GB, free: 328 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003008/0.583, allocations: 192 kB / 0.5161 GB, free: 136 kB / 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.002842/0.5859, allocations: 1.429 MB / 0.5175 GB, free: 14.69 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003542/0.5863, allocations: 181.7 kB / 0.5176 GB, free: 14.51 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00299/0.5892, allocations: 1.619 MB / 0.5192 GB, free: 12.88 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001075/0.5894, allocations: 23.98 kB / 0.5192 GB, free: 12.86 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.003e-05/0.5894, allocations: 7.938 kB / 0.5192 GB, free: 12.85 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.366e-05/0.5894, allocations: 3.984 kB / 0.5192 GB, free: 12.85 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009213/0.5986, allocations: 4.884 MB / 0.524 GB, free: 7.848 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.06e-05/0.5987, allocations: 0 / 0.524 GB, free: 7.848 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006777/0.5994, allocations: 163.7 kB / 0.5242 GB, free: 7.688 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003569/0.5997, allocations: 117.1 kB / 0.5243 GB, free: 7.57 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.311e-05/0.5998, allocations: 27.98 kB / 0.5243 GB, free: 7.543 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002183/0.602, allocations: 1.999 MB / 0.5263 GB, free: 5.406 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.799e-06/0.602, allocations: 4 kB / 0.5263 GB, free: 5.402 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004353/0.6064, allocations: 2.548 MB / 0.5288 GB, free: 2.797 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001199/0.6076, allocations: 282.9 kB / 0.529 GB, free: 2.5 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002383/0.6079, allocations: 21.08 kB / 0.529 GB, free: 2.48 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007267/0.6086, allocations: 51.92 kB / 0.5291 GB, free: 2.43 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001875/0.6088, allocations: 68.73 kB / 0.5292 GB, free: 2.363 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.082e-05/0.6089, allocations: 44.03 kB / 0.5292 GB, free: 2.32 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002952/0.6119, allocations: 1.472 MB / 0.5306 GB, free: 0.8242 MB / 398.1 MB Notification: Performance of sort global known variables: time 4.31e-07/0.6119, allocations: 4 kB / 0.5306 GB, free: 0.8203 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.003157/0.615, allocations: 0.5624 MB / 0.5312 GB, free: 264 kB / 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.0003873/0.6155, allocations: 147.1 kB / 0.5313 GB, free: 108 kB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.005015/0.6205, allocations: 2.638 MB / 0.5339 GB, free: 13.47 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 9.929e-06/0.6205, allocations: 0 / 0.5339 GB, free: 13.47 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001417/0.6219, allocations: 0.8242 MB / 0.5347 GB, free: 12.63 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002767/0.6247, allocations: 316.4 kB / 0.535 GB, free: 12.32 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0109/0.6356, allocations: 6.951 MB / 0.5418 GB, free: 5.312 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002592/0.6383, allocations: 2.361 MB / 0.5441 GB, free: 2.914 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.002734/0.641, allocations: 1.04 MB / 0.5451 GB, free: 1.871 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003814/0.6414, allocations: 143.4 kB / 0.5453 GB, free: 1.73 MB / 414.1 MB Notification: Performance of SimCode: time 1.513e-06/0.6414, allocations: 0 / 0.5453 GB, free: 1.73 MB / 414.1 MB Notification: Performance of Templates: time 0.04235/0.6838, allocations: 20.4 MB / 0.5652 GB, free: 13.46 MB / 446.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)