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.001309/0.001309, allocations: 105 kB / 16.41 MB, free: 6.465 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.001267/0.001267, allocations: 187 kB / 17.34 MB, free: 5.719 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.286/1.286, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.04359/0.04359, allocations: 9.122 MB / 300.3 MB, free: 5.848 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001167/0.001167, allocations: 63.89 kB / 415.3 MB, free: 21.26 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08544/0.08662, allocations: 51.44 MB / 466.7 MB, free: 1.809 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.Pendulum): time 0.007501/0.09416, allocations: 7.007 MB / 473.8 MB, free: 10.77 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004455/0.09866, allocations: 2.355 MB / 476.1 MB, free: 8.402 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008038/0.09949, allocations: 27.94 kB / 476.1 MB, free: 8.375 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000722/0.1002, allocations: 314 kB / 476.4 MB, free: 8.066 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00257/0.1028, allocations: 1.261 MB / 477.7 MB, free: 6.801 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002552/0.1031, allocations: 87.81 kB / 477.8 MB, free: 6.715 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002257/0.1054, allocations: 2.159 MB / 479.9 MB, free: 4.551 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008886/0.1063, allocations: 0.7152 MB / 480.7 MB, free: 3.82 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009228/0.1072, allocations: 0.7548 MB / 481.4 MB, free: 3.062 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001381/0.1086, allocations: 1.129 MB / 482.5 MB, free: 1.93 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003246/0.1089, allocations: 200 kB / 482.7 MB, free: 1.734 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001332/0.1103, allocations: 0.7996 MB / 483.5 MB, free: 0.9336 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008676/0.1112, allocations: 1.064 MB / 484.6 MB, free: 15.86 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001121/0.1123, allocations: 1.355 MB / 486 MB, free: 14.5 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004468/0.1168, allocations: 4.481 MB / 490.4 MB, free: 10.01 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.702e-06/0.1168, allocations: 0 / 490.4 MB, free: 10.01 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.1168, allocations: 0 / 490.4 MB, free: 10.01 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.224e-05/0.1169, allocations: 0 / 490.4 MB, free: 10.01 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.007049/0.124, allocations: 3.356 MB / 493.8 MB, free: 6.594 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.535e-05/0.124, allocations: 8.031 kB / 493.8 MB, free: 6.586 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006419/0.1304, allocations: 1.709 MB / 495.5 MB, free: 4.871 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002116/0.1326, allocations: 1.205 MB / 496.7 MB, free: 3.621 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001068/0.1327, allocations: 119.3 kB / 496.8 MB, free: 3.504 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003796/0.1331, allocations: 156.2 kB / 497 MB, free: 3.352 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01045/0.1436, allocations: 7.216 MB / 0.4924 GB, free: 11.84 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.091e-05/0.1437, allocations: 15.88 kB / 0.4924 GB, free: 11.82 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003491/0.144, allocations: 75.88 kB / 0.4925 GB, free: 11.75 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002834/0.1469, allocations: 1.742 MB / 0.4942 GB, free: 10 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01225/0.1591, allocations: 6.58 MB / 0.5006 GB, free: 3.41 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2605/0.4196, allocations: 21.1 MB / 0.5212 GB, free: 28.85 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004103/0.4238, allocations: 2.037 MB / 0.5232 GB, free: 27.81 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009502/0.4248, allocations: 0.6721 MB / 0.5239 GB, free: 27.57 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004406/0.4292, allocations: 3.266 MB / 0.527 GB, free: 25.38 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.506e-05/0.4292, allocations: 49.47 kB / 0.5271 GB, free: 25.33 MB / 382.1 MB Notification: Performance of pre-optimization done (n=106): time 3.006e-06/0.4292, allocations: 0 / 0.5271 GB, free: 25.33 MB / 382.1 MB Notification: Performance of matching and sorting (n=120): time 0.0103/0.4395, allocations: 5.532 MB / 0.5325 GB, free: 22.87 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.984e-05/0.4396, allocations: 64.28 kB / 0.5326 GB, free: 22.8 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003193/0.4428, allocations: 2.272 MB / 0.5348 GB, free: 21.54 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.225e-05/0.4429, allocations: 37.7 kB / 0.5348 GB, free: 21.5 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007883/0.4437, allocations: 1.83 MB / 0.5366 GB, free: 19.89 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002974/0.444, allocations: 469.6 kB / 0.537 GB, free: 19.51 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008434/0.4448, allocations: 0.6647 MB / 0.5377 GB, free: 19.12 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.966e-05/0.4449, allocations: 305.1 kB / 0.538 GB, free: 18.82 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00148/0.4464, allocations: 1.095 MB / 0.5391 GB, free: 18.29 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002057/0.4485, allocations: 2.959 MB / 0.5419 GB, free: 15.14 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003485/0.452, allocations: 4.373 MB / 0.5462 GB, free: 10.57 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.777e-05/0.452, allocations: 20 kB / 0.5462 GB, free: 10.55 MB / 382.1 MB Notification: Performance of matching and sorting (n=430) (initialization): time 0.005581/0.4576, allocations: 4.139 MB / 0.5503 GB, free: 6.414 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.438e-05/0.4577, allocations: 32 kB / 0.5503 GB, free: 6.383 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.312e-05/0.4578, allocations: 68 kB / 0.5504 GB, free: 6.316 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004721/0.4582, allocations: 204.8 kB / 0.5506 GB, free: 6.113 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001875/0.4601, allocations: 0.7213 MB / 0.5513 GB, free: 5.391 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002317/0.4625, allocations: 2.708 MB / 0.5539 GB, free: 2.547 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002053/0.4645, allocations: 168 kB / 0.5541 GB, free: 2.383 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00027/0.4648, allocations: 199.3 kB / 0.5543 GB, free: 2.191 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.001709/0.4665, allocations: 1.43 MB / 0.5557 GB, free: 0.75 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003103/0.4668, allocations: 181.6 kB / 0.5558 GB, free: 0.5703 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002641/0.4695, allocations: 1.62 MB / 0.5574 GB, free: 14.94 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.931e-05/0.4696, allocations: 27.11 kB / 0.5574 GB, free: 14.91 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.556e-06/0.4696, allocations: 0 / 0.5574 GB, free: 14.91 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.098e-05/0.4696, allocations: 3.984 kB / 0.5574 GB, free: 14.91 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008842/0.4785, allocations: 4.866 MB / 0.5622 GB, free: 9.945 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-05/0.4785, allocations: 4 kB / 0.5622 GB, free: 9.941 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006507/0.4792, allocations: 172 kB / 0.5624 GB, free: 9.773 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003479/0.4795, allocations: 112.8 kB / 0.5625 GB, free: 9.66 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.156e-05/0.4796, allocations: 31.92 kB / 0.5625 GB, free: 9.629 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002269/0.4819, allocations: 2.15 MB / 0.5646 GB, free: 7.352 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.599e-06/0.4819, allocations: 4 kB / 0.5646 GB, free: 7.348 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003689/0.4856, allocations: 2.552 MB / 0.5671 GB, free: 4.738 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005705/0.4862, allocations: 270.8 kB / 0.5674 GB, free: 4.453 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003542/0.4866, allocations: 20 kB / 0.5674 GB, free: 4.434 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007707/0.4874, allocations: 52 kB / 0.5674 GB, free: 4.383 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001424/0.4875, allocations: 76.61 kB / 0.5675 GB, free: 4.309 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.277e-05/0.4876, allocations: 36 kB / 0.5675 GB, free: 4.273 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002504/0.4901, allocations: 1.472 MB / 0.569 GB, free: 2.777 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4901, allocations: 0 / 0.569 GB, free: 2.777 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002666/0.4928, allocations: 0.5677 MB / 0.5695 GB, free: 2.215 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.0003614/0.4932, allocations: 141.5 kB / 0.5697 GB, free: 2.074 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00434/0.4975, allocations: 2.662 MB / 0.5723 GB, free: 15.42 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 8.977e-06/0.4975, allocations: 0 / 0.5723 GB, free: 15.42 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001139/0.4987, allocations: 0.8129 MB / 0.5731 GB, free: 14.59 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001806/0.5005, allocations: 338.5 kB / 0.5734 GB, free: 14.27 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01036/0.5109, allocations: 5.844 MB / 0.5791 GB, free: 8.375 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002915/0.5138, allocations: 2.359 MB / 0.5814 GB, free: 5.996 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005862/0.5144, allocations: 183.4 kB / 0.5816 GB, free: 5.816 MB / 414.1 MB Notification: Performance of SimCode: time 5.72e-07/0.5144, allocations: 0 / 0.5816 GB, free: 5.816 MB / 414.1 MB Notification: Performance of Templates: time 0.06704/0.5815, allocations: 49.76 MB / 0.6302 GB, free: 4.152 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)