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.00118/0.001181, allocations: 86.09 kB / 15.06 MB, free: 1.09 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.001046/0.001046, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.42/1.42, allocations: 223.3 MB / 240 MB, free: 5.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.2488/0.2488, allocations: 9.109 MB / 300.2 MB, free: 2.758 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003616/0.0003616, allocations: 11.98 kB / 363.1 MB, free: 12.98 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1249/0.1253, allocations: 52.43 MB / 415.5 MB, free: 8.508 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.Pendulum): time 0.2922/0.4175, allocations: 16.41 MB / 432 MB, free: 34.12 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01243/0.43, allocations: 4.222 MB / 436.2 MB, free: 33.32 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004595/0.4347, allocations: 65.59 kB / 436.2 MB, free: 33.32 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002951/0.4377, allocations: 0.7812 MB / 437 MB, free: 33.06 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01048/0.4482, allocations: 2.915 MB / 439.9 MB, free: 31.93 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00115/0.4494, allocations: 73.53 kB / 440 MB, free: 31.89 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003167/0.4525, allocations: 2.38 MB / 442.4 MB, free: 30.99 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008746/0.4534, allocations: 0.6364 MB / 443 MB, free: 30.77 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008117/0.4542, allocations: 0.6685 MB / 443.7 MB, free: 30.54 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001336/0.4556, allocations: 1.111 MB / 444.8 MB, free: 30.2 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002154/0.4558, allocations: 108.3 kB / 444.9 MB, free: 30.2 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001369/0.4572, allocations: 0.6409 MB / 445.5 MB, free: 30.06 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009084/0.4581, allocations: 0.9691 MB / 446.5 MB, free: 29.73 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004962/0.4586, allocations: 0.5622 MB / 447.1 MB, free: 29.3 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002947/0.4616, allocations: 3.308 MB / 450.4 MB, free: 28.56 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.164e-06/0.4616, allocations: 7.938 kB / 450.4 MB, free: 28.55 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.605e-06/0.4616, allocations: 3.188 kB / 450.4 MB, free: 28.55 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.393e-05/0.4617, allocations: 3.938 kB / 450.4 MB, free: 28.55 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.005703/0.4674, allocations: 2.834 MB / 453.2 MB, free: 27.08 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.53e-05/0.4674, allocations: 13.25 kB / 453.3 MB, free: 27.07 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005619/0.4731, allocations: 1.754 MB / 455 MB, free: 26.81 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002074/0.4751, allocations: 1.177 MB / 456.2 MB, free: 26.05 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.648e-05/0.4752, allocations: 119.6 kB / 456.3 MB, free: 26 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002822/0.4755, allocations: 154.4 kB / 456.4 MB, free: 25.94 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01124/0.4868, allocations: 7.189 MB / 463.6 MB, free: 22.79 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.648e-05/0.4869, allocations: 25.88 kB / 463.7 MB, free: 22.77 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002409/0.4872, allocations: 76.98 kB / 463.7 MB, free: 22.71 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003654/0.4908, allocations: 1.738 MB / 465.5 MB, free: 22.36 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01858/0.5094, allocations: 6.559 MB / 472 MB, free: 20.08 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0415/0.551, allocations: 21.18 MB / 493.2 MB, free: 5.047 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004552/0.5556, allocations: 2.021 MB / 495.2 MB, free: 3.477 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009229/0.5565, allocations: 0.669 MB / 495.9 MB, free: 2.809 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005082/0.5616, allocations: 3.28 MB / 499.2 MB, free: 15.26 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.089e-05/0.5617, allocations: 47.22 kB / 499.2 MB, free: 15.21 MB / 366.1 MB Notification: Performance of pre-optimization done (n=106): time 3.386e-06/0.5617, allocations: 0 / 499.2 MB, free: 15.21 MB / 366.1 MB Notification: Performance of matching and sorting (n=120): time 0.0118/0.5735, allocations: 5.513 MB / 0.4929 GB, free: 9.598 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.734e-05/0.5736, allocations: 60.41 kB / 0.493 GB, free: 9.527 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003717/0.5774, allocations: 2.266 MB / 0.4952 GB, free: 7.215 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.02e-05/0.5774, allocations: 37.7 kB / 0.4952 GB, free: 7.172 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001357/0.5788, allocations: 1.833 MB / 0.497 GB, free: 5.309 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004546/0.5793, allocations: 461.9 kB / 0.4975 GB, free: 4.852 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001423/0.5794, allocations: 67.98 kB / 0.4975 GB, free: 4.785 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002604/0.5797, allocations: 445.1 kB / 0.4979 GB, free: 4.344 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001791/0.5815, allocations: 1.088 MB / 0.499 GB, free: 3.254 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003209/0.5847, allocations: 2.951 MB / 0.5019 GB, free: 15.38 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002659/0.5874, allocations: 1.81 MB / 0.5037 GB, free: 13.58 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.614e-05/0.5874, allocations: 16 kB / 0.5037 GB, free: 13.56 MB / 382.1 MB Notification: Performance of matching and sorting (n=430) (initialization): time 0.007091/0.5945, allocations: 4.104 MB / 0.5077 GB, free: 9.449 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.25e-05/0.5946, allocations: 32.19 kB / 0.5077 GB, free: 9.418 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.327e-05/0.5947, allocations: 76.11 kB / 0.5078 GB, free: 9.344 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005446/0.5952, allocations: 208.8 kB / 0.508 GB, free: 9.137 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002151/0.5974, allocations: 0.7213 MB / 0.5087 GB, free: 8.414 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003031/0.6004, allocations: 2.48 MB / 0.5111 GB, free: 5.789 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002549/0.603, allocations: 171.9 kB / 0.5113 GB, free: 5.621 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003144/0.6033, allocations: 200 kB / 0.5115 GB, free: 5.426 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002943/0.6063, allocations: 1.43 MB / 0.5129 GB, free: 3.984 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003877/0.6067, allocations: 181.6 kB / 0.513 GB, free: 3.805 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002895/0.6096, allocations: 1.607 MB / 0.5146 GB, free: 2.188 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.093e-05/0.6097, allocations: 23.98 kB / 0.5146 GB, free: 2.164 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.311e-06/0.6097, allocations: 0 / 0.5146 GB, free: 2.164 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.168e-05/0.6097, allocations: 3.984 kB / 0.5146 GB, free: 2.16 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008906/0.6186, allocations: 4.879 MB / 0.5194 GB, free: 13.16 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.113e-05/0.6187, allocations: 4 kB / 0.5194 GB, free: 13.16 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006635/0.6193, allocations: 156.1 kB / 0.5195 GB, free: 13.01 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003693/0.6197, allocations: 120.8 kB / 0.5197 GB, free: 12.89 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.886e-05/0.6198, allocations: 20 kB / 0.5197 GB, free: 12.87 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002511/0.6223, allocations: 2 MB / 0.5216 GB, free: 10.73 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.688e-06/0.6224, allocations: 7.938 kB / 0.5216 GB, free: 10.72 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003991/0.6264, allocations: 2.54 MB / 0.5241 GB, free: 8.125 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009416/0.6273, allocations: 282.5 kB / 0.5244 GB, free: 7.828 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001996/0.6275, allocations: 16 kB / 0.5244 GB, free: 7.812 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006393/0.6282, allocations: 51.94 kB / 0.5245 GB, free: 7.762 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000155/0.6283, allocations: 76.91 kB / 0.5245 GB, free: 7.688 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.099e-05/0.6284, allocations: 39.98 kB / 0.5246 GB, free: 7.648 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.00276/0.6312, allocations: 1.461 MB / 0.526 GB, free: 6.164 MB / 398.1 MB Notification: Performance of sort global known variables: time 5.1e-07/0.6312, allocations: 0 / 0.526 GB, free: 6.164 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.003587/0.6348, allocations: 0.5664 MB / 0.5265 GB, free: 5.598 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 7} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004873/0.6353, allocations: 151.5 kB / 0.5267 GB, free: 5.441 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.005325/0.6406, allocations: 2.634 MB / 0.5293 GB, free: 2.809 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.128e-06/0.6407, allocations: 0 / 0.5293 GB, free: 2.809 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001237/0.6419, allocations: 0.8179 MB / 0.5301 GB, free: 1.977 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001902/0.6438, allocations: 308.5 kB / 0.5304 GB, free: 1.676 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01154/0.6554, allocations: 6.662 MB / 0.5369 GB, free: 10.95 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002479/0.6579, allocations: 2.361 MB / 0.5392 GB, free: 8.555 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.002746/0.6607, allocations: 1.036 MB / 0.5402 GB, free: 7.516 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000375/0.6611, allocations: 143.4 kB / 0.5403 GB, free: 7.375 MB / 414.1 MB Notification: Performance of SimCode: time 1.673e-06/0.6611, allocations: 0 / 0.5403 GB, free: 7.375 MB / 414.1 MB Notification: Performance of Templates: time 0.04687/0.7079, allocations: 19.98 MB / 0.5598 GB, free: 3.527 MB / 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)