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.001263/0.001263, allocations: 100.1 kB / 15.05 MB, free: 1.105 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.001388/0.001388, allocations: 177.3 kB / 15.95 MB, free: 216 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.412/1.412, allocations: 223.2 MB / 239.9 MB, free: 5.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1765/0.1765, allocations: 9.088 MB / 300.1 MB, free: 2.766 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003138/0.0003138, allocations: 8 kB / 363 MB, free: 12.99 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1167/0.117, allocations: 52.42 MB / 415.4 MB, free: 8.523 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.Pendulum): time 0.2273/0.3443, allocations: 15.49 MB / 430.9 MB, free: 34.34 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01096/0.3554, allocations: 4.366 MB / 435.3 MB, free: 33.29 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004756/0.3602, allocations: 65.5 kB / 435.3 MB, free: 33.28 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003158/0.3634, allocations: 0.7383 MB / 436.1 MB, free: 33.05 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009444/0.3729, allocations: 2.401 MB / 438.5 MB, free: 32.4 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001027/0.3739, allocations: 75.47 kB / 438.6 MB, free: 32.36 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002492/0.3764, allocations: 1.177 MB / 439.7 MB, free: 32.03 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008979/0.3773, allocations: 0.641 MB / 440.4 MB, free: 31.81 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007588/0.3781, allocations: 0.555 MB / 440.9 MB, free: 31.61 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001109/0.3792, allocations: 0.8289 MB / 441.8 MB, free: 31.33 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003062/0.3796, allocations: 111.3 kB / 441.9 MB, free: 31.33 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001321/0.3809, allocations: 0.63 MB / 442.5 MB, free: 31.21 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007379/0.3816, allocations: 0.9032 MB / 443.4 MB, free: 30.89 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004695/0.3821, allocations: 0.5564 MB / 443.9 MB, free: 30.46 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003104/0.3852, allocations: 3.303 MB / 447.3 MB, free: 29.73 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.579e-06/0.3852, allocations: 3.844 kB / 447.3 MB, free: 29.73 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.3853, allocations: 3.938 kB / 447.3 MB, free: 29.73 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.839e-05/0.3853, allocations: 0 / 447.3 MB, free: 29.73 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.006956/0.3923, allocations: 2.886 MB / 450.1 MB, free: 28.25 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.426e-05/0.3924, allocations: 9.875 kB / 450.2 MB, free: 28.25 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007435/0.3998, allocations: 2.116 MB / 452.3 MB, free: 27.91 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003202/0.4031, allocations: 1.171 MB / 453.4 MB, free: 27.16 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001076/0.4032, allocations: 121.2 kB / 453.6 MB, free: 27.1 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005397/0.4037, allocations: 156.1 kB / 453.7 MB, free: 27.04 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01106/0.4148, allocations: 7.21 MB / 460.9 MB, free: 23.88 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.304e-05/0.4149, allocations: 19.44 kB / 460.9 MB, free: 23.87 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002899/0.4152, allocations: 76.84 kB / 461 MB, free: 23.81 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002972/0.4182, allocations: 1.741 MB / 462.8 MB, free: 23.45 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01549/0.4337, allocations: 6.583 MB / 469.3 MB, free: 21.18 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04002/0.4738, allocations: 21.17 MB / 490.5 MB, free: 6.691 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003994/0.4778, allocations: 2.008 MB / 492.5 MB, free: 5.395 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008383/0.4787, allocations: 1.035 MB / 493.6 MB, free: 4.41 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.44e-05/0.4787, allocations: 39.69 kB / 493.6 MB, free: 4.367 MB / 350.1 MB Notification: Performance of pre-optimization done (n=124): time 4.509e-06/0.4787, allocations: 0 / 493.6 MB, free: 4.367 MB / 350.1 MB Notification: Performance of matching and sorting (n=138): time 0.01326/0.492, allocations: 6.499 MB / 0.4884 GB, free: 14.03 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.527e-05/0.4921, allocations: 60.41 kB / 0.4884 GB, free: 13.96 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003581/0.4957, allocations: 2.182 MB / 0.4906 GB, free: 11.73 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001067/0.4958, allocations: 45.7 kB / 0.4906 GB, free: 11.68 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001373/0.4972, allocations: 1.791 MB / 0.4923 GB, free: 9.855 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005782/0.4978, allocations: 0.5011 MB / 0.4928 GB, free: 9.348 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001328/0.4979, allocations: 67.98 kB / 0.4929 GB, free: 9.281 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0003454/0.4983, allocations: 453.2 kB / 0.4933 GB, free: 8.832 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001934/0.5002, allocations: 1.115 MB / 0.4944 GB, free: 7.715 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00369/0.5039, allocations: 2.963 MB / 0.4973 GB, free: 3.832 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002748/0.5067, allocations: 1.847 MB / 0.4991 GB, free: 1.992 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.102e-05/0.5067, allocations: 20 kB / 0.4991 GB, free: 1.973 MB / 366.1 MB Notification: Performance of matching and sorting (n=436) (initialization): time 0.007002/0.5137, allocations: 4.162 MB / 0.5032 GB, free: 13.8 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.02e-05/0.5138, allocations: 32.09 kB / 0.5032 GB, free: 13.77 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.946e-05/0.5139, allocations: 72.78 kB / 0.5033 GB, free: 13.7 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006195/0.5145, allocations: 212.7 kB / 0.5035 GB, free: 13.49 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002211/0.5168, allocations: 0.7456 MB / 0.5042 GB, free: 12.74 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003316/0.5201, allocations: 2.507 MB / 0.5067 GB, free: 10.1 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002506/0.5226, allocations: 163.9 kB / 0.5068 GB, free: 9.941 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003133/0.5229, allocations: 204 kB / 0.507 GB, free: 9.742 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 (401): * Single equations (assignments): 396 * 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.002545/0.5255, allocations: 1.437 MB / 0.5084 GB, free: 8.293 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003037/0.5258, allocations: 189.5 kB / 0.5086 GB, free: 8.105 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003178/0.529, allocations: 1.932 MB / 0.5105 GB, free: 6.145 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001067/0.5291, allocations: 23.98 kB / 0.5105 GB, free: 6.121 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.236e-06/0.5291, allocations: 4 kB / 0.5105 GB, free: 6.117 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.595e-05/0.5291, allocations: 7.969 kB / 0.5105 GB, free: 6.109 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00939/0.5385, allocations: 5.38 MB / 0.5158 GB, free: 0.5781 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.075e-05/0.5386, allocations: 4.688 kB / 0.5158 GB, free: 0.5742 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008073/0.5394, allocations: 187.8 kB / 0.516 GB, free: 400 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003429/0.5397, allocations: 132.6 kB / 0.5161 GB, free: 264 kB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.206e-05/0.5398, allocations: 28.28 kB / 0.5161 GB, free: 236 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002293/0.5421, allocations: 2.047 MB / 0.5181 GB, free: 14.05 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.103e-06/0.5421, allocations: 7.938 kB / 0.5181 GB, free: 14.04 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004301/0.5464, allocations: 3.172 MB / 0.5212 GB, free: 10.6 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007911/0.5473, allocations: 278.6 kB / 0.5215 GB, free: 10.31 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002224/0.5475, allocations: 28 kB / 0.5215 GB, free: 10.28 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007131/0.5482, allocations: 51.94 kB / 0.5216 GB, free: 10.23 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001749/0.5484, allocations: 84.86 kB / 0.5217 GB, free: 10.14 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.561e-05/0.5485, allocations: 47.97 kB / 0.5217 GB, free: 10.1 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002314/0.5508, allocations: 1.425 MB / 0.5231 GB, free: 8.648 MB / 398.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.5508, allocations: 4 kB / 0.5231 GB, free: 8.645 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002758/0.5536, allocations: 0.5708 MB / 0.5237 GB, free: 8.074 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * 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 (103): * Single equations (assignments): 98 * 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.0003571/0.554, allocations: 155.5 kB / 0.5238 GB, free: 7.914 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004472/0.5584, allocations: 2.729 MB / 0.5265 GB, free: 5.191 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 8.355e-06/0.5585, allocations: 4 kB / 0.5265 GB, free: 5.188 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00127/0.5597, allocations: 0.8988 MB / 0.5274 GB, free: 4.273 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001587/0.5613, allocations: 310.9 kB / 0.5276 GB, free: 3.977 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01104/0.5724, allocations: 6.827 MB / 0.5343 GB, free: 13.06 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002675/0.5751, allocations: 2.425 MB / 0.5367 GB, free: 10.61 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.002798/0.5779, allocations: 1.084 MB / 0.5377 GB, free: 9.52 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003732/0.5783, allocations: 151.3 kB / 0.5379 GB, free: 9.371 MB / 414.1 MB Notification: Performance of SimCode: time 1.072e-06/0.5783, allocations: 4 kB / 0.5379 GB, free: 9.367 MB / 414.1 MB Notification: Performance of Templates: time 0.04278/0.6211, allocations: 20.29 MB / 0.5577 GB, free: 5.195 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)