Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.DoublePendulum.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.DoublePendulum,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.DoublePendulum") translateModel(PlanarMechanics.Examples.DoublePendulum,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.DoublePendulum") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005982/0.005982, allocations: 105.5 kB / 15.74 MB, free: 6.488 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.001374/0.001374, allocations: 196 kB / 16.68 MB, free: 6.375 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.464/1.464, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.2416/0.2416, allocations: 9.119 MB / 299.6 MB, free: 1.785 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0012/0.0012, allocations: 68.12 kB / 414.6 MB, free: 8.383 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3199/0.3211, allocations: 51.43 MB / 466.1 MB, free: 18.13 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.DoublePendulum): time 0.009595/0.3308, allocations: 8.445 MB / 474.5 MB, free: 12.12 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00605/0.3368, allocations: 2.6 MB / 477.1 MB, free: 10.36 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00197/0.3388, allocations: 33.59 kB / 477.1 MB, free: 10.35 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0011/0.34, allocations: 364.8 kB / 477.5 MB, free: 10.18 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004738/0.3448, allocations: 1.461 MB / 479 MB, free: 9.293 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005919/0.3454, allocations: 140.9 kB / 479.1 MB, free: 9.18 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004681/0.3501, allocations: 2.554 MB / 481.7 MB, free: 7.707 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001345/0.3514, allocations: 0.8997 MB / 482.6 MB, free: 7.09 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00178/0.3532, allocations: 0.9123 MB / 483.5 MB, free: 6.551 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002056/0.3553, allocations: 1.318 MB / 484.8 MB, free: 5.738 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004692/0.3558, allocations: 233.2 kB / 485 MB, free: 5.738 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001924/0.3577, allocations: 0.8225 MB / 485.8 MB, free: 5.41 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001088/0.3588, allocations: 1.234 MB / 487.1 MB, free: 4.684 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001647/0.3605, allocations: 1.585 MB / 488.7 MB, free: 3.441 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006245/0.3667, allocations: 5.033 MB / 493.7 MB, free: 15.98 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.3667, allocations: 0.875 kB / 493.7 MB, free: 15.98 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.3668, allocations: 0 / 493.7 MB, free: 15.98 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001294/0.3669, allocations: 0 / 493.7 MB, free: 15.98 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: 1179 * Number of variables: 1179 Notification: Performance of Generate backend data structure: time 0.01227/0.3792, allocations: 4.355 MB / 498 MB, free: 12.06 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.218e-05/0.3792, allocations: 12.03 kB / 498.1 MB, free: 12.05 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006305/0.3856, allocations: 1.763 MB / 499.8 MB, free: 10.28 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003177/0.3888, allocations: 1.364 MB / 0.4894 GB, free: 8.875 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001355/0.3889, allocations: 152.1 kB / 0.4896 GB, free: 8.727 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004204/0.3893, allocations: 199.8 kB / 0.4898 GB, free: 8.531 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01444/0.4038, allocations: 8.247 MB / 0.4978 GB, free: 15.89 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.906e-05/0.4039, allocations: 27.62 kB / 0.4979 GB, free: 15.87 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000316/0.4042, allocations: 95.86 kB / 0.4979 GB, free: 15.77 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002931/0.4072, allocations: 1.911 MB / 0.4998 GB, free: 13.86 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01575/0.4229, allocations: 7.422 MB / 0.5071 GB, free: 6.426 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03943/0.4624, allocations: 25.53 MB / 0.532 GB, free: 12.36 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006202/0.4686, allocations: 2.61 MB / 0.5345 GB, free: 9.633 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001329/0.47, allocations: 0.9157 MB / 0.5354 GB, free: 8.715 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007209/0.4772, allocations: 5.09 MB / 0.5404 GB, free: 3.109 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.947e-05/0.4773, allocations: 47.56 kB / 0.5405 GB, free: 3.055 MB / 414.1 MB Notification: Performance of pre-optimization done (n=148): time 3.116e-06/0.4773, allocations: 0 / 0.5405 GB, free: 3.055 MB / 414.1 MB Notification: Performance of matching and sorting (n=176): time 0.01261/0.4899, allocations: 5.464 MB / 0.5458 GB, free: 13.6 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.515e-05/0.49, allocations: 68.72 kB / 0.5459 GB, free: 13.52 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004077/0.4941, allocations: 2.614 MB / 0.5484 GB, free: 10.87 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001237/0.4942, allocations: 49.7 kB / 0.5485 GB, free: 10.82 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001689/0.4959, allocations: 2.093 MB / 0.5505 GB, free: 8.691 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000695/0.4966, allocations: 0.6515 MB / 0.5511 GB, free: 8.031 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001228/0.4979, allocations: 0.8295 MB / 0.5519 GB, free: 7.188 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001127/0.498, allocations: 301.1 kB / 0.5522 GB, free: 6.891 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002294/0.5003, allocations: 1.371 MB / 0.5536 GB, free: 5.512 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004705/0.505, allocations: 3.633 MB / 0.5571 GB, free: 0.7539 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007438/0.5125, allocations: 5.41 MB / 0.5624 GB, free: 10.24 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.706e-05/0.5126, allocations: 20 kB / 0.5624 GB, free: 10.22 MB / 446.1 MB Notification: Performance of matching and sorting (n=545) (initialization): time 0.01023/0.5228, allocations: 5.218 MB / 0.5675 GB, free: 4.996 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.225e-05/0.5229, allocations: 36 kB / 0.5675 GB, free: 4.961 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.421e-05/0.523, allocations: 88.83 kB / 0.5676 GB, free: 4.875 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008889/0.5239, allocations: 366.1 kB / 0.568 GB, free: 4.516 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00257/0.5264, allocations: 0.9124 MB / 0.5689 GB, free: 3.602 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005198/0.5316, allocations: 4.175 MB / 0.573 GB, free: 15.28 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002841/0.5345, allocations: 219.8 kB / 0.5732 GB, free: 15.07 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003762/0.5349, allocations: 244 kB / 0.5734 GB, free: 14.83 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 358 * Number of states: 0 () * Number of discrete variables: 18 (revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],fixedTranslation1.color[3],fixedTranslation1.color[2],fixedTranslation1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[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 (498): * Single equations (assignments): 493 * 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 {(2,20,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003005/0.5379, allocations: 1.603 MB / 0.575 GB, free: 13.21 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003958/0.5383, allocations: 225.1 kB / 0.5752 GB, free: 12.99 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00399/0.5423, allocations: 2.338 MB / 0.5775 GB, free: 10.63 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.719e-05/0.5424, allocations: 35.92 kB / 0.5775 GB, free: 10.6 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.045e-06/0.5424, allocations: 4 kB / 0.5775 GB, free: 10.59 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.537e-05/0.5425, allocations: 7.969 kB / 0.5775 GB, free: 10.59 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01079/0.5532, allocations: 6.448 MB / 0.5838 GB, free: 4 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.126e-05/0.5533, allocations: 4 kB / 0.5838 GB, free: 3.996 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008814/0.5542, allocations: 244.1 kB / 0.584 GB, free: 3.758 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000695/0.5549, allocations: 252.6 kB / 0.5843 GB, free: 3.508 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.161e-05/0.555, allocations: 39.98 kB / 0.5843 GB, free: 3.469 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2947/0.8497, allocations: 3.406 MB / 0.5876 GB, free: 110.7 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.556e-06/0.8497, allocations: 4.938 kB / 0.5876 GB, free: 110.7 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006966/0.8567, allocations: 3.605 MB / 0.5912 GB, free: 110.2 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000941/0.8577, allocations: 307.4 kB / 0.5915 GB, free: 110.1 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000288/0.858, allocations: 31.66 kB / 0.5915 GB, free: 110 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009276/0.8589, allocations: 77.72 kB / 0.5916 GB, free: 110 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000263/0.8592, allocations: 99.77 kB / 0.5917 GB, free: 110 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001179/0.8593, allocations: 55.42 kB / 0.5917 GB, free: 110 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003409/0.8628, allocations: 1.681 MB / 0.5934 GB, free: 109.4 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.8628, allocations: 0 / 0.5934 GB, free: 109.4 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004575/0.8674, allocations: 0.7204 MB / 0.5941 GB, free: 109.3 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 4 (revolute.phi,revolute.w,revolute1.phi,revolute1.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 (132): * Single equations (assignments): 127 * 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 {(2,18,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004614/0.8678, allocations: 165.5 kB / 0.5942 GB, free: 109.2 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.007546/0.8754, allocations: 3.434 MB / 0.5976 GB, free: 108 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.436e-05/0.8755, allocations: 5.094 kB / 0.5976 GB, free: 108 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002269/0.8777, allocations: 1.168 MB / 0.5987 GB, free: 107.5 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002692/0.8804, allocations: 402.6 kB / 0.5991 GB, free: 107.4 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01291/0.8934, allocations: 6.675 MB / 0.6056 GB, free: 104.4 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00268/0.8961, allocations: 2.617 MB / 0.6082 GB, free: 103.2 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003124/0.8992, allocations: 1.271 MB / 0.6094 GB, free: 103.1 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004219/0.8997, allocations: 176.7 kB / 0.6096 GB, free: 103.1 MB / 462.1 MB Notification: Performance of SimCode: time 1.233e-06/0.8997, allocations: 1 kB / 0.6096 GB, free: 103.1 MB / 462.1 MB Notification: Performance of Templates: time 0.04483/0.9445, allocations: 26.57 MB / 0.6355 GB, free: 84.48 MB / 462.1 MB make -j1 -f PlanarMechanics_PlanarMechanics.Examples.DoublePendulum.makefile (rm -f PlanarMechanics_PlanarMechanics.Examples.DoublePendulum.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.DoublePendulum.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.DoublePendulum.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.DoublePendulum.sim & ./PlanarMechanics_PlanarMechanics.Examples.DoublePendulum -abortSlowSimulation -alarm=480 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.DoublePendulum.pipe 2>&1)