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/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo", uses=false) Using package PlanarMechanics with version 1.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/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) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.007377/0.007377, allocations: 172.1 kB / 15.12 MB, free: 5.977 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.518/1.518, allocations: 223.2 MB / 239 MB, free: 1.781 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009827/0.0009827, allocations: 94.53 kB / 290.2 MB, free: 13.94 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.0409/0.0409, allocations: 8.94 MB / 350.3 MB, free: 2.066 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003155/0.0003155, allocations: 7.062 kB / 413.1 MB, free: 88.71 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1006/0.1009, allocations: 52.39 MB / 465.5 MB, free: 41.71 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.352/0.4529, allocations: 86.05 MB / 0.5386 GB, free: 16.23 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001728/0.4531, allocations: 81.98 kB / 0.5387 GB, free: 16.23 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1515/0.6046, allocations: 63.3 MB / 0.6005 GB, free: 13.56 MB / 378.7 MB Notification: Performance of FrontEnd: time 4.077e-06/0.6046, allocations: 0 / 0.6005 GB, free: 13.56 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001391/0.6048, allocations: 65.84 kB / 0.6006 GB, free: 13.55 MB / 378.7 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.01477/0.6196, allocations: 3.33 MB / 0.6038 GB, free: 11.36 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.847e-05/0.6196, allocations: 8.031 kB / 0.6039 GB, free: 11.35 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009709/0.6294, allocations: 1.936 MB / 0.6057 GB, free: 9.41 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005185/0.6346, allocations: 1.702 MB / 0.6074 GB, free: 8.137 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003016/0.6349, allocations: 221.8 kB / 0.6076 GB, free: 8.012 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002109/0.637, allocations: 303.4 kB / 0.6079 GB, free: 7.816 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02057/0.6576, allocations: 7.865 MB / 0.6156 GB, free: 1.957 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002122/0.6579, allocations: 18.38 kB / 0.6156 GB, free: 1.941 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001617/0.6595, allocations: 132.9 kB / 0.6157 GB, free: 1.906 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001713/0.6612, allocations: 0.9201 MB / 0.6166 GB, free: 1.133 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01796/0.6792, allocations: 7.349 MB / 0.6238 GB, free: 9.777 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04428/0.7235, allocations: 25.62 MB / 0.6488 GB, free: 15.8 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007283/0.7308, allocations: 2.622 MB / 0.6514 GB, free: 13.06 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008761/0.7396, allocations: 5.117 MB / 0.6564 GB, free: 7.457 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.66e-05/0.7397, allocations: 47.5 kB / 0.6564 GB, free: 7.402 MB / 426.7 MB Notification: Performance of pre-optimization done (n=148): time 4.138e-06/0.7397, allocations: 0 / 0.6564 GB, free: 7.402 MB / 426.7 MB Notification: Performance of matching and sorting (n=176): time 0.01358/0.7533, allocations: 5.778 MB / 0.6621 GB, free: 1.559 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.3e-05/0.7534, allocations: 72.72 kB / 0.6621 GB, free: 1.477 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004697/0.7581, allocations: 2.338 MB / 0.6644 GB, free: 15.11 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001435/0.7583, allocations: 49.7 kB / 0.6645 GB, free: 15.06 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001573/0.7599, allocations: 2.095 MB / 0.6665 GB, free: 12.96 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006335/0.7605, allocations: 0.6426 MB / 0.6671 GB, free: 12.32 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002625/0.7608, allocations: 80 kB / 0.6672 GB, free: 12.25 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0003394/0.7611, allocations: 487.2 kB / 0.6677 GB, free: 11.76 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002316/0.7635, allocations: 1.351 MB / 0.669 GB, free: 10.4 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003721/0.7672, allocations: 3.586 MB / 0.6725 GB, free: 5.691 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003224/0.7704, allocations: 2.221 MB / 0.6747 GB, free: 3.473 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.778e-05/0.7705, allocations: 24 kB / 0.6747 GB, free: 3.449 MB / 442.7 MB Notification: Performance of matching and sorting (n=545) (initialization): time 0.00912/0.7796, allocations: 5.174 MB / 0.6797 GB, free: 14.27 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.998e-05/0.7797, allocations: 36.28 kB / 0.6798 GB, free: 14.24 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001061/0.7798, allocations: 84.12 kB / 0.6799 GB, free: 14.16 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009949/0.7808, allocations: 374.2 kB / 0.6802 GB, free: 13.79 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003159/0.784, allocations: 0.9123 MB / 0.6811 GB, free: 12.88 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005414/0.7894, allocations: 3.926 MB / 0.6849 GB, free: 8.82 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003265/0.7927, allocations: 223.9 kB / 0.6852 GB, free: 8.602 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006071/0.7933, allocations: 240 kB / 0.6854 GB, free: 8.367 MB / 458.7 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 (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 {(2,100.0%) 20} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00319/0.7965, allocations: 1.599 MB / 0.6869 GB, free: 6.758 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004501/0.797, allocations: 237 kB / 0.6872 GB, free: 6.523 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003886/0.8009, allocations: 2.307 MB / 0.6894 GB, free: 4.203 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001009/0.801, allocations: 31.97 kB / 0.6895 GB, free: 4.172 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.881e-06/0.801, allocations: 4 kB / 0.6895 GB, free: 4.168 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.447e-05/0.8011, allocations: 11.97 kB / 0.6895 GB, free: 4.156 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2173/1.018, allocations: 6.412 MB / 0.6957 GB, free: 115.2 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.888e-06/1.018, allocations: 2 kB / 0.6957 GB, free: 115.2 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009169/1.019, allocations: 244.3 kB / 0.696 GB, free: 115.2 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007009/1.02, allocations: 256.1 kB / 0.6962 GB, free: 115.2 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001064/1.02, allocations: 35.56 kB / 0.6962 GB, free: 115.2 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00346/1.024, allocations: 3.241 MB / 0.6994 GB, free: 114 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.619e-06/1.024, allocations: 7.094 kB / 0.6994 GB, free: 114 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004761/1.028, allocations: 3.835 MB / 0.7032 GB, free: 113.3 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009498/1.029, allocations: 315.7 kB / 0.7035 GB, free: 113.2 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002499/1.03, allocations: 37.94 kB / 0.7035 GB, free: 113.2 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008136/1.03, allocations: 74.52 kB / 0.7036 GB, free: 113.2 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000217/1.031, allocations: 99.34 kB / 0.7037 GB, free: 113.2 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.549e-05/1.031, allocations: 56.95 kB / 0.7037 GB, free: 113.2 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002427/1.033, allocations: 1.662 MB / 0.7053 GB, free: 113 MB / 458.7 MB Notification: Performance of sort global known variables: time 2.21e-07/1.033, allocations: 3.219 kB / 0.7053 GB, free: 113 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.003365/1.037, allocations: 0.7264 MB / 0.7061 GB, free: 113 MB / 458.7 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 (131): * Single equations (assignments): 126 * 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 {(2,100.0%) 18} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004036/1.037, allocations: 173 kB / 0.7062 GB, free: 112.9 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.005755/1.043, allocations: 3.377 MB / 0.7095 GB, free: 112.8 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 5.561e-06/1.043, allocations: 2.406 kB / 0.7095 GB, free: 112.8 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001613/1.044, allocations: 1.142 MB / 0.7106 GB, free: 112.7 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001869/1.046, allocations: 347.5 kB / 0.711 GB, free: 112.6 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01304/1.059, allocations: 8 MB / 0.7188 GB, free: 109.4 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002787/1.062, allocations: 2.682 MB / 0.7214 GB, free: 108.7 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.003137/1.065, allocations: 1.263 MB / 0.7226 GB, free: 108.7 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004568/1.066, allocations: 183 kB / 0.7228 GB, free: 108.7 MB / 458.7 MB Notification: Performance of SimCode: time 1.082e-06/1.066, allocations: 0 / 0.7228 GB, free: 108.7 MB / 458.7 MB Notification: Performance of Templates: time 0.04468/1.111, allocations: 25.29 MB / 0.7475 GB, free: 107.3 MB / 458.7 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)