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.005977/0.005977, allocations: 99.19 kB / 15.73 MB, free: 6.008 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.00152/0.00152, allocations: 189.6 kB / 16.67 MB, free: 5.926 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.283/1.283, allocations: 222.9 MB / 240.4 MB, free: 15.06 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.04375/0.04375, allocations: 9.133 MB / 299.7 MB, free: 5.824 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001169/0.001169, allocations: 55.91 kB / 414.6 MB, free: 21.13 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09331/0.09449, allocations: 51.45 MB / 466.1 MB, free: 1.652 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.Pendulum): time 0.008139/0.1027, allocations: 7.004 MB / 473.1 MB, free: 10.61 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004934/0.1076, allocations: 2.351 MB / 475.4 MB, free: 8.25 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001196/0.1089, allocations: 27.94 kB / 475.5 MB, free: 8.223 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001027/0.1099, allocations: 310.1 kB / 475.8 MB, free: 7.918 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003521/0.1135, allocations: 1.272 MB / 477 MB, free: 6.641 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004706/0.114, allocations: 79.84 kB / 477.1 MB, free: 6.562 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003167/0.1172, allocations: 2.16 MB / 479.3 MB, free: 4.398 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001253/0.1185, allocations: 0.7153 MB / 480 MB, free: 3.668 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001379/0.1199, allocations: 0.7547 MB / 480.7 MB, free: 2.91 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00196/0.1218, allocations: 1.129 MB / 481.9 MB, free: 1.777 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008682/0.1227, allocations: 200 kB / 482.1 MB, free: 1.582 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002423/0.1251, allocations: 0.8035 MB / 482.9 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001831/0.127, allocations: 1.06 MB / 483.9 MB, free: 15.71 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002702/0.1297, allocations: 1.359 MB / 485.3 MB, free: 14.35 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006296/0.136, allocations: 4.494 MB / 489.8 MB, free: 9.836 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.678e-06/0.136, allocations: 0 / 489.8 MB, free: 9.836 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.1361, allocations: 0 / 489.8 MB, free: 9.836 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001607/0.1362, allocations: 4 kB / 489.8 MB, free: 9.832 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.008889/0.1451, allocations: 3.437 MB / 493.2 MB, free: 6.332 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.11e-05/0.1452, allocations: 8.031 kB / 493.2 MB, free: 6.324 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006035/0.1512, allocations: 1.727 MB / 495 MB, free: 4.594 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002083/0.1533, allocations: 1.209 MB / 496.2 MB, free: 3.34 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001039/0.1535, allocations: 119.3 kB / 496.3 MB, free: 3.223 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002984/0.1538, allocations: 156.2 kB / 496.4 MB, free: 3.07 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01021/0.164, allocations: 7.212 MB / 0.4918 GB, free: 11.57 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.127e-05/0.1641, allocations: 19.83 kB / 0.4919 GB, free: 11.55 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002343/0.1643, allocations: 75.88 kB / 0.4919 GB, free: 11.48 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002699/0.167, allocations: 1.742 MB / 0.4936 GB, free: 9.73 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01161/0.1786, allocations: 6.58 MB / 0.5001 GB, free: 3.137 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2614/0.4401, allocations: 21.15 MB / 0.5207 GB, free: 29.02 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003988/0.4441, allocations: 2.018 MB / 0.5227 GB, free: 27.98 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009647/0.4451, allocations: 0.6796 MB / 0.5234 GB, free: 27.74 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004175/0.4493, allocations: 3.277 MB / 0.5266 GB, free: 25.61 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.633e-05/0.4494, allocations: 45.69 kB / 0.5266 GB, free: 25.56 MB / 382.1 MB Notification: Performance of pre-optimization done (n=106): time 2.845e-06/0.4494, allocations: 4 kB / 0.5266 GB, free: 25.55 MB / 382.1 MB Notification: Performance of matching and sorting (n=120): time 0.009502/0.4589, allocations: 5.566 MB / 0.532 GB, free: 23.16 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.448e-05/0.4589, allocations: 59.38 kB / 0.5321 GB, free: 23.09 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002617/0.4616, allocations: 2.285 MB / 0.5343 GB, free: 21.87 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.468e-05/0.4616, allocations: 37.27 kB / 0.5344 GB, free: 21.83 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007903/0.4624, allocations: 1.914 MB / 0.5362 GB, free: 20.22 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002221/0.4627, allocations: 482.2 kB / 0.5367 GB, free: 19.82 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006121/0.4633, allocations: 0.6672 MB / 0.5373 GB, free: 19.43 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.557e-05/0.4633, allocations: 305.1 kB / 0.5376 GB, free: 19.13 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001365/0.4647, allocations: 1.099 MB / 0.5387 GB, free: 18.6 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001967/0.4667, allocations: 2.958 MB / 0.5416 GB, free: 15.46 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003336/0.47, allocations: 4.379 MB / 0.5459 GB, free: 10.6 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.093e-05/0.4701, allocations: 24 kB / 0.5459 GB, free: 10.58 MB / 382.1 MB Notification: Performance of matching and sorting (n=430) (initialization): time 0.005049/0.4751, allocations: 4.142 MB / 0.5499 GB, free: 6.434 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.543e-05/0.4752, allocations: 36.25 kB / 0.55 GB, free: 6.398 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.311e-05/0.4752, allocations: 68 kB / 0.55 GB, free: 6.332 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004317/0.4757, allocations: 200.5 kB / 0.5502 GB, free: 6.137 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001779/0.4774, allocations: 0.7291 MB / 0.5509 GB, free: 5.406 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002032/0.4795, allocations: 2.708 MB / 0.5536 GB, free: 2.566 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00199/0.4815, allocations: 163.9 kB / 0.5537 GB, free: 2.406 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002174/0.4817, allocations: 196 kB / 0.5539 GB, free: 2.215 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.002007/0.4837, allocations: 1.43 MB / 0.5553 GB, free: 0.7734 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003153/0.4841, allocations: 190.7 kB / 0.5555 GB, free: 0.5859 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002539/0.4866, allocations: 1.623 MB / 0.5571 GB, free: 14.95 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.718e-05/0.4867, allocations: 27.98 kB / 0.5571 GB, free: 14.93 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.564e-06/0.4867, allocations: 4.047 kB / 0.5571 GB, free: 14.92 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.247e-05/0.4868, allocations: 7.984 kB / 0.5571 GB, free: 14.91 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007268/0.494, allocations: 4.865 MB / 0.5619 GB, free: 9.949 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.285e-06/0.4941, allocations: 8.031 kB / 0.5619 GB, free: 9.941 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006343/0.4947, allocations: 155.8 kB / 0.562 GB, free: 9.789 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003181/0.495, allocations: 120.6 kB / 0.5622 GB, free: 9.668 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.923e-05/0.4951, allocations: 24 kB / 0.5622 GB, free: 9.645 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002056/0.4972, allocations: 2.161 MB / 0.5643 GB, free: 7.355 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.637e-06/0.4972, allocations: 4 kB / 0.5643 GB, free: 7.352 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003358/0.5005, allocations: 2.561 MB / 0.5668 GB, free: 4.734 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004941/0.5011, allocations: 272.4 kB / 0.5671 GB, free: 4.449 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001982/0.5013, allocations: 30 kB / 0.5671 GB, free: 4.422 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006294/0.5019, allocations: 51.94 kB / 0.5671 GB, free: 4.371 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001161/0.502, allocations: 68.8 kB / 0.5672 GB, free: 4.301 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.253e-05/0.5021, allocations: 38.02 kB / 0.5672 GB, free: 4.266 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002022/0.5041, allocations: 1.468 MB / 0.5687 GB, free: 2.773 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.5041, allocations: 7.938 kB / 0.5687 GB, free: 2.766 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.00255/0.5067, allocations: 0.5663 MB / 0.5692 GB, free: 2.199 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.0003216/0.507, allocations: 144.9 kB / 0.5694 GB, free: 2.051 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003778/0.5108, allocations: 2.654 MB / 0.572 GB, free: 15.41 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/0.5108, allocations: 0.5 kB / 0.572 GB, free: 15.41 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001016/0.5119, allocations: 0.8242 MB / 0.5728 GB, free: 14.57 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00144/0.5133, allocations: 333.8 kB / 0.5731 GB, free: 14.26 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008107/0.5214, allocations: 5.589 MB / 0.5785 GB, free: 8.609 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002244/0.5237, allocations: 2.36 MB / 0.5808 GB, free: 6.223 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.002269/0.526, allocations: 1.032 MB / 0.5819 GB, free: 5.188 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003489/0.5264, allocations: 147.4 kB / 0.582 GB, free: 5.043 MB / 414.1 MB Notification: Performance of SimCode: time 9.21e-07/0.5264, allocations: 3.938 kB / 0.582 GB, free: 5.039 MB / 414.1 MB Notification: Performance of Templates: time 0.03507/0.5614, allocations: 20.96 MB / 0.6025 GB, free: 208 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)